Loading a password protected private key - WeOnlyDo Discussion board

Loading a password protected private key (wodSSH / wodSSH.NET)

by javier matamoros, Wednesday, May 07, 2008, 14:40 (6045 days ago)

Hi,

I have developed a simple VBS Script Component (WSC file) that connects to Unix hosts through SSH2 using key authentication to executes certain commands. It runs as a COM object in one server that can be accessed remotely by Windows clients.

Everything works fine although there's something I'm curious about. My private key is password protected, so I load the key as
.load path to file , password

I have not found a way to encrypt my WSC file so anyone with access to the file system can see the password in clear text. I wonder if you can provide a workaround to avoid expossing this password in the code.

Any help will be appreciated.

Re: Loading a password protected private key

by wodDamir, Wednesday, May 07, 2008, 15:04 (6045 days ago) @ javier matamoros

Hi Javier,

Unfortunately, I really don't think that there is a workaround, since VBS files are all in clear text format which means that even encrypting password or any other solution doesn't have much effect, since the password is still readable by other users.

The only solution I could think of is not giving access to file to anyone if that's possible.

Regards,
Damba