Forum Discussion
Yes, Its possible. You can configure Public SSH Key to Remote Server.
So many document you will find in google.
https://www.howtogeek.com/168147/add-public-ssh-key-to-remote-server-in-a-single-command/
Thanks for sharing the docs, I tried to follow the steps mentioned in the above docs.
The remote server in which I want to transfers the files is windows server and my F5 is running on linux version(Linux version 2.6.32-431.56.1.el6.)
First I tried to shared the keys by command line. I got below error.
cat ~/.ssh/id_rsa.pub | ssh abcd@1.2.3.4 'cat >> .ssh/authorized_keys'
abcd@1.2.3.4's password: exec request failed on channel 0 <<<<<<
Then I did scp to transfer the keys from F5 to window server.
.ssh scp /root/.ssh/id_rsa.pub abcd@1.2.3.4:/ abcd@1.2.3.4's password: id_rsa.pub 100% 420 0.4KB/s 00:00
It was successful but after that when I tried to run my script got same problem, password prompt.
admin bash bigipbackup.sh Saving active configuration... /var/local/ucs/date_xyz.ucs.ucs is saved. abcd@1.2.3.4's password: date_xyz.ucs.ucs 100% 6677KB 6.5MB/s 00:01
Any suggestion how password prompt can be avoid?