
SSH 세션에서 ~C전달 규칙 정의를 누르고 Forwarding port.
응답을 얻은 다음 다른 규칙을 추가합니다. 이러한 규칙을 즉시 보려면 어떻게 해야 합니까? (터미널을 위로 스크롤하지 않음)
ssh> ?
Commands:
-L[bind_address:]port:host:hostport Request local forward
-R[bind_address:]port:host:hostport Request remote forward
-D[bind_address:]port Request dynamic forward
-KL[bind_address:]port Cancel local forward
-KR[bind_address:]port Cancel remote forward
-KD[bind_address:]port Cancel dynamic forward
원하는 명령 -...현재 포트 전달 규칙 표시
답변1
ssh 및 sshd로 생성된 터널은 다음과 같습니다.
lsof -i -n | egrep 'ssh'
lsof -i -n | egrep 'sshd'
모든 영역 및 포트 규칙은 아래에 나열됩니다.
firewall-cmd --list-all-zones