PowerShell / PowerShell/PowerShell
New-PSSession ip v6 linux2linux Invalid argument
Aberta
Ninguém assumiu esta issue ainda.
Needs-Triage
- Linguagem predominante
- C#
- Estrelas
- 55.5k
- Forks
- 8.5k
- Merge médio
- 1d 2h
- PRs com merge (30d)
- 88
Descrição
Prerequisites
- Write a descriptive title.
- Make sure you are able to repro it on the latest released version
- Search the existing issues.
- Refer to the FAQ.
- Refer to Differences between Windows PowerShell 5.1 and PowerShell.
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
Guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Direção de pesquisa
Comece com o comando New-PSSession reportado no cliente Linux e no servidor Rocky Linux 9.2, comparando a conexão IPv6 com falha com os casos IPv4 e Windows que funcionam. Rastreie o caminho de SSH remoting que trata o endereço link-local entre colchetes e verifique a correção criando com sucesso uma PSSession via IPv6, sem introduzir regressões nos outros casos.
Escrita pelo modelo de indexação a partir do texto da issue.
Avaliação
- Stack de tecnologia
- csharp, linux
- Domínio
- cli, networking
- Tipo de issue
- Bug
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Status de atividade
- Estagnada
- Clareza
- Razoavelmente clara
- Facilidade para iniciantes
- 35/100