title: SSH on windows without storing password in clear
body: <p>What I would do is using Putty (or other solution) on Windows to connect to a SAN switch and get results from a command with ssh.</p>
  
  <p>I use Powershell as scripting language and it could be done easily but i don't want to save the password in the script.</p>
  
  <p>I'm looking for a solution to use <strong>Putty</strong> from command line and set the password not stored in clear in the script.</p>
  
  <p>What I thought is to launch the script with <code>\RUNAS</code> (through a Scheduled task) and pass the actual credentials directly to Putty. (The switch would have the same password as the account used with the Runas). Is that possible?</p>
  
  <p>Or is there any solution using putty with a certificate or something like this?</p>