Topic "Command Line code using ssh"

Author Message
gman74

Guest


Hi,

I have the following Script

Code:

option batch abort
option confirm off
open sftp://gman:password@xxx.xxx.com/ -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:password@xxx.xxx.com/ as I have actually left the word password in place.

The error log shows the following, where it is failing.

Code:

. 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.
gman74

Guest


After several hours of tinkering have resolved. Case closed. Very Happy
Guest




gman74 wrote:
After several hours of tinkering have resolved. Case closed. Very Happy


What was your solution?
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License