Home > OS >  Windows and Linux key links
Windows and Linux key links

Time:09-28

Have a great spirit of win - the server install openssh, please, after I put on, his public key in the Linux side to win a user's home directory. SSH, and change name, but still can't avoid password, where

CodePudding user response:

Opposite direction, the client (win) generate the key pair, the client (win) the public key is appended to the authorized_keys file server (Linux), and then from the client (win) can avoid the login server (Linux)

CodePudding user response:

I'm sorry, I understand the wrong, your client is Windows, Linux server public key should be appended to the authorized_keys file, Windows below the position in which I'm not sure, need to have a look at the configuration in the sshd_config,

CodePudding user response:

reference 1/X - I - n reply:
opposite direction, the client (win) generate the key pair, the client (win) the public key is appended to the authorized_keys file server (Linux), and then from the client (win) can avoid the login server (Linux)
thank you for your reply, I'd like to avoid password login Windows, Linux authorized files should be stored to win. SSH, but win new file directly, and then copy the public key content cannot be used in the past, the connection will prompt public key format error, I don't know how to generate this file,
  • Related