I am getting following error while trying to connect to a sftp server:-
ncftpput: cannot open
http://mydomain.com:
unknown host.
Code which I am using is as following:-
FTPU=”username” # ftp login name
FTPP=”password” # ftp password
FTPS=”http://mydomain.com”#
remote ftp serverFTPF=”/home” # remote ftp server
directory for $FTPU> & $FTPPLOCALD=”/localpath”
ncftpput -m -u $FTPU -p $FTPP $FTPS
$FTPF $LOCALD
I am currently running this script on fedora 10…
thanks…..
ncftpput is an FTP client that does not support SSH (see their FAQs). Also, in your script you’re providing an HTTP URL instead of just a server name. If mydomain.com actually runs an FTP server, try FTPS=mydomain.com instead.