Please read FAQ. If that does not help, come back.
- martin
winscp> option batch on
batch on
winscp> option confirm off
confirm off
winscp> open abc5328@17.22.21.166
Searching for host...
Connecting to host...
Authenticating...
Using username "abc5328".
Authenticating with public key "imported-openssh-key".
Passphrase for key 'imported-openssh-key':
Wrong passphrase.
Passphrase for key 'imported-openssh-key':
Connection has been unexpectedly closed. Server sent command exit status 0.
Authentication log (see session log for details):
Using username "abc5328".
Authenticating with public key "imported-openssh-key".
Wrong passphrase.
Authentication failed.
Thanks for your reply.This is the first time I am automating the shell script to sftp the files .Could you please tell me how can I know the format of my public key in the unix server.?
Also the The Winscp which I have got installed is the client version.So Would that be enough to automate the sftp process through shell script.