Setting Up Connection 2
The objective is to set up passwordless connection from the server to the client devices.
Prerequisites
- Set the IP of the device as server to be
192.168.0.100
in the router. - You have successfully run Setting Up SSH in the previous article.
Set Up SSH Keys (Automatic)
Use the script.
Set Up SSH Keys (Manual)
- Switch the workplace to the server device by either
ssh
or IO devices. - Copy the public key to other client devices by running (for example,
[email protected]
is the client IP):ssh-copy-id [email protected]
- Repeat steps #1-2 on other devices, replace the IP with other client IP.
Test
- Connect to the server by running:
ssh [email protected]
- Check if you don't need to enter the password to any client by running (for example,
192.168.0.101
is the client IP):ssh [email protected]