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
PSRP over SSH from Linux to Windows fails after password #2473
To connect to Windows Server 2016 and give a PowerShell prompt,
Actual behavior
When trying to connect ti fails giving the following error:
PS /home/maxt> Enter-PSSession -HostName 10.0.0.26 -UserName Administrator
Enter-PSSession : The background process reported an error with the following
message: The SSH client session has ended with error message: ssh: connect to
host 10.0.0.26 port 22: Connection timed out.
At line:1 char:1
Maximo Trinidad (@MaximoTrinidad) As the error message says, the error is coming from SSH and it is unable to connect to your Windows machine. Try connecting directly with SSH (ssh Administrator@10.0.0.26) and you will likely get the same ssh client error. Have you tried pinging the Windows machine?
I am not able to repro this. I can do SSH remoting from Ubuntu machine to Windows machine by passing in the password. There were some earlier bugs where this didn't work due to set up errors and the error message was not clear. I believe these are fixed now and any error message coming from SSH client is returned.
I'm getting this error now but I am able to ssh into my user account. I checked the InnerException as per your suggestion on close #2525 but it was empty.
Oh wait, looking closer, mine is saying 'The SSH client session has ended with the error message: subsystem request failed on channel 0."
Scott (@treii28) Check the powershell subsystem line in your sshd_config file. The subsystem path/name is likely no longer valid. I have been experimenting with Enable-SSHRemoting prototype, that helps set up and verify a PowerShell SSH remoting endpoint, but I have not had time to work on it recently.
Activity
MaximoTrinidad commentedon Oct 13, 2016
Almost there!
I'm hoping is a setting issue! But is looking good.
:)
PaulHigin commentedon Oct 17, 2016
Maximo Trinidad (@MaximoTrinidad) As the error message says, the error is coming from SSH and it is unable to connect to your Windows machine. Try connecting directly with SSH (ssh Administrator@10.0.0.26) and you will likely get the same ssh client error. Have you tried pinging the Windows machine?
[-]Remoting Linux to Windows fail after password[/-][+]PSRP over SSH from Linux to Windows fails after password[/+]PaulHigin commentedon Mar 16, 2017
I am not able to repro this. I can do SSH remoting from Ubuntu machine to Windows machine by passing in the password. There were some earlier bugs where this didn't work due to set up errors and the error message was not clear. I believe these are fixed now and any error message coming from SSH client is returned.
treii28 commentedon Jan 22, 2018
I'm getting this error now but I am able to ssh into my user account. I checked the InnerException as per your suggestion on close #2525 but it was empty.
Oh wait, looking closer, mine is saying 'The SSH client session has ended with the error message: subsystem request failed on channel 0."
PaulHigin commentedon Jan 22, 2018
Scott (@treii28) Check the powershell subsystem line in your sshd_config file. The subsystem path/name is likely no longer valid. I have been experimenting with Enable-SSHRemoting prototype, that helps set up and verify a PowerShell SSH remoting endpoint, but I have not had time to work on it recently.