How to fix request failed on channel 0

后端 未结 20 2565
甜味超标
甜味超标 2020-12-04 16:42

When I want to connect to my server like this

ssh -a username@my-server.de -p 22

it gives me two error messages:

PTY alloca         


        
相关标签:
20条回答
  • 2020-12-04 17:11

    I encountered this error while using my git bash. I was able to solve this by re-installing git for windows. More details in this answer.

    0 讨论(0)
  • 2020-12-04 17:12

    in my case, the SFTP server will reject your SSH connection.

    0 讨论(0)
  • 2020-12-04 17:16

    try with option -NT

    ssh -NT ...

    0 讨论(0)
  • 2020-12-04 17:17

    It's an old question, but if someone gets here like me...

    This might be result of a wrong date in the server. If you are working with an embedded system this might be the cause... So check your date:

    $ date
    
    0 讨论(0)
  • 2020-12-04 17:17

    I also faced the same issue. Just restarting my servers solved the issue.

    0 讨论(0)
  • 2020-12-04 17:20

    I had the exact same error trying to connect via ssh to my server. As I can see you're using a server provided by Hetzner connecting to it on port 22:

    debug1: Connecting to xxx.your-server.de [188.40.3.15] port 22.

    The offical wiki/documention from Hetzner says:

    Protocol for encrypted remote diagnostics for servers/computers(consoles). The SSH port to be used is 222.

    So you have to connect via port 222:

    ssh -p 222 username@my-server.de
    
    0 讨论(0)
提交回复
热议问题