Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- debug3: authmethod_is_enabled publickey
- debug1: Next authentication method: publickey
- debug1: Offering RSA public key: /home/hdadmin/.ssh/id_rsa
- debug3: send_pubkey_test
- debug3: send packet: type 50
- debug2: we sent a publickey packet, wait for reply
- debug3: receive packet: type 51
- debug1: Authentications that can continue: publickey,password,keyboard-interactive
- debug2: we did not send a packet, disable method
- ...
- debug1: No more authentication methods to try.
- Permission denied (publickey,password,keyboard-interactive).
- -rw------- 1 hdadmin hdadmin 402 Feb 25 04:54 authorized_keys
- -rw------- 1 hdadmin hdadmin 87 Feb 25 04:54 config
- -rw------- 1 hdadmin hdadmin 1671 Feb 25 04:54 id_rsa
- -rw-r--r-- 1 hdadmin hdadmin 402 Feb 25 04:54 id_rsa.pub
- -rw------- 1 hdadmin hdadmin 1637 Feb 25 04:54 known_hosts
- RUN HOST_KEY="$(cat /etc/ssh/ssh_host_rsa_key.pub)"
- && echo "127.0.0.1 ${HOST_KEY}" >> /home/hdadmin/.ssh/known_hosts
- && echo "localhost ${HOST_KEY}" >> /home/hdadmin/.ssh/known_hosts
- && echo "$HOSTNAME ${HOST_KEY}" >> /home/hdadmin/.ssh/known_hosts
- && echo "0.0.0.0 ${HOST_KEY}" >> /home/hdadmin/.ssh/known_hosts
- && su-exec hdadmin ssh-keygen -q -N '' -t rsa -f /home/hdadmin/.ssh/id_rsa
- && cat /home/hdadmin/.ssh/id_rsa.pub >> /home/hdadmin/.ssh/authorized_keys
- && echo "Host *" >> /home/hdadmin/.ssh/config
- && echo -e "tUser hdadmin" >> /home/hdadmin/.ssh/config
- && echo -e "tPubKeyAuthentication yes" >> /home/hdadmin/.ssh/config
- && echo -e "tIdentityFile /home/hdadmin/.ssh/id_rsa" >> /home/hdadmin/.ssh/config
- && eval $(ssh-agent)
- && ssh-add /home/hdadmin/.ssh/id_rsa
- && chmod 0600 /home/hdadmin/.ssh/*
- && chmod 0644 /home/hdadmin/.ssh/*.pub
- && /usr/sbin/sshd
- && su-exec hdadmin ssh -vvv localhost
Add Comment
Please, Sign In to add comment