0

Every time I connect to my Windows 11 SSH server, It keeps getting an error saying "server shell request failed on channel 0".

console

I ensured that the default shell is specified properly

enter image description here

My computer has enough resources and I can start the shell by specifying it after the command:

enter image description here

How can I fix this issue?

For reference, I am using the default config: https://pastebin.com/Zh94fyT5

and my .ssh folder is empty.

6
  • But you're starting a different shell here. Can you start the same shell that's configured? Apr 22, 2022 at 20:22
  • Post your OpenSSH server configuration file.
    – Ramhound
    Apr 22, 2022 at 20:32
  • @user1686 same effect. I will update my question
    – Victor2748
    Apr 22, 2022 at 20:32
  • @Ramhound It is the default. I can only find sshd_config_default, in which everything is commented out
    – Victor2748
    Apr 22, 2022 at 20:33
  • I have the solution but in order to know it’s relevant I must see the configuration file.
    – Ramhound
    Apr 22, 2022 at 20:40

2 Answers 2

0

In my case I had by accident installed the Win32 version, installing Win64 version of OpenSSH server solved this exact error message.

0

The issue was that I had updated from Windows 10 to 11, but I guess the "OpenSSH server" service remained old. By removing all OpenSSH instances and reinstalling (through enabling the optional feature), I fixed the issue.

  1. Ensure that there is only one installation of the OpenSSH server on your machine.
  2. Try reinstalling OpenSSH. Ensure that uninstall removes all previous configurations.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .