标签:创建 code mat passwd website incr dup out ide
jenkins 中使用 rsync 命令 是出现一些错误输出
Host key verification failed.
rsync: connection unexpectedly closed (0 bytes received so far) [sender]
# StrictHostKeyChecking no
在 jenkins 服务器切换到 jenkins账户 su - jenkins
创建密钥
ssh-keygen
Your identification has been saved in /var/lib/jenkins/.ssh/id_rsa.
Your public key has been saved in /var/lib/jenkins/.ssh/id_rsa.pub.
将公钥内容 id_rsa.pub 拷贝到客户端 /root/.ssh/authorized_keys 文件内
执行输出 结果为 success
rsync -avzP /data/go/*/*/* root@172.20.0.38:/data/website/ sending incremental file list adserver-beta 3632 0% 0.00kB/s 0:00:00 13227248 100% 85.79MB/s 0:00:00 (xfer#1, to-check=0/1) sent 97 bytes received 21883 bytes 43960.00 bytes/sec total size is 13227248 speedup is 601.79 Finished: SUCCESS
标签:创建 code mat passwd website incr dup out ide
原文地址:http://www.cnblogs.com/weifeng1463/p/7878366.html