question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

PowerShell Core Beta 5 - Linux Enter-PSSession can't connect to Windows

See original GitHub issue

Enter-PSSession stop working connecting Linux to Windows. Also, this error is impacting the Ubuntu Bash console badly to the point that I’m force to close the terminal session. (I will create another incident for it).

Steps to reproduce

Enter command:

PS /home/maxt> Enter-PSSession -HostName earth2 -UserName max_t                                                         
The authenticity of host 'earth2 (10.0.0.15)' can't be established.
ECDSA key fingerprint is SHA256:R3auoG/SZpsj8oCMmlchP2JRrtf+tj9+Tr4NJgKp+hY.
Are you sure you want to continue connecting (yes/no)? yes
max_t@earth2's password: 

Expected behavior

To connect to Windows 10 PowerShell Core session.

Actual behavior

Immediate error after typing password.

Enter-PSSession : The background process reported an error with the following message: The SSH client session has 
ended with error message: Failed to add the host to the list of known hosts (/home/maxt/.ssh/known_hosts)..
At line:1 char:1
+ Enter-PSSession -HostName earth2 -UserName max_t
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [Enter-PSSession], PSRemotingTransportException
    + FullyQualifiedErrorId : System.Management.Automation.Remoting.PSRemotingDataStructureException,Microsoft.PowerSh 
   ell.Commands.EnterPSSessionCommand

Environment data

Ubuntu 16.04.3 PowerShell Core Beta 5 OpenSSH

PS /home/maxt> $PSVersionTable                                                                                          

Name                           Value                                                                                   
----                           -----                                                                                   
PSVersion                      6.0.0-beta                                                                              
PSEdition                      Core                                                                                    
GitCommitId                    v6.0.0-beta.5                                                                           
OS                             Linux 4.4.0-89-generic #112-Ubuntu SMP Mon Jul 31 19:38:41 UTC 2017                     
Platform                       Unix                                                                                    
PSCompatibleVersions           {1.0, 2.0, 3.0, 4.0...}                                                                 
PSRemotingProtocolVersion      2.3                                                                                     
SerializationVersion           1.1.0.1                                                                                 
WSManStackVersion              3.0

enterpssession_err_01

Issue Analytics

  • State:open
  • Created 6 years ago
  • Comments:9 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
MaximoTrinidadcommented, Aug 10, 2017

I’ve been using OpenSSH in Linux since the beginning of PowerShell Core Alpha. Also, I’m constantly updating/upgrading my OS’s both Linux and Windows.

I will continue pursuing it but I’m fine tuning my presentation for SQL Saturday JAX this weekend. I’m not dropping this one.

Keep you posted!

😃

0reactions
iSazonovcommented, Aug 10, 2017

@MaximoTrinidad Could you please continue the exploration? We really need the exact steps to reproduce.

Read more comments on GitHub >

github_iconTop Results From Across the Web

PSRP over SSH from Linux to Windows fails after password
Steps to reproduce. Execute following line: Enter-PSSession -HostName 10.0.0.26 -UserName Administrator. Expected behavior.
Read more >
Enter-PSSession Centos To Windows - powershell
You need to use SSH for remoting from Linux to Windows. This is covered on the MS docs site. PowerShell Remoting Over SSH....
Read more >
Enter-PSSession - PowerShell
The Enter-PSSession cmdlet starts an interactive session with a single remote computer. During the session, the commands that you type run on the...
Read more >
Enter-PSSession : Connecting to Remote Server Failed
The error message means that your user account does not have access to create a remote PowerShell session from system A to system...
Read more >
New-PSSession - PowerShell
When you create a PSSession, PowerShell establishes a persistent connection to the remote computer. Use a PSSession to run multiple commands that share...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found