Commit a010ed0f authored by Mathis Rosenhauer's avatar Mathis Rosenhauer

start-vnc: relax StrictHostKeyChecking and minor fixes

parent 596d82d2
...@@ -75,7 +75,7 @@ SVNC_CLIENT="vncviewer" ...@@ -75,7 +75,7 @@ SVNC_CLIENT="vncviewer"
# More options for the vncserver. TurboVNC on A Mac may produce # More options for the vncserver. TurboVNC on A Mac may produce
# a 'javax.net.ssl.SSLHandshakeException' in this case adding # a 'javax.net.ssl.SSLHandshakeException' in this case adding
# ' -securitytypes none' to SVNC_SERVER_OPTIONS may help. # ' -securitytypes none' to SVNC_SERVER_OPTIONS may help.
SVNC_SERVER_OPTIONS="-geometry1920x1200" SVNC_SERVER_OPTIONS="-geometry 1920x1200"
# Session run time in minutes # Session run time in minutes
SVNC_RUNTIME=240 SVNC_RUNTIME=240
...@@ -272,6 +272,7 @@ main () { ...@@ -272,6 +272,7 @@ main () {
parse_options "$@" parse_options "$@"
trap clean_up INT QUIT TERM ERR EXIT trap clean_up INT QUIT TERM ERR EXIT
mkdir -p "${HOME}/.ssh"
ssh_socket_dir="$(mktemp -d "${HOME}/.ssh/socket.XXXXX")" ssh_socket_dir="$(mktemp -d "${HOME}/.ssh/socket.XXXXX")"
ssh_frontend "" "-MNf" ssh_frontend "" "-MNf"
prepare_vncserver prepare_vncserver
...@@ -289,6 +290,7 @@ main () { ...@@ -289,6 +290,7 @@ main () {
local vnc_port=$((5900+${vnc_display})) local vnc_port=$((5900+${vnc_display}))
ssh -o ForwardX11=no \ ssh -o ForwardX11=no \
-o StrictHostKeyChecking=accept-new \
-L "${vnc_port}:localhost:${vnc_port}" \ -L "${vnc_port}:localhost:${vnc_port}" \
-Nf \ -Nf \
"${SVNC_USERNAME}@${vnc_host}.dkrz.de"; "${SVNC_USERNAME}@${vnc_host}.dkrz.de";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment