Topic "enter null password in a script"

Author Message


Hi all,

I'm trying to use winscp scripting, for automation purposes. I'm using ssh connection.
The problem is, that the host I'm connecting to (internal company host), is asking for a password. however, the password is actually empty, null password.
When I'm using the gui, I just press enter when it prompts for the password, and it's working.
When working with the script, I want to avoid the prompt for password...
How can I transfer an empty password using a script?

I tried the following:
open scp://root@
open scp://root:@
open scp://root:""@
open scp://root:\0@

and some other options... does anyone has an idea? I thought this will be simple issue, but looks like it's tricky...

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26858
Location: Prague, Czechia
Thanks for your post.

This request has been added to the tracker:
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License