Добрый день! Имею такой код:
sshagent(['user-ssh']) {
sh "ssh -Tv -o StrictHostKeyChecking=no ${env.DEV_USER}@${env.DEV_HOST} 'ls -al /home/user'"
sh "scp -o StrictHostKeyChecking=no ./distr/configurator.tar ${env.DEV_USER}@${env.DEV_HOST}:/home/${env.DEV_USER}"
}
Хочу подрубиться на хост, в credentials у меня приватный ключ юзера на этом дев хосте.
Но почему-то возникает ошибка:
+ scp -i **** -o StrictHostKeyChecking=no ./distr/configurator.tar mvp_dev@tkles-mvp000647.vm.esrt.cloud.sbrf.ru:/home/mvp_dev
Warning: Permanently added 'tkles-mvp000647.vm.esrt.cloud.sbrf.ru,10.53.94.102' (ECDSA) to the list of known hosts.
|-----------------------------------------------------------------|
| This system is for the use of authorized users only. |
| Individuals using this computer system without authority, or in |
| excess of their authority, are subject to having all of their |
| activities on this system monitored and recorded by system |
| personnel. |
| |
| In the course of monitoring individuals improperly using this |
| system, or in the course of system maintenance, the activities |
| of authorized users may also be monitored. |
| |
| Anyone using this system expressly consents to such monitoring |
| and is advised that if such monitoring reveals possible |
| evidence of criminal activity, system personnel may provide the |
| evidence of such monitoring to law enforcement officials. |
|-----------------------------------------------------------------|
Permission denied, please try again.
Permission denied, please try again.
Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
lost connection
Что это может быть? Помогите плиз.