Typically when you SSH into a machine, you’re required to provide a username & password.
We can bypass this, and just use SSH keys. This guide walks through how to configure SSH Keys from a Windows client, to a macOS Server.
Client: The device that you are working from, and will be using to access the remote machine.
Server: The device that you will be remoting into.
Client Configuration :
- Open Terminal, or Windows Powershell.
2. Connect to your server, using the command below.
type $env:USERPROFILE\.ssh\id_rsa.pub | ssh user@ip-address "cat >> .ssh/authorized_keys"
3. Try SSH’ing into your server again, and you will notice you are no longer prompted for a password!