Skip to content

Commit 2d3e245

Browse files
Support running IDE config on Jupyter Server
1 parent 590dbf8 commit 2d3e245

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

sagemaker_ssh_helper/sm-ssh-ide

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ if [[ "$1" == "configure" ]]; then
2929
_install_helper_scripts
3030

3131
cat >/etc/profile.d/sm-ssh-ide.sh <<EOF
32-
export XAUTHORITY="/tmp/.Xauthority"
33-
export ICEAUTHORITY="/tmp/.ICEauthority"
34-
touch "/tmp/.Xauthority"
35-
touch "/tmp/.ICEauthority"
36-
chmod 600 "/tmp/.Xauthority"
37-
chmod 600 "/tmp/.ICEauthority"
32+
export XAUTHORITY="/tmp/.Xauthority-$USER"
33+
export ICEAUTHORITY="/tmp/.ICEauthority-$USER"
34+
touch "/tmp/.Xauthority-$USER"
35+
touch "/tmp/.ICEauthority-$USER"
36+
chmod 600 "/tmp/.Xauthority-$USER"
37+
chmod 600 "/tmp/.ICEauthority-$USER"
3838
EOF
3939
source /etc/profile.d/sm-ssh-ide.sh
4040

0 commit comments

Comments
 (0)