Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | 7 |
| 8 | 9 | 10 | 11 | 12 | 13 | 14 |
| 15 | 16 | 17 | 18 | 19 | 20 | 21 |
| 22 | 23 | 24 | 25 | 26 | 27 | 28 |
Tags
- 저동하녹
- 마연굴
- 달리기
- deepseek
- 커스터드크림빵
- 중사랑
- 런데이애플워치
- 송고버섯피자
- apollo-server-v3
- lner
- 런데이
- 프로젝트헤일메리
- 서울자전거여행
- 집중명상
- 잘쉬어야지
- 여행
- 비타민씨메가도스
- 마라톤
- 달리기동호회
- 트럼프2.0시대
- 가람집옹심이
- 정자동빵집
- 하트스마일
- 여니브레드
- Zone2
- apollo-sandbox
- 강릉여행
- 한국걱정
- 일권하는사회
- 루스틱
Archives
- Today
- Total
해뜨기전에자자
ssh proxy, ssh local fowarding 본문
임의로 98765 포트에 proxy용 ssh server을 띄운다.
/etc/ssh/sshd_config
Port 22
Port 98765
GatewayPorts yes
PermitTunnel yes
AllowTcpForwarding yes
재시작
sudo service sshd restart
local machine:~/.ssh/config
Host ssh-proxy-server
User {username}
GSSAPIAuthentication yes
StrictHostKeyChecking no
Host !ssh-proxy-server *
User {username}
StrictHostKeyChecking no
GSSAPIAuthentication yes
ForwardAgent yes
ProxyCommand ssh -W %h:%p ssh-proxy-server -p 98765 %h -p %p
ssh local fowarding
ssh -L {local port}:{remote server}:{remote port} {ssh-proxy-server}
ex: ssh -L 18032:remote-server:80 ssh-proxy-server
'개발 > linux & tools' 카테고리의 다른 글
| container 간단히 (0) | 2019.01.17 |
|---|---|
| systemd initd (0) | 2018.11.25 |
| haproxy vs nginx? (0) | 2018.05.16 |
| route private network (1) | 2018.03.20 |
| adduser 와 useradd (1) | 2017.10.30 |