foe*_*ebu 5 ssh google-compute-engine google-cloud-platform
我停止并重新启动了ubuntu 14.04 Google Cloud Compute Engine实例,现在,我的ssh连接被拒绝:
ssh: connect to host 146.148.114.98 port 22: Connection refused
这在上次已经发生过,我认为这台机器有问题,我删除了它并重新创建,然后它又开始工作了。我不想每次都重新创建实例。谷歌云的ssh故障排除页面相当混乱。我的防火墙规则似乎还可以。有人对此有解决方案吗?
NAME NETWORK SRC_RANGES RULES SRC_TAGS TARGET_TAGS
default-allow-http default 0.0.0.0/0 tcp:80 http-server
default-allow-https default 0.0.0.0/0 tcp:443 https-server
default-allow-icmp default 0.0.0.0/0 icmp
default-allow-internal default 10.128.0.0/9 tcp:0-65535,udp:0-65535,icmp
default-allow-rdp default 0.0.0.0/0 tcp:3389
default-allow-ssh default 0.0.0.0/0 tcp:22
Run Code Online (Sandbox Code Playgroud)
这是以下内容的输出: ps aux | grep ssh
root 29 0.0 0.4 55184 2860 ? Ss 11:26 0:00 /usr/sbin/sshd -p 22 -o AuthorizedKeysCommand=/google/devshell/authorized_keys.sh -o Author
izedKeysCommandUser=root
root 183 0.0 0.9 82692 5940 ? Ss 11:26 0:00 sshd: fbeshox [priv]
fbeshox 218 0.0 0.7 82692 4424 ? S 11:26 0:00 sshd: fbeshox@pts/0
fbeshox 522 0.0 0.3 12728 2200 pts/1 S+ 12:12 0:00 grep ssh
Run Code Online (Sandbox Code Playgroud)
这里是ssh连接尝试的详细结果。
ssh -i .ssh/keyname username@130.211.53.51 -vvv
OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011
debug1: Reading configuration data /Users/xxxx/.ssh/config
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to 130.211.53.51 [130.211.53.51] port 22.
debug1: connect to address 130.211.53.51 port 22: Connection refused
ssh: connect to host 130.211.53.51 port 22: Connection refused
Run Code Online (Sandbox Code Playgroud)
尝试使用不同的用户名通过 SSH 连接到实例。Google Compute 有时有点不稳定。尝试使用 Compute Engine 中的虚拟机实例页面通过 SSH 连接到实例。如果 SSH 花费太多时间并拒绝连接,请在 SSH 中使用不同的用户名登录。您可以使用 SSH 窗口右上角的设置图标以不同的名称登录。如果这些都不顺利,我会建议您再重新创建一个实例,因为根据我的经验,Google Compute Engine 实例在 SSH 可访问性方面不稳定,并且往往会产生问题。最好使用 putty 作为客户端通过 SSH 访问 Compute Engine,而不是使用 Google 提供的 SSH 终端。如果这对您有帮助,请告诉我:)
| 归档时间: |
|
| 查看次数: |
4826 次 |
| 最近记录: |