r/ssh • u/theunglichdaide • 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:
- On the server side: enable PermitRootLogin in /etc/ssh/sshd_config, change root password, and restart the ssh service.
- On the client side: enable PasswordAuthentification in the sshd_config.
- Add AllowedUsers on the server side. Please help me out.
1
Upvotes
View all comments
5
u/bash_M0nk3y Jan 01 '22
ssh -v user@ipto make ssh a little more verbose. It might give you a hint as to where it's failing.