August 10, 2023
Passwordless SSH login for Windows 10
Step 1: SSH Key Generation
In PS terminal, type ssh-keygen
and press [Enter]
Step 2: Copy SSH Key to Remote Linux Device
Copy following line and paste it in the terminal:
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh {IP-ADDRESS} "cat >> .ssh/authorized_keys"
... where IP-ADDRESS
is the IP or Hostname of the server you want to connect to
Step 3: Test SSH Connectivity To Server Using Key
Type following in the terminal and press [Enter]:
ssh user@IP-ADDRESS