ssh通过sock5的问题kex_exchange_identification: Connection closed by remote host
2022/9/5 23:25:29
本文主要是介绍ssh通过sock5的问题kex_exchange_identification: Connection closed by remote host,对大家解决编程问题具有一定的参考价值,需要的程序猿们随着小编来一起学习吧!
工作需要,连接几台外网的服务器.由于移动的网络直连,经常会连不上,所以想通过本地的sock5代理连接.
神奇的事情发送了,通过sock5代理,有几台主机可以连上,有几天报上面的错误.
经过反复测试,外网的服务器只要用默认的22端口,无法通过sock5连接,但国内的没问题.
不知道是不是国内的fhw问题,还是其它的问题.
最后是一个ms主机的修改ssh端口的报错:
参考解决方式:https://www.thegeekdiary.com/error-bind-to-port-2222-on-0-0-0-0-failed-permission-denied-error-while-starting-sshd-service-on-centos-rhel/
主要是ms主机内置的semanage进程的监控
# semanage port -l | grep ssh ssh_port_t tcp 22 2. Configure SELinux to allow sshd to utilize additional port 2222.
semanage port -a -t ssh_port_t -p tcp 2222 3. Verify new SELinux permitted sshd listen ports.
# semanage port -l | grep ssh ssh_port_t tcp 2222,22
这篇关于ssh通过sock5的问题kex_exchange_identification: Connection closed by remote host的文章就介绍到这儿,希望我们推荐的文章对大家有所帮助,也希望大家多多支持为之网!
- 2024-05-13PingCAP 戴涛:构建面向未来的金融核心系统
- 2024-05-09flutter3.x_macos桌面os实战
- 2024-05-09Rust中的并发性:Sync 和 Send Traits
- 2024-05-08使用Ollama和OpenWebUI在CPU上玩转Meta Llama3-8B
- 2024-05-08完工标准(DoD)与验收条件(AC)究竟有什么不同?
- 2024-05-084万 star 的 NocoDB 在 sealos 上一键起,轻松把数据库编程智能表格
- 2024-05-08Mac 版Stable Diffusion WebUI的安装
- 2024-05-08解锁CodeGeeX智能问答中3项独有的隐藏技能
- 2024-05-08RAG算法优化+新增代码仓库支持,CodeGeeX的@repo功能效果提升
- 2024-05-08代码报错不用愁,CodeGeeX一键完成代码修复、错误解释的功能上线了!