in reply to Need help in doing SFTP via command line

You can also try expect, for which a perl module also exist.

But as another monk said earlier, look up these:

ssh-keygen (generate a public and private key in .ssh_ DONT USE A PASSWORD when asked, just press enter)

ssh-copy-id (copy your public key to the other machine)

  • Comment on Re: Need help in doing SFTP via command line