请教ssh 代理问题

2013-07-17 12:49:21 +08:00
 guoker
本地ssh -C -D开8080端口上网一切正常,可是用proxychain做程序代理时在远程服务器发现Connection refused的错误提示,是我proxychain配置有问题吗?
3819 次点击
所在节点    Linux
5 条回复
zone
2013-07-30 21:11:51 +08:00
很有可能,網上找proxychain的配置
sandtears
2013-07-31 23:30:53 +08:00
你看看/etc/proxychains.conf(貌似叫这名)
最后那里写明是socks5 127.0.0.1 8080了么
guoker
2013-08-07 16:28:47 +08:00
@sandtears 当然写了 什么socks4 http 等等的都写了
zjhui
2013-08-07 23:15:20 +08:00
lz应该把配置贴上来看看。。
guoker
2013-08-08 10:31:14 +08:00
@zjhui 配置如下
# proxychains.conf VER 3.1
#
# HTTP, SOCKS4, SOCKS5 tunneling proxifier with DNS.
#

# The option below identifies how the ProxyList is treated.
# only one option should be uncommented at time,
# otherwise the last appearing option will be accepted
#
#dynamic_chain
#
# Dynamic - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# at least one proxy must be online to play in chain
# (dead proxies are skipped)
# otherwise EINTR is returned to the app
#
strict_chain
#
# Strict - Each connection will be done via chained proxies
# all proxies chained in the order as they appear in the list
# all proxies must be online to play in chain
# otherwise EINTR is returned to the app
#
#random_chain
#
# Random - Each connection will be done via random proxy
# (or proxy chain, see chain_len) from the list.
# this option is good to test your IDS :)

# Make sense only if random_chain
#chain_len = 2

# Quiet mode (no output from library)
#quiet_mode

# Proxy DNS requests - no leak for DNS data
proxy_dns 8.8.8.8

# Some timeouts in milliseconds
tcp_read_time_out 15000
tcp_connect_time_out 8000

# ProxyList format
# type host port [user pass]
# (values separated by 'tab' or 'blank')
#
#
# Examples:
#
# socks5 192.168.67.78 1080 lamer secret
# http 192.168.89.3 8080 justu hidden
# socks4 192.168.1.49 1080
# http 192.168.39.93 8080
#
#
# proxy types: http, socks4, socks5
# ( auth types supported: "basic"-http "user/pass"-socks )
#
[ProxyList]
# add proxy here ...
# meanwile
# defaults set to "tor"
socks4 127.0.0.1 9900
socks5 127.0.0.1 9900
http 127.0.0.1 9900

端口和ssh一致

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/76059

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX