Open anoushkrit opened 10 months ago
Host <myhost>
HostName <myhost>
User <remoteuser>
Port 22
PreferredAuthentications publickey
IdentityFile "<path_to_your_private_key>"
ssh-keygen -q -b 4096 -P "" -f <path_to_your_private_key> -t rsa
ssh-copy-id -i "<path_to_public_key_generated_by_keygen.pub>" <host_name>@<host_ip>
chmod 600 <path_to_private_key>
chmod 644 <path_to_public_key>
ssh <remoteuser>@<myhost>
should run smoothly and without password
Setting up ssh-key and then copying and pasting it to the remote server.
https://stackoverflow.com/questions/66113731/how-to-save-ssh-password-to-vscode
On VS Code, edit the .ssh config file