Enter this command: vim ~/.ssh/authorized_keys
SSH WINDOWS 10 KEYGEN PASSWORD
ssh-rsa AAAAC3NzaC1yc2EAAAADAQABAABBAQDs4aYDW+/XeeewahNS3JO9lxxREYdEcJEccQIMHixnVcaQOzXwiNIJ5HNbHpv5lk2YgcPSffPLcX6lQruLbSt3HDjNl3Q76P81xuPUscCeP37ulZXVuQoaWeqTlW36AXWeZsqQowLxih8+ydl2FlIv/Zytv2AAJk3SKEiGuDBJciCAvVTgb0bNGn93X3tohBpM79mRWuCCWSoRbi+u8kumUpt9eeXgmte82UI9JVKb0qj/G3XJp84s0Evtk7L+HhZ+/v6VmfQCsC/lrOKwGezbVGwI/3Xz64kudCmvkfmWOEGFOG+v0MMCA91mDrKr4Tc7nj6yYTE1kIm0圓DdLS7l you need to login to your server via SSH with password as of now ssh Then you need to edit or make a file authorized_keys via vim. The file is in C:\Users\YOUR_USERNAME\.ssh\ folder. Open up the id_rsa.pub file with a notepad and copy the whole text. Since ssh-copy-id is not a built-in command in Windows 10 (See explanation at the bottom), you need to manually add your public key to your server. It will then create the id_rsa and id_rsa.pub file in your C:\Users\YOUR_USERNAME\.ssh directory and in the command screen it will show a randomart image. SHA256:3lk4xS/1udKUWtPqo1BtSFpGIufIlZYLhEHxOtiXDQI key's randomart image is: Your public key has been saved in C:\Users\YOUR_USERNAME/.ssh/id_rsa.pub. Your identification has been saved in C:\Users\YOUR_USERNAME/.ssh/id_rsa. Enter passphrase (empty for no passphrase): You’ll also be asked to re-enter it again. To improved security of your RSA key pair add your passphrase in it. Now, you’ll be asked to enter a passphrase.
Now, enter the command ssh-keygen, this will asked to enter a file name for it, make sure to leave it as blank so that it will save the pair as the default filename id_rsa: Generating public/private rsa key pair.Įnter file in which to save the key (C:\Users\YOUR_USERNAME/.ssh/id_rsa):
To start, open up a command prompt on your Windows 10. This is by using the built-in ssh-keygen command available in your Windows 10.īasically, the ssh-keygen will create an authentication key pairs that you can use for Secure Shell protocol login. If you’re tired of putting a password everything you login via SSH into your server via ssh there are ways to automatically login to your server without requiring you input a password.