Problem with Authentication
Hi,
WinSCP works fine using the Windows GUI. Connection is done via SFTP, the host uses port 2222. When using a script, my password is rejected.
At the command prompt I enter:
winscp.exe /ini=WinSCP.ini /log=logfile.txt /console /script=login.txt
login.txt is:
option confirm off
open bewa43.berliner-wassertisch.net:<mypassword>@berliner-wassertisch.net -hostkey="ssh-rsa 2048 xx:xx:xx"
cd /httpdocs
option transfer binary
get htaccess.txt d:\
close
exit
The logfile says at the end:
Prompt (7, SSH password, , &Passwort:)
Using stored password.
Sent password
Access denied
Access denied
Prompt (7, SSH password, , &Passwort:)
Disconnected: Unable to authenticate
xx:xx:xx and <mypassword> are replaced by the appropriate values.
Is there any solution? Is the password stored in WSCP.ini only a dummy?
WinSCP works fine using the Windows GUI. Connection is done via SFTP, the host uses port 2222. When using a script, my password is rejected.
At the command prompt I enter:
winscp.exe /ini=WinSCP.ini /log=logfile.txt /console /script=login.txt
login.txt is:
option confirm off
open bewa43.berliner-wassertisch.net:<mypassword>@berliner-wassertisch.net -hostkey="ssh-rsa 2048 xx:xx:xx"
cd /httpdocs
option transfer binary
get htaccess.txt d:\
close
exit
The logfile says at the end:
Prompt (7, SSH password, , &Passwort:)
Using stored password.
Sent password
Access denied
Access denied
Prompt (7, SSH password, , &Passwort:)
Disconnected: Unable to authenticate
xx:xx:xx and <mypassword> are replaced by the appropriate values.
Is there any solution? Is the password stored in WSCP.ini only a dummy?