What's the best way to SSH to machines on the local network?

Run:

avahi-browse -tl _workstation._tcp

To get a list of Ubuntu workstations in the local network, then you can connect to them by running:

ssh <username>@<computer-name>.local

You can use the IP address to ssh into the kid's computer. If you want to use the computer name, edit your /etc/hosts file to include the computer name.

192.168.1.104  dad
192.168.1.105  kids

Before doing ssh, check for ssh client and server. If you don't have these services, install them with the following commands:

sudo apt-get install openssh-client

sudo apt-get install openssh-server

If you have already installed them, just do:

ssh username@ipaddress

and enter the connecting device login password.

If you get any error like : Permission denied, please try again., please check twice for Username and IP.

Tags:

Ssh

Networking