I am trying to use ssh/scp from Windows to Linux without having to enter a password.
This is what I have done, and it doesn't seem to work:
- generated public and private keys using Putty Key Generator (on Windows)
- saved the files as
id_rsa.pub
andid_rsa
- copied them into
~/.ssh
- added id_rsa.pub to the Linux box in
~/.ssh/authorized_keys
- I then try to
ssh
to the Linux box from Windows and I still have to enter a password
Am I missing something?
Best Answer
You have to run an authentication agent on Windows.
For example, Pageant, used in combination with PuTTY (graphical SSH client) or Plink (its command line equivalent).
You'll need to tell Pageant your SSH server's public key. After that it will deal with your server's authentication requests while running in the background.