5

Passwordless SFTP - SCP Option?

view full story
linux-howto

http://www.unix.com – I have read documentation on SCP and just trying to figure out how go about doing this - below are two pieces of code, one is SFTP and one is SCP. My goal is to have this done via password-less authentication, fully automated. Currently we use SFTP and the script asks for the password of the account we are connecting to, but we are trying to skip that. Code: # Connect to SFTP echo "" sftp -b /dev/stdin ${INPUT_APP_LOW}proc@$(hostname) <<EOF cd $BATCHFILEPATH lcd /home/etladmin/deploy/$INPUT_APP_LOW/KSH put $SHELLSCRIPT chmod 755 $SHELLSCRIPT quit EOF Code: (HowTos)