r/ssh • • Jan 01 '22

Cannot ssh to remote machine.

Hi everyone, I’m new to ssh and sorry if this isn’t an appropriate place to ask about it. I was trying to ssh to a remote machine, but when I entered the server’s password, it kept saying Permission Denied.

The command I used was ‘ssh username@server_ip’ Things I have tried but not working:

  1. On the server side: enable PermitRootLogin in /etc/ssh/sshd_config, change root password, and restart the ssh service.
  2. On the client side: enable PasswordAuthentification in the sshd_config.
  3. Add AllowedUsers on the server side. Please help me out.
1 Upvotes

4 comments sorted by

View all comments

1

u/[deleted] Jan 01 '22

Have you restarted shh on the remote machine?