Skip to content
Snippets Groups Projects
Commit a010ed0f authored by Mathis Rosenhauer's avatar Mathis Rosenhauer
Browse files

start-vnc: relax StrictHostKeyChecking and minor fixes

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