ubuntu 无密码 ssh

来源:互联网 发布:java 构造函数 public 编辑:程序博客网 时间:2024/06/10 07:40

在配置spark中,我们需要无密码方式的ssh连接。

所以,一般使用

# ssh-keygen -t rsa

生成在家目录下的.ssh中一个id_rsa.pub

将这个文件复制到另外的机器中

#另一台机器中使用cat id_rsa.pub >> authorized_keys


在出现Agent admitted failure to sign using the key.

时利用

ssh-add

0 0
原创粉丝点击