I placed my public key, I believe, on my server account (I do not have root) in .ssh/authorized_keys2. Now where it used to ask me for my password it just says "Connection closed." I cannot log in. Ideas?
feedback
|
|
Usually the filename .ssh/authorized_keys (without 2) should also do nowadays. Additionally check that the authorized_keys file is not world- or group-readable, neither the .ssh dir should be. Logging in with ssh -vvv could give you some more clues. But most times I encounter this it's just due to wrong permissions. Edit: Try to login without even utilitizing the key by temporary moving your private key away... Maybe something went just terribly wrong when you pasted the public key to the server. | ||||
|
feedback
|
|
Sounds like a permissions problem. Chances are that the ssh server is unable to read | |||
feedback
|
|
To ensure that the permissions are set correctly, run the following command:
(remove rwx privileges from group and other) | |||
|
feedback
|