You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Should New-PSSession using SSH accept user@hostname? #6284
Currently, New-PSSession has a parameter set to use -Hostname and -Username to indicate SSHTransport is being used (instead of -ComputerName and -Credential). SSH users are probably more familiar and comfortable with ssh user@hostname, so it seems we should support New-PSSession -Hostname user@hostname (unfortunately, it would be a breaking change to default to -Hostname instead of -Computername to support this as a positional parameter)
Christoph Bergmeister (@bergmeister) this isn't marked for 6.1, although I also don't think it would be difficult to implement (split the string, pass it to the existing parameters...). This came up for me as I was using ssh to a Linux VM and then had to use new-pssession over SSH and was annoyed how easy it was using ssh
Activity
bergmeister commentedon Mar 1, 2018
I would rather defer this till the end of the 6.1 release cycle and focus more on actual features that add value tbh.
SteveL-MSFT commentedon Mar 2, 2018
Christoph Bergmeister (@bergmeister) this isn't marked for 6.1, although I also don't think it would be difficult to implement (split the string, pass it to the existing parameters...). This came up for me as I was using
sshto a Linux VM and then had to usenew-pssessionover SSH and was annoyed how easy it was usingsshmarkekraus commentedon Mar 2, 2018
Steve Lee (@SteveL-MSFT) might as well use URI builder instead of split string. It would position us for possible furthe enchantments in the future.
The format, after all, is a URI.
SteveL-MSFT commentedon Apr 4, 2018
Was investigating a SSH MFA issue and this annoyed me enough to submit a fix