ssh连接不上,一直卡死

今天用windows上的ssh连接一直是卡死状态

用ssh -v看了下输出:

debug1: identity file /home/xiezg/.ssh/id_ecdsa-cert type -1

debug1: key_load_public: No such file or directory

debug1: identity file /home/xiezg/.ssh/id_ed25519 type -1

debug1: key_load_public: No such file or directory

debug1: identity file /home/xiezg/.ssh/id_ed25519-cert type -1

debug1: Local version string SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3

debug1: Remote protocol version 2.0, remote software version OpenSSH_7.4

debug1: match: OpenSSH_7.4 pat OpenSSH* compat 0x04000000

debug1: Authenticating to 192.168.223.69:22 as 'root'

debug1: SSH2_MSG_KEXINIT sent

debug1: SSH2_MSG_KEXINIT received

debug1: kex: algorithm: curve25519-sha256

debug1: kex: host key algorithm: ecdsa-sha2-nistp256

debug1: kex: server->client cipher: [email protected] MAC: compression: none

debug1: kex: client->server cipher: [email protected] MAC: compression: none

debug1: expecting SSH2_MSG_KEX_ECDH_REPLY

debug1: Server host key: ecdsa-sha2-nistp256 SHA256:vyBFkab25A3dDYY1rmmSzhNeP2BQOpsnDfDZAElX5Tg

debug1: Host '192.168.223.69' is known and matches the ECDSA host key.

debug1: Found key in /home/xiezg/.ssh/known_hosts:10

debug1: rekey after 134217728 blocks

debug1: SSH2_MSG_NEWKEYS sent

debug1: expecting SSH2_MSG_NEWKEYS

debug1: SSH2_MSG_NEWKEYS received

debug1: rekey after 134217728 blocks

debug1: SSH2_MSG_EXT_INFO received

debug1: kex_input_ext_info: server-sig-algs=

debug1: SSH2_MSG_SERVICE_ACCEPT received

debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password

debug1: Next authentication method: publickey

debug1: Offering public key: RSA SHA256:DjAEt5ve1hqJhA4izeQbESZSLTkRc1uvvEH4Le5n2Bk /home/xiezg/.ssh/id_rsa

debug1: Server accepts key: pkalg rsa-sha2-512 blen 279

debug1: Authentication succeeded (publickey).

Authenticated to 192.168.223.69 ([192.168.223.69]:22).

debug1: channel 0: new [client-session]

debug1: Requesting [email protected]

debug1: Entering interactive session.

debug1: pledge: exec

debug1: client_input_global_request: rtype [email protected] want_reply 0

debug1: X11 forwarding requested but DISPLAY not set

debug1: Sending environment.

debug1: Sending env LANG = zh_CN.UTF-8


在sending env LANG后就卡死了


试了修改/etc/ssh/ssh_config

Host *

  IPQoS 0x00

没效果。


无奈最后重装了ssh

sudo apt remove openssh-server

sudo apt install openssh-server

好了...

你可能感兴趣的:(ssh连接不上,一直卡死)