系统相关
首页 > 系统相关> > linux基础命令-生成ssh密钥

linux基础命令-生成ssh密钥

作者:互联网

Failed to connect change directory:jenkins.plugins.publish_over.BapPublisherException:Failed to conn
  1. 创建一个SSH KEY
ssh-keygen -t rsa

命令行出现:

询问你输入SSH KEY的文件名,默认是id_rsa/id_rsa.pub

Enter file in which to save the key (/root/.ssh/id_rsa): 

询问你输入密码,记住passphrase,在jenkins会非常有用

Enter passphrase (empty for no passphrase):

这两个直接空格就可以,方便快捷。
2. 之后会在/root/.ssh目录下看到三个文件 id_rsa(私钥), id_rsa.pub(公钥), authorized_keys
3. 将id_rsa.pub中的内容粘贴到应用服务器的/root/.ssh/authorized_keys下,若是没有自己创建。

标签:rsa,pub,密钥,passphrase,linux,jenkins,id,ssh
来源: https://blog.csdn.net/weixin_43404791/article/details/105348439