I am trying to connect to remote server in hp-ux, using sftp command (using sftp username@ip and password ) able to connect to remote server but, in this case sftp prompt for password and user need to manually enter it.
I want sftp can read a password define in script or from file, so it can remotely fetch data from server without asking for password.
NOTE:- with my server no public private key define, no export command works, even sudo is not define
Facing error with -password option in sftp
sftp --password="password" "userid"@"servername"
ksh: 8: parameter not set
Please suggest is there any optional command i can use to do the same.
In any case command/script should not prompt for password and get the data from remote server.even perl script is ok for me..