Jump to content

Hidding passwords


Recommended Posts

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.

Link to comment
Share on other sites

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
Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...