Setting Up Connection 2

The objective is to set up passwordless connection from the server to the client devices.

Prerequisites

  1. Set the IP of the device as server to be 192.168.0.100 in the router.
  2. You have successfully run Setting Up SSH in the previous article.

Set Up SSH Keys (Automatic)

Use the script.

Set Up SSH Keys (Manual)

  1. Switch the workplace to the server device by either ssh or IO devices.
  2. Copy the public key to other client devices by running (for example, [email protected] is the client IP):
    ssh-copy-id [email protected]
    
  3. Repeat steps #1-2 on other devices, replace the IP with other client IP.

Test

  1. Connect to the server by running:
    ssh [email protected]
    
  2. 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]
    

results matching ""

    No results matching ""