Centos 6.3 was installed sucessfully.
eth0 ip was 192.168.1.46
I edited the sshd_config file and changed port from 22 to 22421
disabled password authentication
I was not able to ssh to this server @ 192.168.1.46
I was not seeing any errors/messages in /var/log/secure
after some debugging I did the following to fix the issue
- Disabled SELinux
This still did not fix the issue of ssh login but at least it logged messages in /var/log/secure.
looked at /var/log/secure and found that
the error was
Authentication refused: bad ownership or modes for file /home/wb003c/.ssh/authorized_keys
checked the perms on file and it was
664
changed it to 600 and Viola , ssh started working.
-- Not sure if disabling SELinux also helped me fix the issue. Will research this at another time.
eth0 ip was 192.168.1.46
I edited the sshd_config file and changed port from 22 to 22421
disabled password authentication
I was not able to ssh to this server @ 192.168.1.46
I was not seeing any errors/messages in /var/log/secure
after some debugging I did the following to fix the issue
- Disabled SELinux
This still did not fix the issue of ssh login but at least it logged messages in /var/log/secure.
looked at /var/log/secure and found that
the error was
Authentication refused: bad ownership or modes for file /home/wb003c/.ssh/authorized_keys
checked the perms on file and it was
664
changed it to 600 and Viola , ssh started working.
-- Not sure if disabling SELinux also helped me fix the issue. Will research this at another time.