SSH into a server, but it stays on the same server.

Issues related to configuring your network
Post Reply
rocky595
Posts: 8
Joined: 2017/02/11 01:33:07

SSH into a server, but it stays on the same server.

Post by rocky595 » 2017/03/22 00:03:39

I never seen this before.

I go to ssh into a server, example ssh 198.154.33.55 and I tried the host name as well. The from ip is 198.154.33.66.

It acts like it is logging into the target 198.154.33.55 but it loops right back onto the same server 198.154.33.66. I tail -f the secure logs on 198.154.33.55 and no entry made it to the logs. I can't ping the 33.55 from the 33.66, but I can ping the other way.

I think this is a network issue on a router but not sure. I have no problems sshing and pinging four other servers in this enclave, just this one.

iptables are turned off. The interfaces eml1 look okay. /etc/hosts files look okay. resolv.conf look okay.

Not sure where to look.

JR

lightman47
Posts: 1522
Joined: 2014/05/21 20:16:00
Location: Central New York, USA

Re: SSH into a server, but it stays on the same server.

Post by lightman47 » 2017/03/22 11:42:22

FWIW - I got similar behaviour when I edited /etc/hosts and added more machine names to the top two 'localhost' definitions. As I was using dnsmasq at the time on that server, all the other machines immediately "became" that server. :lol:

just a thought

User avatar
TrevorH
Site Admin
Posts: 33220
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: SSH into a server, but it stays on the same server.

Post by TrevorH » 2017/03/22 15:55:20

The other possibility is that you've added something to your bash profile files that immediately disconnects you...
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Post Reply