Parcourir la source

passwordless vnc with socket auth

pull/1/head
Parent
révision
0c31fb3494
2 fichiers modifiés avec 3 ajouts et 4 suppressions
  1. +2
    -2
      templates/workspaces/workspace.space.fish.j2
  2. +1
    -2
      vars/main.yaml

+ 2
- 2
templates/workspaces/workspace.space.fish.j2 Voir le fichier

@@ -7,7 +7,7 @@ exec urxvt -title tmux-workspace -e fish -c 'ssh -t {{workspaces[workspace].host

{% elif "vncviewer" in workspaces[workspace].type %}

{% if workspaces[workspace].fetch_vnc_passsword_file | default(true) %}
{% if workspaces[workspace].fetch_vnc_passsword_file | default(false) %}
if not test -d ~/.vnc/passwd.{{workspaces[workspace].host}}
rsync {{workspaces[workspace].host}}:~/.vnc/passwd ~/.vnc/passwd.{{workspaces[workspace].host}}
end
@@ -16,7 +16,7 @@ end
{% if workspaces[workspace].type == "vncviewer-ssh-socket" %}

socat "UNIX-LISTEN:.vnc/socket.anix,reuseaddr" EXEC:'ssh {{workspaces[workspace].host}} socat STDIO UNIX-CONNECT\:.vnc/socket' &
exec xtigervncviewer .vnc/socket.{{workspaces[workspace].host}} -PasswordFile ~/.vnc/passwd.{{workspaces[workspace].host}}
exec xtigervncviewer .vnc/socket.{{workspaces[workspace].host}}

{% elif workspaces[workspace].type == "vncviewer-ssh-tcp" %}



+ 1
- 2
vars/main.yaml Voir le fichier

@@ -140,12 +140,11 @@ vncserver_options: |
-geometry {{home_vncserver_geometry}}
-depth 24
-rfbwait 30000
-rfbauth %h/.vnc/passwd
-rfbunixpath %h/.vnc/socket
-nolisten tcp
-pn
-localhost
-SecurityTypes VncAuth
-SecurityTypes None
{% if not home_vncserver_allow_resize %}
-AcceptSetDesktopSize=0
{% endif %}