GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Should `New-PSSession` using SSH accept user@hostname? · Issue #6284 · PowerShell/PowerShell

Should New-PSSession using SSH accept user@hostname? #6284

New issue
Copy link
New issue
Copy link
Closed
#6558
Closed
Should New-PSSession using SSH accept user@hostname?#6284
#6558
Copy link
Assignees
SteveL-MSFT
Labels
Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issuesWG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer

Description

@SteveL-MSFT
Steve Lee (SteveL-MSFT)
opened on Mar 1, 2018
Issue body actions

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)

cc Paul Higinbotham (@PaulHigin) Joey Aiello (@joeyaiello)

Reacted by Mark Kraus, Maximo Trinidad and Paul Higinbotham

Activity

  1. Steve Lee (SteveL-MSFT)
    added
    Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bug
    Area-Cmdlets-Core
    WG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer
    on Mar 1, 2018
  2. bergmeister commented on Mar 1, 2018

    @bergmeister
    Christoph Bergmeister (bergmeister)
    on Mar 1, 2018
    Contributor
    More actions

    I would rather defer this till the end of the 6.1 release cycle and focus more on actual features that add value tbh.

  3. SteveL-MSFT commented on Mar 2, 2018

    @SteveL-MSFT
    Steve Lee (SteveL-MSFT)
    on Mar 2, 2018
    MemberAuthor
    More actions

    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

  4. markekraus commented on Mar 2, 2018

    @markekraus
    Mark Kraus (markekraus)
    on Mar 2, 2018
    Contributor
    More actions

    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.

    $Hostname = '[email protected]:8822'
    $Builder = [System.UriBuilder]::New("ssh",$Hostname)
    $Hostname = $Builder.Host
    $Username = $Builder.UserName
    $Port = $Builder.Port
    if ($Builder.Port -eq -1){
        $Port = 22
    }

    The format, after all, is a URI.

    Reacted by Steve Lee
  5. Steve Lee (SteveL-MSFT)
    added
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Mar 2, 2018
  6. Steve Lee (SteveL-MSFT)
    self-assigned this
    on Apr 4, 2018
  7. Steve Lee (SteveL-MSFT)
    removed
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributorsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Apr 4, 2018
  8. SteveL-MSFT commented on Apr 4, 2018

    @SteveL-MSFT
    Steve Lee (SteveL-MSFT)
    on Apr 4, 2018
    MemberAuthor
    More actions

    Was investigating a SSH MFA issue and this annoyed me enough to submit a fix

    Reacted by Ilya
  9. Dongbo Wang (daxian-dbw)
    closed this as completedin #6558on Apr 6, 2018
  10. Ilya (iSazonov)
    added
    Resolution-FixedThe issue is fixed.The issue is fixed.
    on Apr 11, 2018
  11. Ryan Yates (kilasuit)
    added
    WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issues
    and removed
    WG-Cmdlets-Core
    on Jul 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @SteveL-MSFT
    Steve Lee (SteveL-MSFT)

Labels

Issue-Enhancementthe issue is more of a feature request than a bugthe issue is more of a feature request than a bugResolution-FixedThe issue is fixed.The issue is fixed.WG-Cmdletsgeneral cmdlet issuesgeneral cmdlet issuesWG-RemotingPSRP issues with any transport layerPSRP issues with any transport layer

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402520 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.