Guest User

Untitled

a guest
Feb 24th, 2018
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. debug3: authmethod_is_enabled publickey
  2. debug1: Next authentication method: publickey
  3. debug1: Offering RSA public key: /home/hdadmin/.ssh/id_rsa
  4. debug3: send_pubkey_test
  5. debug3: send packet: type 50
  6. debug2: we sent a publickey packet, wait for reply
  7. debug3: receive packet: type 51
  8. debug1: Authentications that can continue: publickey,password,keyboard-interactive
  9. debug2: we did not send a packet, disable method
  10. ...
  11. debug1: No more authentication methods to try.
  12. Permission denied (publickey,password,keyboard-interactive).
  13.  
  14. -rw------- 1 hdadmin hdadmin 402 Feb 25 04:54 authorized_keys
  15. -rw------- 1 hdadmin hdadmin 87 Feb 25 04:54 config
  16. -rw------- 1 hdadmin hdadmin 1671 Feb 25 04:54 id_rsa
  17. -rw-r--r-- 1 hdadmin hdadmin 402 Feb 25 04:54 id_rsa.pub
  18. -rw------- 1 hdadmin hdadmin 1637 Feb 25 04:54 known_hosts
  19.  
  20. RUN HOST_KEY="$(cat /etc/ssh/ssh_host_rsa_key.pub)"
  21. && echo "127.0.0.1 ${HOST_KEY}" >> /home/hdadmin/.ssh/known_hosts
  22. && echo "localhost ${HOST_KEY}" >> /home/hdadmin/.ssh/known_hosts
  23. && echo "$HOSTNAME ${HOST_KEY}" >> /home/hdadmin/.ssh/known_hosts
  24. && echo "0.0.0.0 ${HOST_KEY}" >> /home/hdadmin/.ssh/known_hosts
  25. && su-exec hdadmin ssh-keygen -q -N '' -t rsa -f /home/hdadmin/.ssh/id_rsa
  26. && cat /home/hdadmin/.ssh/id_rsa.pub >> /home/hdadmin/.ssh/authorized_keys
  27. && echo "Host *" >> /home/hdadmin/.ssh/config
  28. && echo -e "tUser hdadmin" >> /home/hdadmin/.ssh/config
  29. && echo -e "tPubKeyAuthentication yes" >> /home/hdadmin/.ssh/config
  30. && echo -e "tIdentityFile /home/hdadmin/.ssh/id_rsa" >> /home/hdadmin/.ssh/config
  31. && eval $(ssh-agent)
  32. && ssh-add /home/hdadmin/.ssh/id_rsa
  33. && chmod 0600 /home/hdadmin/.ssh/*
  34. && chmod 0644 /home/hdadmin/.ssh/*.pub
  35. && /usr/sbin/sshd
  36. && su-exec hdadmin ssh -vvv localhost
Add Comment
Please, Sign In to add comment