【问题标题】:Hadoop: Passwordless SSH errorHadoop:无密码 SSH 错误
【发布时间】:2015-05-25 10:37:51
【问题描述】:

我正在尝试为 Hadoop 2.6.0 启用无密码 ssh(通过 Windows 2008 Server 上的 Cygwin)。我试过的方法如下:

ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

我还尝试将以下内容添加到 ssh_config 文件中,如关于 SO 的一些问题中所述:

PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
PermitRootLogin yes

不过,我还是无法通过 ssh 进入本地主机。 ssh -v localhost的输出如下:

OpenSSH_6.8p1, OpenSSL 1.0.2a 19 Mar 2015
debug1: Reading configuration data /etc/ssh_config
debug1: Connecting to localhost [127.0.0.1] port 22.
debug1: Connection established.
debug1: identity file /home/MP30589/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /home/MP30589/.ssh/id_rsa-cert type -1
debug1: identity file /home/MP30589/.ssh/id_dsa type 2
debug1: key_load_public: No such file or directory
debug1: identity file /home/MP30589/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/MP30589/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/MP30589/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/MP30589/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /home/MP30589/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.8
debug1: Remote protocol version 2.0, remote software version OpenSSH_6.8
debug1: match: OpenSSH_6.8 pat OpenSSH* compat 0x04000000
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr umac-64-etm@openssh.com none
debug1: kex: client->server aes128-ctr umac-64-etm@openssh.com none
debug1: expecting SSH2_MSG_KEX_ECDH_REPLY
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:l/78VMLSVdtD9SMx46+m4NZt4Kmd1x8I038v9ozQYbM
debug1: Host 'localhost' is known and matches the ECDSA host key.
debug1: Found key in /home/MP30589/.ssh/known_hosts:1
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,keyboard-interactive
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /home/MP30589/.ssh/id_rsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Offering DSA public key: /home/MP30589/.ssh/id_dsa
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Trying private key: /home/MP30589/.ssh/id_ecdsa
debug1: Trying private key: /home/MP30589/.ssh/id_ed25519
debug1: Next authentication method: keyboard-interactive
debug1: Authentications that can continue: publickey,password,keyboard-interactive
debug1: Next authentication method: password
MP30589@localhost's password:

有人可以帮我吗?提前致谢!

【问题讨论】:

    标签: hadoop ssh permissions localhost server


    【解决方案1】:

    更改 SSH 服务器配置文件后,您必须使用

    强制重新加载配置
    sudo /etc/init.d/ssh reload
    

    或者重启系统。

    【讨论】:

    • 试过了,但没有帮助
    猜你喜欢
    • 2017-12-14
    • 1970-01-01
    • 2014-02-15
    • 1970-01-01
    • 2022-01-01
    • 2016-11-02
    • 2014-01-06
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多