jekins,报错 stderr: Could not create directory '/usr/share/tomcat7/.ssh'. Failed to add the host to the list of

public key是在~/.ssh/id_rsa.pub,而private key是~/.ssh/id_rsa

设置的时候,Jenkins需要的是private key

原文地址:https://www.cnblogs.com/sea-stream/p/9637491.html