欢迎您访问 最编程 本站为您分享编程语言代码,编程技术文章!
您现在的位置是: 首页

如何在本地设置无密码访问远程服务器?

最编程 2024-08-03 14:29:49
...
echo "Host server_name" >> config # server_name is the name for your server【这里需要配置你服务的名字,将来ssh登录的时候需要】 echo "Hostname server_ip" >> config #server_ip is the ip of your server【目标服务器ip地址】 echo "IdentityFile ~/.ssh/server_key" >> ~/.ssh/config