Powershell: Support passing options to SSH through cmdlets that allow remoting over SSH

Created on 22 May 2020  路  3Comments  路  Source: PowerShell/PowerShell

Summary of the new feature/enhancement

As a user automating with PowerShell, I would like to pass options to OpenSSH when using PSRP over SSH as a SSH client, like ssh -o GlobalKnownHostsFile=/Path/To/File.

Currently, it seems only a small subset of command line arguments for SSH are supported.

Proposed technical implementation details

A new parameter could be added to the Invoke-Command and New-PSSession cmdlets that would allow a dictionary of strings or a list of strings for configuration options.

Issue-Enhancement Up-for-Grabs WG-Remoting

Most helpful comment

That's great! It doesn't seem like this would be too hard to implement, I'd have no problem taking a look.

All 3 comments

Looks like something you might want to field, @PaulHigin 馃檪

I think this is a great idea. We initially kept SSH command options to a minimum to keep things simple. But if they are useful, we should definitely support them.

That's great! It doesn't seem like this would be too hard to implement, I'd have no problem taking a look.

Was this page helpful?
0 / 5 - 0 ratings