A very handy method for debugging ssh is here on stackoverflow:
https://unix.stackexchange.com/questions/156038/ssh-server-refused-our-key-with-no-reason
That told me the file permissions were not right…
]]>There is one correction i.e, On authorized_keys permission is not working on 770 permission, its works only on 600. please check once.
]]>@Helwi,
Please allow the port in Firewall also, if you are using any firewall like iptables or firewalld.
]]>I have problem with port ssh, I can`t change the default port to custom port. I use 9899 for my custom port. Can you advice me step by step, because I follow your tutorial step by step to change port on sshd_config and also enabled port in selinux but its still not work.
When I try to connect using the port from other computer in the same network the error connection refused for port 22. When I try add comment -p 9899
in the end command are still refused.
Can you advice me?
Tthanks in advanced.
regard