Tag: rsync

  • rsync and sudo over SSH | crashingdaily

    I do not have a root password for many of the servers I interact with so I can not SSH directly in as the root user. Also, the ssh daemons are wisely configured with ‘PermitRootLogin’ s…

    Source: rsync and sudo over SSH | crashingdaily

  • Fix rsync “Host Key Verification Failed” in Jenkins

    If you got the following error in Jenkins output using rsync:

    Running "shell:sync" (shell) task
    Host key verification failed.
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
    Warning: Command failed: Host key verification failed.
    rsync: connection unexpectedly closed (0 bytes received so far) [sender]
    rsync error: error in rsync protocol data stream (code 12) at io.c(605) [sender=3.0.9]
     Use --force to continue.
    

    Try the following:

    • su -s /bin/bash jenkins, since Jenkins install doesn’t have login shell by default on CentOS
    • ssh into target server
    • When prompt “Are you sure you want to continue connecting (yes/no)?”, type yes
    • Rerun the job