我无法使用SSH本地主机。我在Ubuntu 12.04 LTS(32位)上也安装了OpenSSH服务器。
连接到已安装hadoop的网络(ip:192.168.1.2),正在为本地计算机运行hadoop。
这是我得到的:
root@kunal-Extensa-4620:/# ssh -vvv localhost
OpenSSH_5.9p1 Debian-5ubuntu1.1, OpenSSL 1.0.1 14 Mar 2012
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_rsa-cert type -1
debug1: identity file /root/.ssh/id_dsa type -1
debug1: identity file /root/.ssh/id_dsa-cert type -1
debug1: identity file /root/.ssh/id_ecdsa type -1
debug1: identity file /root/.ssh/id_ecdsa-cert type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1
debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1
debug2: fd 3 setting O_NONBLOCK
debug3: load_hostkeys: loading entries for host "localhost" from file "/root/.ssh/known_hosts"
debug3: load_hostkeys: loaded 0 keys
debug1: SSH2_MSG_KEXINIT sent
Read from socket failed: Connection reset by peer
检查端口22是否在您的末端打开以进行传入连接
—
注册用户
sudo ss -lnp | grep sshd#导致LISTEN 0 128 ::: 22 ::: *用户:((“ sshd”,556,4))LISTEN 0 128 :22 *: users:(((“ sshd”,556,3))亲爱的,其开放性和倾听性。
—
ASCIIbetical 2013年
当您执行ssh user @ localhost时,得到的确切消息是什么?
—
注册用户
服务器日志在您的连接尝试中说什么?请参阅
—
gertvdijk
/var/log/syslog
和/var/log/auth.log
。
当您输入ssh user @ localhost时,在屏幕上收到的确切消息是什么,
—
注册用户
ssh -vvv localhost
这ssh -vvv user@localhost
应该没有任何意义