Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I deleted my .ssh folder, changed my root password, then logged back into my account (mediatemple).

Now I did used the nano command to create the .ssh folder, and inside it the authorized_keys file that will store my public key.

is this correct so far?

share|improve this question
    
nano is a file editor. You can make directories using the mkdir command. –  Dennis Williamson Nov 26 '09 at 13:16

2 Answers 2

Well, the permissions need to be set correctly if you want authorized_keys to work.

I usually generate a set of keys and have it done automatically. :)

ssh-keygen -t dsa

fyi; the correct rights are like this:

700 on the .ssh directory
600 on the authorized_keys file.

Owner is the user.

share|improve this answer

yes - sounds ok to me

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.