V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX  ›  lucky9805  ›  全部回复第 3 页 / 共 3 页
回复总数  46
1  2  3  
2012-12-29 14:02:14 +08:00
回复了 dhq314 创建的主题 Linux ssh连接超时,出现“Operation timed out”的错误
第一步:
先使用Lish with SSH :http://ww3.sinaimg.cn/large/a74ecc4cjw1e0ak016lq9j.jpg 登陆到ssh上。

第二步:
修改 ssh_config
vim /etc/ssh/ssh_config

在里面增加 Port 1433

第三步:
/usr/sbin/sshd -p 1433

第四步:重启SSHD
/etc/init.d/shhd restrat

如果你启动了iptables,则需要继续做如下操作:
第五步:
修改iptables
vim /etc/sysconfig/iptables

增加 -A INPUT -m state --state NEW -m tcp -p tcp --dport 1433 -j ACCEPT

第六步:
重启iptables:
service iptables restart

~~~~~~
现在 使用你的终端:
ssh -p1433 root@linodeIP

应该可以继续了...
1  2  3  
关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2404 人在线   最高记录 6543   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 14ms · UTC 03:31 · PVG 11:31 · LAX 20:31 · JFK 23:31
Developed with CodeLauncher
♥ Do have faith in what you're doing.