ftp to sftp

Have the feeling that everybody is staring at you in the other forums? Then look here, in this forum nobody does care what you say ;-)

Moderator: Project members

Post Reply
Message
Author
sandeepdeepala
500 Command not understood
Posts: 1
Joined: 2016-12-18 17:28
First name: sandeep
Last name: deepala

ftp to sftp

#1 Post by sandeepdeepala » 2016-12-18 17:31

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.

User avatar
boco
Contributor
Posts: 24153
Joined: 2006-05-01 03:28
Location: Germany

Re: ftp to sftp

#2 Post by boco » 2017-01-28 23:26

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.
### BEGIN SIGNATURE BLOCK ###
No support requests per PM! You will NOT get any reply!!!
FTP connection problems? Do yourself a favor and read Network Configuration.
All FileZilla products fully support IPv6. http://worldipv6launch.org
### END SIGNATURE BLOCK ###

Post Reply