change from ftp to secure ftp(SFTP)
445547Dec 6 2006 — edited Dec 7 2006hey guys i am trying to change one of my linux script FTP to Secure FTP. i will show you guys a part of the current script
# FTP IN and get directory list
cd $JL_HOME
ftp 200.192.113.15 > jl_list.log << EOF
cd /out/jl
ls -lt
bye
EOF
# Parse output file for latest filename
FILE_NAME1=`tail -1 $JL_HOME/JLc_list.log | cut -b40-90`
FILE_NAME2=`tail -2 $JL_HOME/JLc_list.log | cut -b40-90`
# FTP IN and get latest file
cd $JL_HOME
ftp 200.192.113.15 << EOF
cd /out/jlc
binary
get $FILE_NAME1
get $FILE_NAME2
bye
EOF
That is the part of my script which FTP to 200.192.113.15 .
Now as you see it is not secure ftp from my understanding , how do you change it to secure ftp ??
Please advice.