Forum Discussion
SCP to F5 question
Hi everyone,
Very basic stuff question for sure.., I'm writing a script to backup UCS config files regularly from a UNIX system through SCP. I have generated a private/public key pair with ssh-keygen on my server for root account and copied the id_rsa.pub key in the "authorized_keys" file on target F5 (BIG-IP 1600) to avoid being prompted for password.
However, it is not working. Everytime I run the scp commnad I'm asked for the root password. Is root login through SSH disabled in F5?, what am I doing wrong?
Activating the debug option on scp I'm getting this trace
debug1: Authentications that can continue: publickey,keyboard-interactive,hostbased debug1: Next authentication method: publickey debug1: Offering public key: /root/.ssh/id_rsa debug1: Authentications that can continue: publickey,keyboard-interactive,hostbased debug1: Trying private key: /root/.ssh/id_dsa debug1: Next authentication method: keyboard-interactive <<<<<<<<<<<<<<<< Password: debug1: Authentication succeeded (keyboard-interactive). <<<<<<<<<<<<<<<<<< and the remote copy completes OK.
Any ideas?, Thanks in advance,
Moog
4 Replies
- Cory_50405
Noctilucent
If you SSH from the F5 to your UNIX server, are you prompted to trust the host key? If so, trust it and then try again.
- moog67_108621
Nimbostratus
Still no joy, I'm prompted for remote server's password
scp root@X.X.X.X:/var/f5backups/test /var/tmpThe authenticity of host 'X.X.X.X (X.X.X.X)' can't be established. RSA key fingerprint is "some_key_fingerprint" Are you sure you want to continue connecting (yes/no)? yes Warning: Permanently added 'X.X.X.X' (RSA) to the list of known hosts. SomeServer .....
root@X.X.X.X's password:
- Cory_50405
Noctilucent
Well, now your boxes should trust each other. Does the key login from your UNIX server to F5 work now?
- amolari
Cirrostratus
i think you shouldn't use root. Create another user with admin+bash rights and use that one. In v11.x should work without changing the configuration, as long as the authorized_keys file is properly set. https://support.f5.com/kb/en-us/solutions/public/13000/400/sol13454.html
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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
