I have the following Script
option batch abort option confirm off open sftp://gman:firstname.lastname@example.org/ -hostkey="ssh-rsa 2048 XX:a2:XX:53:XX:50:XX:0f:XX:82:XX:0a:XX:5d:XX:84" option transfer binary get "/Home/xxx/Production/201508/18018291/" "\\xxxx.xxxx.com\shares\xx - xxxx\xxx_xxx_xxx\xxx\xxx\xxx\xxx\201508\18018291\*.*" close exit
Just doesn't work from the log I get the following error, there is no passphrase on the Private Key and I cobvioulsy don't need a password to access the server, so not sure if doing something wrong here sftp://gman:email@example.com/ as I have actually left the word password in place.
The error log shows the following, where it is failing.
. 2015-08-20 10:27:40.988 Initialised AES-256 SDCTR client->server encryption . 2015-08-20 10:27:40.988 Initialised HMAC-SHA1 client->server MAC algorithm . 2015-08-20 10:27:40.988 Initialised AES-256 SDCTR server->client encryption . 2015-08-20 10:27:40.988 Initialised HMAC-SHA1 server->client MAC algorithm ! 2015-08-20 10:27:41.442 Using username "gman". . 2015-08-20 10:27:41.564 Prompt (password, "SSH password", <no instructions>, "&Password: ") . 2015-08-20 10:27:41.565 Using stored password. . 2015-08-20 10:27:41.565 Sent password . 2015-08-20 10:27:51.215 Password authentication failed ! 2015-08-20 10:27:51.215 Access denied . 2015-08-20 10:27:51.216 Prompt (password, "SSH password", <no instructions>, "&Password: ") . 2015-08-20 10:27:51.216 Disconnected: Unable to authenticate
Not sure where I am going wrong, pretty sure I am close, any assistance appreciated, thanks in advance.