A site that requires a user name but no password..

Advertisement

goompa
Joined:
Posts:
7
Location:
new zealand

A site that requires a user name but no password..

How do I use scripting to attach to a site that requires a user name but no password..

Currently I'm just trying to work around the credentials prompt seeming all I have to do is press enter.

This means I can't automatically log on to this site.

Here is my current batch file...
"C:\Program Files\WinSCP\winscp" /console /command "option batch on" "open twft" "synchronize local"  "V:\localpath /remotepath" "exit"
Is there any way of saving the password as the ascii character for CR or anything or is there a setting I can change so I don't have to be in front of my computer when this runs please?

Thanks

Reply with quote

Advertisement

mmartin82
Guest

Any progress

Hi,

I was wondering if any progress was made on allowing a batch file to run where no password is required?

I have tried putting in test and a space but as per your suggestion of putting anything in but this hasn't worked.

Cheers!

Reply with quote

martin
Site Admin
martin avatar

Re: Any progress

Just follow the tracker link above.
It shows that this was resolved and shows the syntax needed.

Reply with quote

Advertisement

Guest

Re:Any Progress

Hi Martin,

Thanks for the quick reply!
Is it possible this feature could have been broken in a subsequent update?

I'm using the following code:
echo Copying files
 
"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
  /command ^
    "open ftp://zp300:@172.29.252.16" ^
    "cd ""/ """ ^
    "lcd ""D:\Data\Wake Steering Pilot - (External) - Measurement Data [EXTERNAL]\Nacelle LiDAR T3 [ZDM #368]\test""" ^
    "synchronize local" ^
    "exit"
 
set WINSCP_RESULT=%ERRORLEVEL%
if %WINSCP_RESULT% equ 0 (
  echo Success
) else (
  echo Error
)
 
exit /b %WINSCP_RESULT%
And am presented with the attached screenshot where I then need to hit space and then enter before it will proceed to successfully synch.

Any support would be greatly appreciated!
Thanks again!

WinSCP_Batchfile_ftp_no_password.png

Reply with quote

mmartin82
Guest

Re:Any Progress

Hi Martin,

Adding dummy into the password filed worked.

Thanks for your help resolving this.
Much appreciated!

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,853
Location:
Prague, Czechia

Re:Any Progress

@mmartin82: Thanks for your feedback.

Anyway, can you test the fix for me? Can you send me an email, so I can send you back a development version of WinSCP for testing? Please include a link back to this topic in your email. Also note in this topic that you have sent the email. Thanks.

You will find my address (if you log in) in my forum profile.

Reply with quote

Advertisement

Nypheena
Customer
Joined:
Posts:
5

I am trying this for a server that requires empty password and WinSCP will just constantly prompt and dummy as password doesn't help.

Specifically for the GUI on Windows.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,853
Location:
Prague, Czechia

@Nypheena: Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, enable logging, log in to your server and do the operation and only the operation that causes the error. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Nypheena
Customer
Joined:
Posts:
5

Had some issues putting it in the same first post my bad but here is the recording as well

to note the read only ftps server very specifically states "The password must be left empty" so can't use dummy password and winscp thinks that when no password is written that I intend for it to be manually input at each connection.

Reply with quote

Advertisement

Advertisement

Advertisement

You can post new topics in this forum