LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 08-23-2012, 01:03 PM   #1
acdf
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Rep: Reputation: Disabled
I can't access remotely to a linux server


Hi everyone,
Energy was interrupted after a blackout and since then I can't connect remotely to a server. (CentOS 6).
The ssh service is running, as I have physically access.
I don't know to much about Linux, what different things can be the cause of my problem?
Thanks in advance
 
Old 08-23-2012, 01:04 PM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fedora-35
Posts: 5,313

Rep: Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918Reputation: 918
possibly the router was reset and is no longer passing the ssh connection to the correct server ?

are you able to ssh localhost ?
 
Old 08-23-2012, 01:16 PM   #3
kaldrouby
LQ Newbie
 
Registered: May 2012
Distribution: RHEL 5
Posts: 6

Rep: Reputation: Disabled
IP changed ?

Quote:
Originally Posted by acdf View Post
Hi everyone,
Energy was interrupted after a blackout and since then I can't connect remotely to a server. (CentOS 6).
The ssh service is running, as I have physically access.
I don't know to much about Linux, what different things can be the cause of my problem?
Thanks in advance
First check your IP (ifconfig) and make sure that you can ping it . then try to ssh again if you get positive respond.
 
Old 08-23-2012, 02:09 PM   #4
LinuxLover!
LQ Newbie
 
Registered: Aug 2012
Location: Richmond, VA
Distribution: CentOS 6/Red Hat ES5.5
Posts: 8

Rep: Reputation: Disabled
I would recommend making sure your battery backups are working so that future black outs do not cause this issue.

1. Verify that ipaddress of your box using ifconfig
2. Make sure the sshd is running by typing
Code:
ps aux | grep sshd
If you get a /usr/sbin/sshd response, it is. If not, start the service
Code:
service sshd start
3. If starting the sshd service, verify the service is running by using the ps command from step 2.
4. Check your iptables to make sure there is no weird REJECT policy.
5. If you are accessing the server on a LAN, there should not be any routers interfering. If you are on a WAN, you will need to check the router config.

We use Red Hat/CentOS so adjust the commands to suit your distro.
 
Old 08-24-2012, 02:55 AM   #5
acdf
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks a lot.
I'm at work now and I've been able to try what all of you said. [LIST][*]Definitely, SSH is running..[*]The IP is the same as before[*]Selinux is disabled[*]I haven't been able to know about IPTABLES as I'm not root, the administrator is on holydays, can you imagine?[*]There's supposed to be a 50000-euro SAI, but it's clear it didn't work..

Thanks again, I'm going to try to contact to the administrator...it's a desaster..
 
Old 08-24-2012, 03:35 AM   #6
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
I believe you can check whether your machine is listening to port 22 or not as user also

Code:
#netstat -ntl | grep 22
 
Old 08-24-2012, 03:41 AM   #7
acdf
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thanks deep27ak.
Yes I did, and it's listening..
 
Old 08-24-2012, 03:44 AM   #8
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
what is the error message you get when you try to connect client using ssh or if possible try using putty if you have any windows client machine
 
Old 08-24-2012, 03:58 AM   #9
acdf
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
Network error: Connection time out
 
Old 08-24-2012, 04:08 AM   #10
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
That means its definitely firewall issue

have you checked the firewall in your local client machine and make sure that if you have disabled selinux then you have to restart your machine for the changes to take affect.
 
Old 08-24-2012, 04:15 AM   #11
acdf
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I haven't disabled selinux, it was disabled.(getenforce-->Disabled)
No firewall in Windows machine. It seems it's server firewall,right?
 
Old 08-24-2012, 04:21 AM   #12
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
Are you able to ping the server IP?

As it happens that if the ONBOOT parameter is set to no in the config file the Ethernet card does not comes up after restart
 
Old 08-24-2012, 04:46 AM   #13
acdf
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
I'm not able to ping the server IP
I've checked the ONBOOT parameter= YES
 
Old 08-24-2012, 04:54 AM   #14
deep27ak
Senior Member
 
Registered: Aug 2011
Location: Bangalore, India
Distribution: RHEL 7.x, SLES 11 SP2/3/4
Posts: 1,195
Blog Entries: 4

Rep: Reputation: 221Reputation: 221Reputation: 221
use ifconfig and check if your server's ethernet card is up or not
 
Old 08-24-2012, 04:58 AM   #15
acdf
LQ Newbie
 
Registered: Aug 2012
Posts: 7

Original Poster
Rep: Reputation: Disabled
It's up
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can I remotely access CVS server from client on LINUX? Muhammad Idreees Linux - Newbie 4 08-09-2012 12:17 PM
ubuntu LAMP server, can't access site remotely, locally works by local ip and wan weylin Linux - Newbie 8 04-25-2012 06:37 AM
Can't edit files while using ssh to remotely access linux server from a Windows comp soundersfc Linux - Newbie 3 10-11-2010 01:48 PM
connect and access files remotely to a samba server over the internet tsh3po Linux - Newbie 7 06-01-2010 06:40 AM
Access Denied when I try to login remotely to my SSH server running on Cygwin. andrew_cz General 0 05-02-2006 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 09:56 AM.

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