Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have a remote machine with a single and root user - stg I connect to this machine using ssh stg@staging and run:

sudo chmod 777 . 

i logout and cant connect any more:

Permission denied (publickey).
share|improve this question

1 Answer 1

up vote 0 down vote accepted

OpenSSH will not allow you to use key-based authentication if the rights of the user's directory and the .ssh directory therein are not secure. But you should be able to connect using your password. If that does not work either, I guess you disallowed password authentication in you sshd_config.

share|improve this answer
    
we disallowed password authentication –  Please delete me Feb 4 at 15:35

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.