Forum Discussion
using scp from F5 to copy file to remote location
- Feb 03, 2023
Use expect to do, the instruction are found here https://community.f5.com/t5/codeshare/automate-scp-transfers-using-password/ta-p/308862
[root@F5-NODE2:Standby:In Sync] ucs scp -v /var/local/ucs/${SysName}_${Date}.ucs user4@10.10.5.7:/tmp/${SysName}_${Date}.ucs Executing: program /usr/bin/ssh host 10.10.5.7, user user4, command scp -v -t /tmp/_.ucs OpenSSH_4.3p2, OpenSSL 0.9.8y 5 Feb 2013 debug1: Reading configuration data /config/ssh/ssh_config debug1: Applying options for * debug1: Connecting to 10.10.5.7 [10.10.5.7] port 22. debug1: Connection established. debug1: permanently_set_uid: 0/0 debug1: identity file /root/.ssh/identity type 1 debug1: identity file /root/.ssh/id_rsa type -1 debug1: identity file /root/.ssh/id_dsa type -1 debug1: loaded 3 keys debug1: Remote protocol version 2.0, remote software version WeOnlyDo 2.1.3 debug1: no match: WeOnlyDo 2.1.3 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_4.3 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-cbc hmac-md5 none debug1: kex: client->server aes128-cbc hmac-md5 none debug1: sending SSH2_MSG_KEXDH_INIT debug1: expecting SSH2_MSG_KEXDH_REPLY debug1: Host '10.10.5.7' is known and matches the RSA host key. debug1: Found key in /root/.ssh/known_hosts:2 debug1: ssh_rsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: password,publickey debug1: Next authentication method: publickey debug1: Offering public key: /root/.ssh/identity debug1: Server accepts key: pkalg ssh-rsa blen 149 debug1: read PEM private key done: type RSA debug1: Authentications that can continue: password,publickey debug1: Trying private key: /root/.ssh/id_rsa debug1: Trying private key: /root/.ssh/id_dsa debug1: Next authentication method: password user4@10.10.5.7's password: debug1: Authentications that can continue: password,publickey Permission denied, please try again. user4@10.10.5.7's password: debug1: Authentications that can continue: password,publickey Permission denied, please try again. user4@10.10.5.7's password: Received disconnect from 10.10.5.7: 2: Too many attempts. lost connection [root@F5-NODE2:Standby:In Sync] ucs
Recent Discussions
Related Content
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com