LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS
User Name
Password
CentOS This forum is for the discussion of CentOS Linux. Note: This forum does not have any official participation.

Notices


Reply
  Search this Thread
Old 06-09-2016, 07:34 AM   #1
CLGREEN
LQ Newbie
 
Registered: Nov 2014
Location: Liverpool, UK
Distribution: CentOS
Posts: 4

Rep: Reputation: Disabled
Angry 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
 
Old 06-09-2016, 07:40 AM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Did you run ssh -v.
 
Old 06-09-2016, 08:22 AM   #3
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,307
Blog Entries: 3

Rep: Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721Reputation: 3721
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
 
Old 06-09-2016, 09:43 AM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Plus, there may be a change in server configuration, denying root logins. Are you trying to log in as root?
 
Old 07-27-2016, 07:40 AM   #5
McLinux1
LQ Newbie
 
Registered: Jul 2016
Location: Dallas, TX
Distribution: RHEL, CentOS, SUSE
Posts: 2

Rep: Reputation: Disabled
Check the port forwarding on your new router.
 
Old 08-10-2016, 08:30 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Rsync over ssh connection issue, and perms issue thekraken99 Linux - Server 2 01-26-2015 07:50 PM
Issue with wrapper for ssh which execute ssh. jayantkp Linux - Newbie 4 05-28-2012 04:57 AM
SSH Issue bluedude2288 Red Hat 5 05-12-2011 02:11 PM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 09:25 AM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 07:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > CentOS

All times are GMT -5. The time now is 12:08 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration