Skip to main content

Key authentication not working

Comments

8 comments

  • quizknows
    Are you trying to sftp as root, or as another username? If you're trying to sftp as another username, the key needs to go in /home/username/.ssh/authorized_keys rather than root's home (~/.ssh/ if you're in as root).
    0
  • EH-Chris
    I'm running into the same issue- [backup_destination_validate] version [1].alidation for transport "keyed" failed: Permission denied (publickey,gssapi-keyex,gssapi-with-mic,password).
    0
  • 24x7server
    Hello, On the host server, ensure that the /etc/ssh/sshd_config contains the following lines, and that they are uncommented; PubkeyAuthentication yes RSAAuthentication yes
    0
  • Erjen
    I am trying as root and both lines are in the sshd_config file. I also set the path to: AuthorizedKeysFile /root/.ssh/authorized_keys And restarted SSH. So that can't be the issue I think. Any more ideas? Or should I create a support ticket?
    0
  • cPanelMichael
    Hello :) Please open a support ticket using the link in my signature so we can take a closer look. You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0
  • quizknows
    check /var/log/secure before you go too crazy ;)
    0
  • Erjen
    That one doesn't show any logs unfortunately :(
    0
  • quizknows
    That is very odd. Any attempt at all to connect to the servers SSH server should be detailed in /var/log/secure on redhat/centOS systems.
    0

Please sign in to leave a comment.