enter null password in a script

Advertisement

Amir66
Guest

enter null password in a script

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!

Reply with quote

Advertisement

You can post new topics in this forum