vscode连接ssh免密

Windows端生成私钥

ssh-keygen -t rsa -f ~/.ssh/id_rsa_manjaro //rsa后缀用于和github密钥区分开

id_rsa_manjaro.pub

Ubuntu添加私钥

用户.ssh里的authorized_keys

vscode设置ssh的config

1
2
3
4
5
Host Manjaro
HostName 192.168.1.100
User boqi
IdentityFile ~/.ssh/id_rsa_manjaro
IdentitiesOnly yes