lost ssh access of remote machine RHEL4..How to get it back?
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
lost ssh access of remote machine RHEL4..How to get it back?
Hi there is a machine RHEL4 which is controlled by ssh. It is remote so can onle be managed by the administrators down here though shell. But after installing an rpm tripwire package I have lost shell access..When I try to connect, it gives me the following error
# ssh 172.17.1.197
ssh: connect to host 172.17.1.197 port 22: Connection refused
Its an production server so its very important to have the ssh access back...How can I get back the access?
After installing this "tripwire" rpm, have you looked that the port22 (used by ssh) is still open? Is the deamon (sshd) running? It could be that the port was closed during the installation, or that the deamon was turned off.
If everything seems to be in working order, you can also try accessing, through port22, the machine with the domain name, instead of the IP address. I had to do that once before.
I tried it with the domain name but its not working..giving me the error name or service not known
#ssh -D 22 [machine_name_with_domain.com]
ssh [machine_name_with_domain.com]: name or service not known..
Also, there is a terminal open which is on my boss's comp to the remote server..and that is working fine..but it is not accepting any new connections...
If you have access to the remote machine only via ssh, you will have to inform the DC or the network admins to work it out and set the connection up for you.
If you have access to the remote machine only via ssh, you will have to inform the DC or the network admins to work it out and set the connection up for you.
Thanks..
Vimal had been so easy, I wouldve never asked in the forum...sshd is unning on the remote machine...
Hi there is a machine RHEL4 which is controlled by ssh. It is remote so can onle be managed by the administrators down here though shell. But after installing an rpm tripwire package I have lost shell access..When I try to connect, it gives me the following error
# ssh 172.17.1.197
ssh: connect to host 172.17.1.197 port 22: Connection refused
Its an production server so its very important to have the ssh access back...How can I get back the access?
Please adivse..Its urgent..
Thank you
Danish
Hi dsids,
From your posting above you have said that you had had lost access to the machine via ssh. And from the post it seems that you can only access the machine through SSH. I didn't read your second post, since i opened the page and went for some urgent work and so didnt see the second post come in. So I didn't know about a terminal that is opened from your boss's computer and its running fine. If such a case doesn't exist, then how could you establish a ssh connection with the server? If you have VNC or something like that you could do it ofcourse. So dont think i just saw it simply.....
If you can access the machine via your boss' machine, just check the settings in the tripwire configuration file. Tripwire comes with a tight configuration by default. Wish you good luck....
Well, the connection with the server was established before installing tripwire. After the installation of tripwire no new connections can be established..My boss even tried to
#ssh localhost
on the remote server but it gave the error..connection refused..
Yes we are checking the tripre cfg file, but BTW I was wondering
would SELinux on the remote RHEL4 server have anything to do with this?
and it shows no information about port 22, only open ports are mentioned, so Im confused now because a terminal to the remote server
is open but nmap shows no information of port 22...
billymayday....I downloaded the same tripwire rpm pn my system and am trying to go through the cfg file
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.