LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   CentOS (https://www.linuxquestions.org/questions/centos-111/)
-   -   SSH Issue. (https://www.linuxquestions.org/questions/centos-111/ssh-issue-4175581850/)

CLGREEN 06-09-2016 07:34 AM

SSH Issue.
 
Hello all,

So, I am having an issue with a CentOS 7 machine that all of a sudden has just stop allowing SSH connections into the machine, I can SSH from the machine into another, SSHD is running, I have tried disabling the firewall, fail2ban, I can telnet into the machine from my home machine (On the same LAN).

I have tried everything I know, but now I am at a loss. The only thing that has changed is the router it was plugged into and I changed the ip addresses on the machine but I can ping the machine, and the machine and can ping out.

I am kinda sat here scratching my head.

Thanks for any help :)

- Callum :)

Emerson 06-09-2016 07:40 AM

Did you run ssh -v.

Turbocapitalist 06-09-2016 08:22 AM

Agreed, increasing the verbosity of the client with -v, -vv, or -vvv when connecting might show something useful.
If you use the telnet client to connect to port 22 of the server do you get a few lines with the last one something like this? SSH-2.0-OpenSSH_6.6.1


Over on the server side, what is going on in the now binary logs?

Code:

journalctl -u sshd

Emerson 06-09-2016 09:43 AM

Plus, there may be a change in server configuration, denying root logins. Are you trying to log in as root?

McLinux1 07-27-2016 07:40 AM

Check the port forwarding on your new router.

chrism01 08-10-2016 08:30 PM

Quote:

I changed the ip addresses on the machine
Have you checked the 'ListenAddress' in /etc/ssh/sshd_config. If you need to update that, you need to restart sshd daemon as well.


All times are GMT -5. The time now is 09:14 PM.