其他分享
首页 > 其他分享> > plink 转发本地端口到远端端口

plink 转发本地端口到远端端口

作者:互联网

转发本地 `51538` 端口 到 服务器的 `3306` 端口

ssh 端口默认 22 , 如果不是则要加参数指定端口 ` -P xx`

plink  -L 51538:localhost:3306  root@139.xxx.xx.xxx  -pw jhs6f3

 

参数:

-pw passw  login with specified password 指定ssh登陆密码
-L [listen-IP:]listen-port:host:port
          Forward local port to remote address 监听本地端口,转发数据到远程端口
-P port   connect to specified port  指定ssh连接的端口

 

标签:plink,51538,端口,ssh,转发,远端,port
来源: https://www.cnblogs.com/lzpong/p/15924491.html