通過SecureCRT配置SSH隧道主要有圖形界面和命令行兩種方式,以下是具體步驟:
ssh -L [本地IP:]本地端口:遠程地址:遠程端口 用戶@SSH服務器
ssh -L 8080:localhost:80 user@remote_host
。ssh -R 遠程端口:本地地址:本地端口 用戶@SSH服務器
ssh -R 8080:localhost:80 user@remote_host
。ssh -D [本地IP:]本地端口 用戶@SSH服務器
ssh -D 1080 user@remote_host
。http://localhost:本地端口
,測試是否連通遠程服務。SOCKS5代理
,地址127.0.0.1
,端口對應設置值。注意:確保防火墻開放對應端口,密鑰認證需提前配置好私鑰。
參考來源: