Jump to content

Additional parameters for private key SSH


RobinVdW
 Share

Recommended Posts

Hi,

 

When testing the remote session launcher today I noticed that in the pslauncher.ps1 script in the Open-SSHPKSession functon on line 190 the $AdditParameters variable isn't called like it is in the Open-SSHSession() function on line 134. For our use case we'd need to pass some additional parameters to putty, but this change is easily manually made within the script. I was just wondering if this parameter was intentionally omitted.

 

This is the change I made to line 190 to make it work for our testcase:

Invoke-Expression "& '$SSHClientPath' $AdditParameters -P $Port $HostName -ssh -l $UserName -i $env:TEMP\$fileName " | Out-Null

 

Regards,

Robin

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

×
×
  • Create New...