- 论坛徽章:
- 0
|
以前只在 windows 下用 putty 通过代理连 ssh 服务器, 在 linux 下没试过. 因为一直是一个宿舍两个相同的
IP 和 MAC 连校内网, 在 web 下没什么问题, 但是连 ssh 等就出现问题了, 总是掉线.
仔细 man ssh_config 发现果然可以设置代理, 而且很简单:
在 ssh 配置文件里(我设置的是个人配置文件 ~/.ssh/config)添加代理项设置:
Host *
# set proxy:
ProxyCommand /usr/bin/nc -X connect -x ???.???.???.???:80 %h %p
可是 ssh 是出现问题:
Bad owner or permissions on /home/henryfour/.ssh/config
再次求助 man 才发现:
Because of the potential for abuse, this file must have strict
per-permissions: read/write for the user, and not accessible by others.
done
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/59436/showart_463119.html |
|