Topic "enter null password in a script"

Author Message
Amir66

Guest


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@10.0.0.1
open scp://root:@10.0.0.1
open scp://root:""@10.0.0.1
open scp://root:\0@10.0.0.1

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

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

This request has been added to the tracker:
https://winscp.net/tracker/show_bug.cgi?id=1011
_________________
Martin Prikryl
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