学无先后,达者为师

网站首页 编程语言 正文

Linux直接创建SSH无密码连接

作者:ccyy-Csdn 更新时间: 2023-07-04 编程语言
#创建密钥 & 赋予自己
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
chmod 0600 ~/.ssh/authorized_keys

#本地测试
ssh localhost

#把自己的公钥放到其他Linux的 ~/.ssh/authorized_keys中

#连接其他服务器测试
ssh 192.168.40.1

原文链接:https://blog.csdn.net/qq_39234840/article/details/125645416

  • 上一篇:没有了
  • 下一篇:没有了
栏目分类
最近更新