![ssh斷管時如何連接?](https://rvso.com/image/134430/ssh%E6%96%B7%E7%AE%A1%E6%99%82%E5%A6%82%E4%BD%95%E9%80%A3%E6%8E%A5%EF%BC%9F.png)
我剛剛/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 登入時。
請問我該如何解決這個問題。提前致謝。