Forum Discussion
JP_42120
Nimbostratus
Jun 18, 2015F5 automated backup with iApp - SCP passwordless authentication not working
Hi,
Looking for help with iApp F5 automated vi SCP.
We have setup the iApp to SCP UCS files to remote Linux server, but it is not working.
We have tested password less login and SC...
cjunior
Nacreous
Jun 19, 2015OK.
Can you complete the wizard and create the application or did you have this error before? I noticed an error that can be in sync messages. You have pairs of BigIP? Could you tell me if the /config/f5.automated_backup_scp.conf file is in all the boxes?Please, could you test the script bellow? Is a copy of original script with minimum changes.
put()
{
fields="username server directory"
i=1
f5masterkey=$(f5mku -K)
for current_field in $fields ; do
sedcommand="${i}p"
current_encrypted_value=$(sed -n "$sedcommand" /config/f5.automated_backup_scp.conf)
current_decrypted_value=$(echo "$current_encrypted_value" | openssl aes-256-ecb -salt -a -d -k $f5masterkey)
eval "$current_field=$current_decrypted_value"
let i=$i+1
unset current_encrypted_value current_decrypted_value sedcommand
done
sed -n '4,$p' /config/f5.automated_backup_scp.conf | openssl aes-256-ecb -salt -a -d -k $f5masterkey > /var/tmp/scp.key
chmod 600 /var/tmp/scp.key
cat /var/tmp/scp.key
testfile="/var/tmp/test.tx"
echo "Test!" > $testfile
scp -i /var/tmp/scp.key ${testfile} ${username}@${server}:${directory}
rm -f /var/tmp/scp.key
return $?
}
put
call e.g.: "bash -x scp2.sh" and share the result, please
I'm trying all the possibilities here.
Thank you for your attention.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
