Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New-PSSession ip v6 linux2linux Invalid argument #23992

Open
5 tasks done
kasini3000 opened this issue Jun 27, 2024 · 0 comments
Open
5 tasks done

New-PSSession ip v6 linux2linux Invalid argument #23992

kasini3000 opened this issue Jun 27, 2024 · 0 comments
Labels
Needs-Triage The issue is new and needs to be triaged by a work group.

Comments

@kasini3000
Copy link

kasini3000 commented Jun 27, 2024

Prerequisites

Steps to reproduce

New-PSSession -HostName [fe80::215:5dff:fe15:5934] -UserName root -KeyFilePath '/root/.ssh/id_rsa'

Expected behavior

return a new PSSession

Actual behavior

New-PSSession: [[fe80::215:5dff:fe15:5934]] The background process reported an error with the following message: The SSH client session has ended with error message: ssh: connect to host fe80::215:5dff:fe15:5934 port 22: Invalid argument.

Error details

Exception             : 
    Type        : System.Management.Automation.Remoting.PSRemotingTransportException
    ErrorCode   : 2100
    ErrorRecord : 
        Exception             : 
            Type    : System.Management.Automation.ParentContainsErrorRecordException
            Message : The background process reported an error with the following message: The SSH 
client session has ended with error message: ssh: connect to host fe80::215:5dff:fe15:5934 port 22: Invalid argument.
            HResult : -2146233087
        CategoryInfo          : ResourceUnavailable: (:) [], ParentContainsErrorRecordException
        FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException
    Message     : The background process reported an error with the following message: The SSH clie
nt session has ended with error message: ssh: connect to host fe80::215:5dff:fe15:5934 port 22: Invalid argument.
    HResult     : -2146233087
TargetObject          : System.Management.Automation.RemoteRunspace
CategoryInfo          : OpenError: (System.Management.A…tion.RemoteRunspace:RemoteRunspace) [New-PSSession
], PSRemotingTransportException
FullyQualifiedErrorId : 2100,PSSessionOpenFailed
ErrorDetails          : [[fe80::215:5dff:fe15:5934]] The background process reported an error with the fol
lowing message: The SSH client session has ended with error message: ssh: connect to host fe80::215:5dff:fe15:5934 po
rt 22: Invalid argument.
InvocationInfo        : 
    MyCommand        : New-PSSession
    ScriptLineNumber : 1
    OffsetInLine     : 1
    HistoryId        : 3
    Line             : New-PSSession -HostName "[fe80::215:5dff:fe15:5934]" -UserName root -KeyFilePath '/
root/.ssh/id_rsa'
    PositionMessage  : At line:1 char:1
                       + New-PSSession -HostName "[fe80::215:5dff:fe15:5934]" -UserName root - …
                       + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    InvocationName   : New-PSSession
    CommandOrigin    : Internal
ScriptStackTrace      : at <ScriptBlock>, <No file>: line 1
PipelineIterationInfo :

Environment data

# server:
"Rocky Linux 9.2"
sshd_config:
Subsystem powershell /usr/bin/pwsh -sshs -NoLogo -NoProfile
UseDNS no

# client:
linux + powershell 7.4.3  to server ipv6 addr ,problem
linux + powershell 7.2.21 to server ipv6 addr ,problem


# normal
win + PowerShell 7.5.0-preview.2  ssh to server ipv6 addr  ,normal
linux + powershell 7.2.21 to server ipv4 addr ,normal
linux client tcping server ipv6 22 port,normal

Visuals

No response

@kasini3000 kasini3000 added the Needs-Triage The issue is new and needs to be triaged by a work group. label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Needs-Triage The issue is new and needs to be triaged by a work group.
Projects
None yet
Development

No branches or pull requests

1 participant