+ Reply to Thread
Results 1 to 2 of 2

Thread: RedHat 6 does not allow key authentication via ssh

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    16

    RedHat 6 does not allow key authentication via ssh

    Keys are properly deployed in ~/.ssh/authorized_keys

    Yet ssh keeps on prompting for a password.

  2. #2
    Junior Member
    Join Date
    Jan 2012
    Posts
    28
    Several issues, mostly privileges - but also related to SELinux on RedHat 6

    The following script should fix them all
    Code:
    cd ~
    chmod 700 .ssh
    cd .ssh
    chmod 600 *
    chmod 644 authorized_keys
    chmod 644 known_hosts
    chmod 644 config
    restorecon -R -v ../.ssh

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts