ssh斷管時如何連接?

ssh斷管時如何連接?

我剛剛/etc/ssh/sshd_config在遠端伺服器上修改了a。我將其添加到底部,但子系統已經定義,因此我刪除了前兩行。

Subsystem sftp internal-sftp

Match Group sftp
ChrootDirectory /home/sftp/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

因此,在刪除頂行後,我相信已經有一個帶有其他程式碼的子系統,所以它可能就像...

Subsystem sftp internal-sftp
# other code
ChrootDirectory /home/sftp/%u
X11Forwarding no
AllowTcpForwarding no
ForceCommand internal-sftp

之後我exit從 ssh 連接,現在我收到錯誤

packet_write_wait: Connection to 123.123.123.123 port 22: Broken pipe

當我嘗試透過 ssh 登入時。

請問我該如何解決這個問題。提前致謝。

相關內容