Accessing secured server using shell script

Hi,

I was trying to connect secure server using SFTP, but end up in error. Im looking for a shell script which will connect my secured FTP server

For EG:
hostname = example.com
username = fed
password = pass
port = 993
Destination = web
Push some tar file into web folder which is in FTP

What exactly did you try?

Usually you're not supposed to automate sftp passwords, there's better ways, like keys. Google passwordless ssh.

Hi,

thanks for the reply... But im looking for a script to automate even the password.. kindly guide me pls

Thanks
Wintech

Check out this thread: SFTP / SCP using password