SSH에서 파이프가 끊어졌을 때 연결하는 방법은 무엇입니까?

SSH에서 파이프가 끊어졌을 때 연결하는 방법은 무엇입니까?

/etc/ssh/sshd_config방금 원격 서버에서 수정했습니다 . 맨 아래에 추가했는데 서브시스템이 이미 정의되어 있어서 처음 두 줄을 삭제했습니다.

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

그 후 exitSSH 연결을 통해 이제 오류가 발생합니다.

packet_write_wait: Connection to 123.123.123.123 port 22: Broken pipe

SSH로 로그인을 시도할 때.

이 문제를 어떻게 해결할 수 있나요? 미리 감사드립니다.

관련 정보