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.


Complete thread: