Jump to content
Sign in to follow this  
SimonP

Hidding passwords

Recommended Posts

SimonP

Hi,

I had a requirement of connecting to a remote server using port 22 (secure) to pull down some files via a scheduled task and I did not want the username and password written in the batch file or scheduled task.

I have written a wrapper script using AutoIT for the pscp.exe utility that incorporates the username and password within the compiled script.

I have also included the pscp.exe file itself using the FileInstall() command.

It all works fine except when it is running, the pscp.exe process appears in Process Explorer as a child process and when I view it's propertities it shows the full command line - including the username and password.

Is there a way AutoIT can run the pscp.exe without it appearing as a child process?

Thanks in advance.

Share this post


Link to post
Share on other sites
PsaltyDS

Will the server support a private 1024-bit key instead of a password? Only the .ppk key file name shows up in the command line then.

:idea:


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites
SimonP

Thanks for your reply.

I know that certificates is another option but prefer not to use them if possible.

Would prefer to use password authenticate if I can find a way to hide the password.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.