Failed to connect change directory:jenkins.plugins.publish_over.BapPublisherException:Failed to conn
创建一个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下,若是没有自己创建。