Authentication with pre-entered password: Access denied

Advertisement

freddy.dewulf@outlook.com
Joined:
Posts:
2
Location:
Belgium

Authentication with pre-entered password: Access denied

SFTP server
Automated

Winscp.exe GUI interface: We can connect to an SFTP server with the credentials we got from the provider.
When we want to connect to this server using a script in an automated scene, then the authentication fails,

script:
winscp.com /ini=nul /script=script_10.txt /log=winscplog.txt
the scriptfile, screenshot and a logfile are send as attachments.

I suppose the strange characters in the password are the reason.
I asked a password with less characters and not that kind of characters, but, due to security reasons, the provider does not give another password.

Can somebody help me?
Greetings
  • winscplog_10.txt (6.87 KB, Private file)
Description: Logfile generated when the script was executed
  • Screenshot_Exec_Winscp.png (59.35 KB, Private file)
Description: screenshot when executing the batfile with the script "winscp.com /ini=nul /script=script_10.txt /log=winscplog.txt"
  • script_10.txt (217 Bytes, Private file)
Description: Script with password with special characters

Reply with quote E-mail

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
42,505
Location:
Prague, Czechia

Re: Authentication with pre-entered password: Access denied

Have WinSCP GUI generate a script for you:
https://winscp.net/eng/docs/ui_generateurl

Though I do not see any really special character in your password. Maybe except for the trailing double-quote. I'm just not sure it is supposed to be part of the password or if it is a typo. If it is part of the password, you need to double it.
https://winscp.net/eng/docs/scripting#quotes

Reply with quote

freddy.dewulf@outlook.com

Thanks for your advice. I generated a script in WinSCP. With that script, I can connect to the server.
In this generated script, most special character is the password are replaced by %nn where nn is the hexavalue of the character.
The " at the end of the password is not a tippo

Reply with quote E-mail

Advertisement

You can post new topics in this forum