Ubuntu即時client_loop:切断された転送:壊れたパイプ

Ubuntu即時client_loop:切断された転送:壊れたパイプ

別のコンピュータにsshを送信できますが、Aコンピュータ(自分のsshを含む)でsshを試みると、壊れたパイプメッセージがすぐに表示されます。

ssh machine_A@localhost
client_loop: send disconnect: Broken pipe

これまで、以下の投稿と一部のGoogle投稿に表示されているソリューションをテストしました。何が問題なのかよく分からない。誰かが同様の問題を見たか、私が調査できる方向を知っていることを願っています。

編集:ssh -vvv user@localhostパスワード要求後に出力が追加されました

debug1: Next authentication method: password
user@localhost's password: 
debug3: send packet: type 50
debug2: we sent a password packet, wait for reply
debug3: receive packet: type 52
Authenticated to localhost ([127.0.0.1]:22) using "password".
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: filesystem
debug3: send packet: type 1
client_loop: send disconnect: Broken pipe

ベストアンサー1

したがって、次の手順を使用してopenssh-serverを削除して、問題を最終的に解決しました。私の以前の試みは単に--reinstallでしたが、私が知っている限り、それは徹底的ではありませんでした。

次のように進んでください。

# backup config
sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak

# reinstall
sudo apt-get --purge remove openssh-server
sudo apt-get install openssh-server

# restart sshd
sudo systemctl restart sshd.service

おすすめ記事