sshagent(['repository']) { sh "rsync -av *.rpm ro...@server.company.com:/srv/www/htdocs/staging_rpms/"}sshagent(['repository']) { sh "scp *.rpm ro...@server.company.com:/srv/www/htdocs/staging_rpms/"}Did you try passing the host key checking ssh parameter to "no"?
--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/fb3f547a-32ad-49b0-a012-9dfa69f91a35%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no root@server.company.comscp -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no *.rpm root@server.company.com:/tmp--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/db0ba327-53d3-46f4-a09d-feeb3d539104%40googlegroups.com.
ssh -i private.key build@server.company.com
Password: Password: Password: Permission denied (publickey,keyboard-interactive).To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/434015fa-5aa1-4d03-ac0a-93eada305d53%40googlegroups.com.
debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Offering RSA public key: build (company-server) debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Offering RSA public key: /home/build/.ssh/id_rsa debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Trying private key: /home/build/.ssh/id_dsa debug1: Trying private key: /home/build/.ssh/id_ecdsa debug1: Next authentication method: keyboard-interactive debug1: read_passphrase: can't open /dev/tty: No such device or addressdebug1: Authentications that can continue: publickey,keyboard-interactive debug1: read_passphrase: can't open /dev/tty: No such device or addressdebug1: Authentications that can continue: publickey,keyboard-interactive debug1: read_passphrase: can't open /dev/tty: No such device or addressdebug1: Authentications that can continue: publickey,keyboard-interactive debug1: No more authentication methods to try. Permission denied (publickey,keyboard-interactive).I don't think the problem is with either Jenkins og Agent SSH Plugin as I am getting almost the same problem manually executing ssh with the private key.debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: publickey debug1: Trying private key: private.key debug1: read PEM private key done: type RSA debug1: Authentications that can continue: publickey,keyboard-interactive debug1: Next authentication method: keyboard-interactive Password:
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/0d840fa3-bbb8-4933-80bf-d35c26451194%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/080fb889-6a54-45a6-a557-e0f24a39181e%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/b6a9939d-475a-448e-a462-d259786ee852%40googlegroups.com.