, , ,
2018.06.26 14:17

@markdown

#Reverse SSH


```

ssh -fN -R 0.0.0.0:PUBLIC_PORT:0.0.0.0:INTERNAL_PORT PUBLIC_HOST_USERNAME@PUBLIC_HOST_IP_OR_DOMAIN

ssh -fN -R 0.0.0.0:8080:0.0.0.0:80 admin@example.com

```


Note that *if you use OpenSSH sshd server, the server's `GatewayPorts` option needs to be enabled* (set to yes or clientspecified) for this to work (check file `/etc/ssh/sshd_config` on the server). Otherwise (default value for this option is no), the server will always force the port to be bound on the loopback interface only.


'Linux' 카테고리의 다른 글

Reverse SSH  (0) 2018.06.26
리눅스 파일시스템 계층 표준  (0) 2018.02.01
Linux Network Traffic Control  (0) 2018.01.05
Boost Productivity with Z and Zsh on Ubuntu  (0) 2017.04.26
Linux Network Interface Name  (0) 2017.03.26
터미널에서 헥스덤프 만들기  (0) 2017.02.26

+ Recent posts