Ubuntu 12.04/14.04 x64 – Enabling Desktop Sharing Through SSH

Last Modified 2014.08.08 by Rick Bianchi

Ubuntu 12.04/14.04 x64 – Enabling Desktop Sharing Through SSH

01. SSH in to the remote system and add “X11UseLocalHost no” (without the quotes) to the bottom of file /etc/ssh/sshd_config and verify that X11Forwarding is yes:
$ sudo nano /etc/ssh/sshd_config

X11UseLocalHost no

X11Forwarding yes

$ sudo service ssh restart

02. Logout of the remote system, now verify that ForwardX11 is set to “yes” on your system /etc/ssh/sshd_config. If not, change it and restart SSH “$ sudo service ssh restart”:
$ cat /etc/ssh/sshd_config

X11Forwarding yes

03. Now, log out of the remote system, then log back in using trusted X11 forwarding (-Y). You need DBUS_SESSION_BUS_ADDRESS to be associated with your SSH session, or you will not be able to change gsettings:
Note: This has to be the account you need to Desktop Share with.
$ ssh -Y username@remotehostipaddress

04. List all configuration keys:
$ gsettings list-recursively org.gnome.Vino

05. Set following values:
$ gsettings set org.gnome.Vino notify-on-connect true
$ gsettings set org.gnome.Vino alternative-port “uint16 5900”
$ gsettings set org.gnome.Vino disable-background true
$ gsettings set org.gnome.Vino use-alternative-port false
$ gsettings set org.gnome.Vino icon-visibility ‘client’
$ gsettings set org.gnome.Vino use-upnp false
$ gsettings set org.gnome.Vino view-only false
$ gsettings set org.gnome.Vino enabled true
$ gsettings set org.gnome.Vino prompt-enabled false
$ gsettings set org.gnome.Vino disable-xdamage false
$ gsettings set org.gnome.Vino authentication-methods “[‘vnc’]”
$ gsettings set org.gnome.Vino network-interface ”
$ gsettings set org.gnome.Vino require-encryption true
$ gsettings set org.gnome.Vino mailto ”
$ gsettings set org.gnome.Vino lock-screen-on-disconnect true
$ gsettings set org.gnome.Vino vnc-password ‘keyring’

06. Reboot system to apply the new settings:
$ sudo reboot

Notes:
01. On some installs encryption needs to be set to false:
$ gsettings set org.gnome.Vino require-encryption false

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s