LinuxQuestions.org
Help answer threads with 0 replies.
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, 08: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, 08:40 AM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

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

Rep: Reputation: 1644Reputation: 1644Reputation: 1644Reputation: 1644Reputation: 1644Reputation: 1644Reputation: 1644Reputation: 1644Reputation: 1644Reputation: 1644Reputation: 1644
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, 10:43 AM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 6,316

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, 08: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, 09:30 PM   #6
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.5
Posts: 17,597

Rep: Reputation: 2444Reputation: 2444Reputation: 2444Reputation: 2444Reputation: 2444Reputation: 2444Reputation: 2444Reputation: 2444Reputation: 2444Reputation: 2444Reputation: 2444
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 08:50 PM
Issue with wrapper for ssh which execute ssh. jayantkp Linux - Newbie 4 05-28-2012 05:57 AM
SSH Issue bluedude2288 Red Hat 5 05-12-2011 03:11 PM
[SSH] Issue logging in [SSH & Permissions] MD3 Linux - Networking 11 12-10-2006 10:25 AM
ssh issue: /usr/bin/ssh -x -oFallBackToRsh no -l WeNdeL Linux - Software 1 03-04-2003 08:17 PM

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

All times are GMT -5. The time now is 04:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration