Closed Thread
Results 1 to 3 of 3

Thread: SSH Key Problem

  1. #1
    Valor is offline Learning Programmer
    Join Date
    Oct 2007
    Posts
    30
    Rep Power
    0

    SSH Key Problem

    When I try to SSH into my server using public/private key authentication it rejects and I see this error:

    "Authentication refused: bad ownership or modes for directory /home/username/.ssh"
    Anyone know what this means and how to fix the error?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    What does 'ls -la /home/username' and 'ls -la /home/username/.ssh/' show?

  4. #3
    RHochstenbach's Avatar
    RHochstenbach is offline Learning Programmer
    Join Date
    Feb 2011
    Location
    The Netherlands
    Posts
    47
    Rep Power
    0

    Re: SSH Key Problem

    This probably means that the permissions of your .ssh directory are wrongly configured. Try these commands on the server:
    Code:
    chown -R username /home/username/.ssh
    chmod -R 700 /home/username/.ssh
    If you get a permission denied message, try it as root. But that also indicates that the permissions of your home directory are also wrongly configured. So try these commands on your home folder (/home/username) as well.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. If problem or cout problem?
    By chaoticape in forum C and C++
    Replies: 4
    Last Post: 06-10-2011, 10:29 AM
  2. C: Problem with solving problem
    By rakche in forum C and C++
    Replies: 15
    Last Post: 03-28-2010, 01:24 PM
  3. Replies: 0
    Last Post: 04-26-2007, 05:33 PM

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