"Failed Password" and "Invalid User" - Secure Shell Server

I installed ssh-server on Ubuntu 18.04.01.

When I try to access the server with PuTTY the error "access denied" is shown. The server log says "failed password" and "invalid user".

I also changed "PermitRootLogin yes" in sshd_config. But it still doesn't work. I am trying to figure out the problem since hours.

Does somebody know, what configuration has to he changed?

2 Answers

If you still have access to the server's terminal, use the command "cut -d: -f1 /etc/passwd" to see all users.

7

You must restart sshd after updating the config file.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Maya Lin-Takahashi

Maya Lin-Takahashi

Consumer Tech & Gadget Reviewer

Maya is a hardware enthusiast who tests and reviews smart home devices, smartphones, wearables, and audio gear. She focuses on practical consumer value and build quality.

Share this article
Twitter Facebook Pinterest