Did anyone encounter issues with authentification in script ?
I have a couple of scripts that are OK, using a full commande line (protocol, user, password, host, port, hostkey).
But this one fails whereas typing each parameters at the commande line is OK.
I read the FAQ, documentations, doublechecked the parameters are correct
Is there a mean to pass arguments (user, password especially) one by one, on seperate lines in a script ?
Script
open sftp://lar_user_test:***@83.206.193.82 -hostkey="ssh-rsa 2048 ....4="
Searching for host...
Connecting to host...
Authenticating...
Using username "lar_user_test".
Authenticating with pre-entered password.
Access denied.
Access denied.
Connection has been unexpectedly closed. Server sent command exit status 0.
Authentication log (see session log for details):
Using username "lar_user_test".
Access denied.
Access denied.
Command line
winscp> open
Host: 83.206.193.82
Searching for host...
Connecting to host...
Authenticating...
Username: lar_user_test
Password:
Authenticated.
Starting the session...
Reading remote directory...
Session started.
Active session: [2] 83.206.193.82
winscp> bye
..