Centos 5, HP server, no ping no ssh, no traceroute, same LAN

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
Post Reply
Abubakr
Posts: 3
Joined: 2015/11/10 08:55:05

Centos 5, HP server, no ping no ssh, no traceroute, same LAN

Post by Abubakr » 2015/11/10 09:16:01

Hi,

Greetings everyone. This is my first post so please ignore my newbieness.

Problem Description:

I have an HP test server on which I installed centos 5. I used to do ssh, ping etc from my workstation which is on the same LAN.

Yesterday, I changed the SElinux on the computer to 'enforcing' and rebooted it for relabel. After this, I cannot ssh, ping or traceroute. It felt like the Selinux has blocked everything, so I disabled it and rebooted again, but i am still having the same problem. I changed the selinux to permissive and disabled but still it is having the same problem. The ssh and ping return the error" Connection time out". Traceroute returns only **. As default in Centos the Root login is permitted but after this, the root login is also not possible locally. I can login locally with other user and than change to root but root login gives error "Root login is not allowed". IPtables is empty, System-config-security-tui is also configured for ssh incoming on ethernets. sshd has "Rootloginpermit = yes".

So mainly two problems:

1- no ssh possible
2- root login locally not possible

Thanks for your support.

Regards
Abubakr

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

Re: Centos 5, HP server, no ping no ssh, no traceroute, same

Post by TrevorH » 2015/11/10 09:23:19

Check that your console tty is listed in /etc/securetty - that's the most likely cause of the inability to login as root locally.

You'll need to check that you have an ip address on your ethernet interface. It sounds like you have no network connection at present.
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

Abubakr
Posts: 3
Joined: 2015/11/10 08:55:05

Re: Centos 5, HP server, no ping no ssh, no traceroute, same

Post by Abubakr » 2015/11/10 11:43:47

Hi,

Thank you so much, I deactivated the eth1 and activated it again and it started working. I can now ssh and ping etc. The root login is also working remotely but I still cannot login locally with root. Can you help me with that.

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

Re: Centos 5, HP server, no ping no ssh, no traceroute, same

Post by TrevorH » 2015/11/10 12:19:30

Check that your console tty is listed in /etc/securetty
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

Abubakr
Posts: 3
Joined: 2015/11/10 08:55:05

Re: Centos 5, HP server, no ping no ssh, no traceroute, same

Post by Abubakr » 2015/11/11 07:45:29

Hi,

I have following listings in the etc/securetty
console
vc/1
vc/2
.
.
.
vc/11

tty1
tty2
tty3
..
.
tty11

gerald_clark
Posts: 10642
Joined: 2005/08/05 15:19:54
Location: Northern Illinois, USA

Re: Centos 5, HP server, no ping no ssh, no traceroute, same

Post by gerald_clark » 2015/11/11 14:17:11

Change it to permissive.
Boot
login as root
restorecon -r /

Then try enabled.

Post Reply