Skip to content

[Support Question]Does it support ipv6? #10961

Closed

Description

@he852100

I didn't find a way to use it, how do I use it

I tried the following method, which returns an error prompt

PS /> Enter-PSSession -HostName [0::0] -UserName administrator   
PS /> Enter-PSSession -hostname administrator@[0::0]
PS /> Enter-PSSession -hostname administrator@[0::0]
PS /> Enter-PSSession -hostname administrator@0::0
Name                           Value                            ----                           -----
PSVersion                      7.0.0-preview.5                  PSEdition                      Core                             GitCommitId                    7.0.0-preview.5
OS                             Linux 4.9.112-perf #1 SMP PREEM… Platform                       Unix
$ ssh administrator@0::0 -i /root/.ssh/winid
Warning: Identity file /root/.ssh/winid not accessible: Permission denied.
Microsoft Windows [版本 10.0.17763.379]
(c) 2018 Microsoft Corporation。保留所有权利。

administrator@WIN-7A2JPVLSMPD C:\Users\Administrator>

Activity

  1. added
    Issue-Question
    on Nov 1, 2019
  2. added
    WG-Remoting
    on Nov 1, 2019
  3. SteveL-MSFT commented on Nov 1, 2019

    @SteveL-MSFT
    Member

    The square brackets are required for PowerShell (and .NET) to understand it's a ipv6 address, but this is passed directly to ssh which doesn't expect it. Will have a fix soon.

  4. he852100 commented on Nov 23, 2019

    @he852100
    Author

    Steve Lee (@SteveL-MSFT) Thanks.

    Now it is missing a switch。

    New-PSSession test.com -ipv4 or -ipv6
    enter-PSSession test.com ...
    irm test.com ...
    iwr test.com ...
  5. SteveL-MSFT commented on Nov 27, 2019

    @SteveL-MSFT
    Member

    he852100 if there is a need to specifically use ipv6 or ipv4, please open a new issue to discuss that. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Issue-QuestionResolution-FixedWG-Remoting

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions