您现在的位置是:首页 >技术点滴> Linux 网站首页Linux
ssh快捷访问
- Linux
- 2020-05-07
- 1237 次阅读
- 0
- 原创
本机 ~/.ssh/config 中加入Host xxxx(指定快捷名称)HostName (远程机ip)User (user )Port (一般为22)远程机 ~/.ssh/authoriz...
本机
~/.ssh/config 中加入
Host xxxx(指定快捷名称)
HostName (远程机ip)
User (user )
Port (一般为22)
远程机
~/.ssh/authorized_keys
中添加本地机的ssh公钥
然后 使用 ssh xxxx 即可快速访问远程机
转载: 感谢您对【phper】网站平台的认可,非常欢迎各位朋友分享到个人站长或者朋友圈,但转载请说明文章出处【来源 phper: https://www.birdeyes.cn/article/30/30.html】。