Page 1 of 1

ftp to sftp

Posted: 2016-12-18 17:31
by sandeepdeepala
Guys I need your help,

we are trying change the unix script from ftp to sftp.

current script:

ftp -n<<EOF
open "$hostname"
user "$username" "$password"

New Script:

sftp -n<<EOF
open "$hostname"
user "$username"

will this work ...please let me know.

Re: ftp to sftp

Posted: 2017-01-28 23:26
by boco
Unless there is an sftp executable on your system that uses exactly the same syntax as the ftp one, no.

SFTP is a completely different beast as FTP.