Forum Discussion
Suresh_Jo_32729
Nimbostratus
Aug 06, 2018F5 Auto backup script for SCP for V12
All,
I have deployed one script in F5 for Auto backup script for SCP for V12.
Script:
!/bin/bash
/admin/home/bigipbackup.sh
UCS Files will be saved to /var/local/ucs/
Create current date/time s...
Samir_Jha_52506
Noctilucent
Aug 06, 2018Yes, 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/
Samir_Jha_52506
Noctilucent
Aug 06, 2018Can you try some thing like this...
scp "/var/local/ucs/${UCS_FILENAME}.ucs" abcd@1.2.3.4:/
echo "password"
I am gusseting once unix system ask password, echo will pass that.
Other option is to use
sshpass tool in unix machine.
sshpass -p "password" scp "/var/local/ucs/${UCS_FILENAME}.ucs" abcd@1.2.3.4:/
Install tool
sudo apt-get install sshpass
Follow the link
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* 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
Discover DevCentral Connects
