What are possible reasons for getting "permission denied" by ssh?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
What are possible reasons for getting "permission denied" by ssh?
as stated on the title. what are the reasons for getting permission denied on ssh??
APART FROM typing in wrong password, obviously...
-- what happened to me --
i connect two computers by ethernet cables via a router. last night ssh was working fine after reinstalling openssh. today, it stopped working properly again - i get "permission denied", not much of information. -v option gave useless infos. i checked on the net, but there are loads of rubbish on the net that are not really helpful.
---
could you all please post all the possible reasons you can think of? please...
hi thanks for the replies. i actually sorted out my problem
i checked the syslog of the host box, and that gave me a clue to the problem.
the trouble in my case was that my account had already been expired when i tried to access the host. so all i had to do was to change the account setting and extended the expiry date.
If you reinstall Linux on a computer, you will end up with a new private/public key pair in ~/.ssh. The public key won't match what is in the other hosts ~/.ssh/known_hosts entry for that computer. This will deny you access as well. Either backup the ~/.ssh/ directory before reinstalling or remove the entry in every other host. If you use ssh to connect to a physically remote computer, such as your colo web server, then make sure to backup & restore your ~/.ssh/ directory.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.