问题:jenkins配置ssh远程连接时候报 ERROR: Failed to authenticate with public key com.jcraft.jsch.JSchException: invalid privatekey: [B@5c313ae5 jenkins前端提示:Can't connect to server 原因分析: 本地机器秘钥生成不对 必须将本地私钥完整内容拷贝,包括----字符(可能是个bug) 生成秘钥时候的密码错误 配置步骤: 1. private key必
ansible 批量推送ssh秘钥 参考:http://docs.ansible.com/ansible/authorized_key_module.html # vi /etc/ansible/hosts [caoguo] [root@localhost ansible]# ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/root/.ssh/id_rsa): Ent