Skip to content

Commit a7da1f0

Browse files
Copilotcodez0mb1e
andauthored
fix configurable SSH key path in rstudio helper script
Agent-Logs-Url: https://github.com/codez0mb1e/data-engineer-server/sessions/89c9736f-7e39-4d48-81cb-8e5d202dfe25 Co-authored-by: codez0mb1e <1914621+codez0mb1e@users.noreply.github.com>
1 parent 6dc04ba commit a7da1f0

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

rstudio-server/server/rstudio_docker.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,14 @@
88
USR="<username>"
99
PWD="<your-very-secure-pwd-here>"
1010
HOST="<host>"
11+
SSH_KEY_PATH="$HOME/.ssh/<path-to-private-key>"
1112

1213
docker pull rocker/tidyverse:4.5
1314
docker run -d -p 8787:8787 -e PASSWORD=$PWD -v /home/$USR/apps/:/home/rstudio/ --name rserver rocker/tidyverse:4.5
1415

1516
docker start -i rserver
1617

17-
ssh -i ~/.ssh/$USR -N -L 8787:localhost:8787 $USR@$HOST
18+
ssh -i "$SSH_KEY_PATH" -N -L 8787:localhost:8787 "${USR}@${HOST}"
1819
# Open rstudio http://localhost:8787/
1920

2021

0 commit comments

Comments
 (0)