ssh permission denied

前端 未结 3 772
庸人自扰
庸人自扰 2021-01-21 22:30

I am trying to ssh into a remote machine and I get the following debug messages:

debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options          


        
相关标签:
3条回答
  • 2021-01-21 22:54

    You say that you are having trouble with a "new" node, however, there seems to be an entry for that ip in ~/.ssh/known_hosts It seems likely that it is trying to use the setup from a previous session. You say that you copied id_rsa, but you should have tried moving it to prevent it from being found and used. You can see the file mentioned in your post, particularly the line " Offering public key: /home/hadoop/.ssh/id_rsa"

    Try moving both of those files (id_rsa and known_hosts) and see if that changes things.

    0 讨论(0)
  • 2021-01-21 23:06

    Looks like a bad private key. I would start by moving /home/hadoop/.ssh/id_rsa to /home/hadoop/.ssh/id_rsa.bak and seeing if that helps anything

    0 讨论(0)
  • 2021-01-21 23:15

    As the answer above states, it looks to be a bad key. Run ssh-keygen and create a new one with the existing one being backed up.

    Then try doing an

    id_rsa.pub >> authorized_keys
    

    no copying/pasting. Copying/pasting from VIM can lead to user error.

    0 讨论(0)
提交回复
热议问题