其他分享
首页 > 其他分享> > 解决ssh连接us或者hk服务器卡顿以及掉线的问题

解决ssh连接us或者hk服务器卡顿以及掉线的问题

作者:互联网

解决思路

访问A主机222端口,实则是访问B主机的22端口。

实际解决

这里用到了端口转发工具lcx(虽然ssh也可以实现)

git clone https://github.com/windworst/LCX
cd LCX
make
chmod +x lcx

lcx的用法:

./lcx -tran <local port> <remote host> <remote port>

这里的local port就是A主机的 222 端口,remote host为 B 主机,remote port为 B 主机的 22 的端口。

运用场景

使用命令:

ssh root@A 222

适用于网络环境良好,但是连接qi服务器卡顿的情况。

标签:掉线,主机,端口,lcx,hk,LCX,us,222,ssh
来源: https://blog.csdn.net/youcijibi/article/details/117525421