Closed fanmingyu212 closed 2 years ago
The full command that it is trying to run withSshMachine
seems to be true ; echo $? ; echo '--.END1324553574.9031646.--' ; echo '--.END1324553574.9031646.--' 1>&2
where the SSHCommsError
occurs. I can run this command with no error in a command line SSH interface though.
This is a duplicate of #478. The issue is due to that the default shell with Windows 10 OpenSSH is cmd, while a POSIX-compatible shell is needed.
A workaround is changing the default shell of OpenSSH to a bash
shell (e.g. the one that comes with the coreutils installation). You can change the default shell following this example: https://jeremyverda.net/change-openssh-server-default-shell-on-windows-server-2019/.
I cannot connect to an OpenSSH server running on a Windows 10 computer (computer A) using plumbum. The SSH authentication uses a key pair. On the same computer, I can connect using
plumbum.SshMachine
to another OpenSSH server running on a ubuntu 18.04 virtual machine (Computer B) though.I tested the following things:
plumbum.SshMachine
connection from computer A or B to computer A does not work (error message is attached below).plumbum.PuttyMachine
connection from computer A to computer A or B does not work (error message is also attached below).plumbum.SshMachine
connection from computer A or B to computer B works.I am using OpenSSH_for_Windows_8.1p1, LibreSSL 3.0.2, and plumbum 1.7.1. MinGW coreutils is installed.
The error message with
SshMachine
is:The error message with
PuttyMachine
is: