通过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
,端口对应设置值。注意:确保防火墙开放对应端口,密钥认证需提前配置好私钥。
参考来源: