大佬教程收集整理的这篇文章主要介绍了linux – 如何在CentOS上使用基于密码的身份验证在ssh上设置SOCKS代理?,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
但请注意,密码以明文形式传输.
要配置基于用户名的身份验证,请打开/etc/sockd.conf文件并添加/更改以下内容:
@H_301_6@logoutput: syslog /var/log/dante.log # methods for socks-rules. method: username #rfc931 # when doing something that can require privilege,# it will use the userid "sockd". user.privileged: root # when running as usual,# it will use the unprivileged userid of "sockd". user.notprivileged: sockd pass { from: 0.0.0.0/0 to: 0.0.0.0/0 protocol: tcp udp command: bind connect udpassociate log: error method: username }启动后检查监听套接字:
@H_301_6@# netstat -nlp | grep sockd tcp 0 0 127.0.0.1:1080 0.0.0.0:* LISTEN 5463/sockd tcp 0 0 192.168.15.36:1080 0.0.0.0:* LISTEN 5463/sockd以上是大佬教程为你收集整理的linux – 如何在CentOS上使用基于密码的身份验证在ssh上设置SOCKS代理?全部内容,希望文章能够帮你解决linux – 如何在CentOS上使用基于密码的身份验证在ssh上设置SOCKS代理?所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。