We’ll use the default remote connection of the MAC OS to access remotely from a MAC to a Linux host in an internal network.

On the Linux host we have to configure remote connections with a password (search “Desktop sharing” from the left pane of Linux machine).

Annotate the password.

If you can’t find “Desktop sharing”, you can install vino with the command:

$ sudo apt-get install vino

Check the firewall settings

$ sudo iptables –L

If firewall doesn’t permit the appropriate connections, you can enable them with the commands:

$ sudo ufw allow 22/tcp

$ sudo ufw allow 5900/tcp

Install a ssh server:

$ sudo apt-get install openssh-server

From the MAC execute:
finder -> go -> network and select the remote host from the window icons. Press “connect” on the right side of the finder window.

Insert the previously annotated password at the prompt

If you have troubles consider to install dconf-editor

$ sudo apt-get install dconf-editor

Launch dconf-editor and change org->gnome->desktop-> remote access->require encryption to “false”.

If you have to access to the remote host from outside the network this procedure is not secure, and you must adopt SSL VPNs, or other suitable methods !

 

Leave a Reply