[個人紀錄] ssh tunnel 測試

 

想法是這樣,telnet本機port 1234,tunnel到server,再轉發port 23,完成登入

 

 

server要安裝sshd & telnetd

sudo apt-get install openssh-server

sudo apt-get install telnetd

server的ip是 192.168.83.129

 

client

ssh -L 1234:192.168.83.129:23 user@192.168.83.129

登入成功後就tunnel成功

telnet localhost 1234

 

 登入後

 

posted on 2021-03-08 00:14  seako  阅读(50)  评论(0编辑  收藏  举报