windows下配置多个ssh

1.生成一个SSH-Key 

ssh-keygen –t rsa –C "[email protected]"

2.添加一个私钥

ssh-add ~/.ssh/id_rsa

如果执行ssh-add时提示"Could not open a connection to your authentication agent",可以现执行命令:

ssh-agent bash

3.查看私钥列表

ssh-add -l

4.清空私钥列表

ssh-add -D

5.测试

ssh -T [email protected]


猜你喜欢

转载自blog.csdn.net/cc_want/article/details/79951484
今日推荐