Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

change from ftp to secure ftp(SFTP)

445547Dec 6 2006 — edited Dec 7 2006
hey 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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2007
Added on Dec 6 2006
9 comments
1,229 views