我在Windows Azure中用Ubuntu 14.04镜像创build了一个新的虚拟机。 我试图用ssh连接虚拟机。 但它performance出类似的东西。 你能帮我理解这里出了什么问题吗?
这是terminal的输出。
ssh -v ****.cloudapp.net : 22 OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to ***.cloudapp.net [104.42.12.189] port 22. debug1: Connection established. debug1: identity file /home/user/.ssh/id_rsa type 1 debug1: identity file /home/user/.ssh/id_rsa-cert type -1 debug1: identity file /home/user/.ssh/id_dsa type -1 debug1: identity file /home/user/.ssh/id_dsa-cert type -1 debug1: identity file /home/user/.ssh/id_ecdsa type -1 debug1: identity file /home/user/.ssh/id_ecdsa-cert type -1 debug1: identity file /home/user/.ssh/id_ed25519 type -1 debug1: identity file /home/user/.ssh/id_ed25519-cert type -1 debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 debug1: Remote protocol version 2.0, remote software version OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 debug1: match: OpenSSH_6.6.1p1 Ubuntu-2ubuntu2 pat OpenSSH_6.6.1* compat 0x04000000 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr [email protected] none debug1: kex: client->server aes128-ctr [email protected] none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ECDSA a2:be:a9:21:ca:a2:e3:96:e1:b3:c3:e9:63:6d:c5:ac debug1: Host '***.cloudapp.net' is known and matches the ECDSA host key. debug1: Found key in /home/user/.ssh/known_hosts:28 debug1: ssh_ecdsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/user/.ssh/id_rsa debug1: Authentications that can continue: publickey,password debug1: Trying private key: /home/user/.ssh/id_dsa debug1: Trying private key: /home/user/.ssh/id_ecdsa debug1: Trying private key: /home/user/.ssh/id_ed25519 debug1: Next authentication method: password user@*****.cloudapp.net's password: debug1: Authentication succeeded (password). Authenticated to *****.cloudapp.net ([104.42.12.189]:22). debug1: channel 0: new [client-session] debug1: Requesting [email protected] debug1: Entering interactive session. debug1: Sending environment. debug1: Sending env LANG = en_IN debug1: Sending env LC_CTYPE = en_IN debug1: Sending command: : 22 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype [email protected] reply 0 debug1: channel 0: free: client-session, nchannels 1 Transferred: sent 2908, received 2228 bytes, in 0.8 seconds Bytes per second: sent 3585.2, received 2746.8 debug1: Exit status 0
谢谢!
你的命令( ssh -v example.cloudapp.net : 22 )说要连接到example.cloudapp.net ,然后执行命令: 22并退出。
从我所看到的成功做到这一点。
我猜你试图指定端口号(?),但这不是你如何做的。 首先,端口22是ssh的默认端口,所以不需要指定它,但是如果你需要指定端口,使用-p 。
对于一些信息: 22意味着:
$ type : : is a shell builtin $ help : :: : Null command. No effect; the command does nothing. Exit Status: Always succeeds. $