VS code ssh password-free login

1. Use ssh-keygen to generate public and secret keys under winows (using git Bash Here)

Use the command ssh-keygen.exe -t rsa (you can enter all the way)

2. Speak the public key to the server

ssh-copy-id -i .ssh / id_rsa.pub [email protected], you will be asked to enter the server password

3. If the corresponding server has been configured for the remote development of the vscode plugin, the next time you log in via ssh, you do not need to enter a password

In addition, my vscode ssh configuration file ssh_config path C: \ Users \ Administrator \ .ssh, where the generated public key and private key are placed here

 

Guess you like

Origin www.cnblogs.com/kasader/p/12760284.html