我在通过 SSH 连接到我的 1&1 账户时遇到了问题。当我尝试使用命令连接时
userXXX@host -p22 -vv
我有以下输出:
OpenSSH_5.8p1 Debian-7ubuntu1, OpenSSL 1.0.0e 6 Sep 2011
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to mySite.com [ip_here] port 22.
debug1: connect to address ip_here port 22: Connection refused
此外,一旦我尝试通过 SSH 连接并且失败,即使 HTTP 访问也中断,我也无法再通过资源管理器访问该网站 :/
请帮忙><
我正在运行 ubuntu 11.10
编辑:不知道是否有帮助,这是 1and1 服务器的 .htaccess
Options +Indexes
Satisfy any
Order Deny,Allow
Allow from 212.227.X.X
Deny from all
RemoveType .html .gif
AuthType Basic
AuthName "Access to /logs"
AuthUserFile /kunden/homepages/43/d376072470/htpasswd
Require user "user_here"
和 sftp.log:
Mar 26 09:21:24 193.251.X USER_HERE Connection from 193.251.X port 51809
Mar 26 09:21:30 193.251.X USER_HERE Failed password for USER_HERE from 193.251.X port 51809 ssh2
Mar 26 09:23:39 193.251.X USER_HERE Failed password for USER_HERE from 193.251.X port 51809 ssh2
Mar 26 09:23:41 193.251.X USER_HERE Failed password for USER_HERE from 193.251.X port 51809 ssh2
Mar 26 09:23:45 193.251.X USER_HERE Failed password for USER_HERE from 193.251.X port 51809 ssh2
Mar 26 09:23:57 193.251.X USER_HERE Failed password for USER_HERE from 193.251.X port 51809 ssh2
Mar 26 10:53:36 212.227.X tmp64459736-3228 Connection from 212.227.X port 23275
Mar 26 10:53:36 212.227.X tmp64459736-3228 Accepted password for tmp64459736-3228 from 212.227.X port 23275 ssh2
Mar 26 11:53:37 212.227.X tmp64459736-3228 Connection closed by 212.227.X
Mar 26 18:58:17 212.227.X tmp64459736-5363 Connection from 212.227.X port 23353
Mar 26 18:58:17 212.227.X tmp64459736-5363 Accepted password for tmp64459736-5363 from 212.227.X port 23353 ssh2
Mar 26 19:53:36 212.227.X tmp64459736-8525 Connection from 212.227.X port 5166
Mar 26 19:53:36 212.227.X tmp64459736-8525 Accepted password for tmp64459736-8525 from 212.227.X port 5166 ssh2
Mar 26 19:58:17 212.227.X tmp64459736-5363 Connection closed by 212.227.X
答案1
即使这是一个老问题,答案也可能很有用。我今天也遇到了同样的问题。
问题出在 1and1 上,在使用错误密码或错误用户名尝试连接 SSH 几次(我认为是 2-3 次)后,它会阻止 IP 地址。该网站在 SSH 和 HTTP(S) 中都被阻止。
解决方法是联系他们解除对地址 IP 的阻止,并确保在使用 SSH 连接之前密码和用户名正确。
答案2
重新启动您的路由器,除非您有固定的 IP 地址(大多数人没有),否则您将获得一个新的 IP 地址,并且 1&1 将不知道是您。