SSH into Windows using Key Authentication Install OpenSSH Server on remote machine Set OpenSSH Authentication Agent service & OpenSSH Server service to start automatically Start both services Edit C:\ProgramData\ssh\sshd_config file PubKeyAuthentication yes PasswordAuthentication no # Match group admin ... # Authorized key file ... Restart OpenSSH service Create C:\Users\<user_name>\.ssh\authorized_key file without extension Change file permissions Disable Inheritance Remove Administrators from Access permissions Create ssh key on local machine Copy public key from local machine to authorized_key file on remote machine SSH into remote machine ssh user@ip -i "private_key_file"