Portal Home > Knowledgebase > Articles Database > Please help with this ssh error!


Please help with this ssh error!




Posted by AndyJ, 01-03-2008, 12:05 AM
Hi guys, I was trying to generate ssh key for my server and get this message below andyj: this is my username for my domain which is hosted in that server. How do i allow 'andyj' user to have permission to do this ? Note, I can do this with 'root' just fine. I'm using CentOS 5. Thanks

Posted by foobic, 01-03-2008, 12:19 AM
Your user doesn't have permission to write to that directory. I believe it's usually user:user 700.

Posted by AndyJ, 01-03-2008, 12:34 AM
Thanks but what do you mean by 'user:user 700' ? sorry i am new to this. YEs, i believe user 'andyj' doesn't have permission to write this file. Can we change this ? if yes, how do i do that ? thanks

Posted by foobic, 01-03-2008, 12:44 AM
Show current ownership and permissions: Change ownership, if necessary (as root): Change permissions, if necessary: You may also have problems with the permissions on the parent directory /home/andyj.

Posted by david510, 01-03-2008, 12:57 AM
Make sure the following permissions are set. file authorized_keys 600 folder .ssh 700 Home Directory 711 Keys (id_dsa,id_rsa) 600 Public Keys (id_dsa.pub,id_rsa.pub) 644

Posted by AndyJ, 01-03-2008, 01:16 AM
Thanks, it works now. The problem was the permission of .ssh folder.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
PHp recompile question (Views: 580)
DDOS or not? (Views: 600)