15
Sep
ssh 터널 뚫기.
방화벽안쪽의 서버에 ssh접속은 해야겠고, 방화역은 안열어주고. 이럴때, ssh터널을 하나 뚫어놓으면, 필요할때 접속 가능
방화벽안쪽 서버. box1, 방화벽 바깥 SSH 서버 box2, 외부의 컴퓨터 box3. box3은 윈도우에 putty를 이용.
먼저, box1 과 box2를 ssh접속해 놓는다.
box1에서 아래의 명령을 실행
ssh -f -N -g -C -R 2222:localhost:22 userid@box2_ipaddress
box3에서, command창을 열고 아래 커맨드 실행
plink -L 3333:localhost:2222 userid@box2_ipaddress
이후, putty 에서, 포트번호 3333으로 box2에 접속하면, box1로 ssh 접속이 된 것을 확인 할 수 있음.
Tags: ssh 터널
This entry was posted
on 화요일, 9월 15th, 2009 at 6:19 오후 and is filed under Application(어플리케이션).
You can follow any responses to this entry through the RSS 2.0 feed.
You can leave a response, or trackback from your own site.
One comment
Leave a reply