

cat C:\Users\YOU/.ssh/id_rsa.pub | ssh 'mkdir -p ~/.ssh & cat > ~/.ssh/authorized_keys'ĭo the same on your Linux machine (Note, ssh-copy-id does not work) ssh-keygen # if neededĬat ~/.ssh/id_rsa.pub | ssh 'mkdir -p ~/.ssh & type con > C:/Users/YOU/.ssh/authorized_keys' Note that ssh-copy-id is not currently available on Windows. ifconfigĬopy public key from local (Windows) to remote (Linux) machine so you don't have to type in a password all the time.

On your remote (Linux) machine, find your IP address. Set-Service -Name sshd -StartupType 'Automatic' Start server and enable at boot Start-Service sshd Install server Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0 Install client Add-WindowsCapability -Online -Name OpenSSH.Client~~~~0.0.1.0 Get an admin command prompt Open PowerShell as an Administrator.Ĭheck available versions Get-WindowsCapability -Online | ? Name -like 'OpenSSH*'
