nixCraft Linux / UNIX / Shell Scripting Forum

nixCraft

Linux / UNIX Tech Support Forum

CentOS network restart remote kicks me out

This is a discussion on CentOS network restart remote kicks me out within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; Hey all, I never had this issue before. But now whenever I run Code: service network restart than system kicks ...


Register free or login to your account to remove all advertisements.

Go Back   nixCraft Linux / UNIX / Shell Scripting Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

Thread Tools Display Modes
  #1 (permalink)  
Old 12th March 2010, 03:41 PM
sweta's Avatar
Contributors
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 213
Thanks: 18
Thanked 11 Times in 11 Posts
Rep Power: 8
sweta has a spectacular aura aboutsweta has a spectacular aura aboutsweta has a spectacular aura about
Default CentOS network restart remote kicks me out

Hey all,

I never had this issue before. But now whenever I run
Code:
service network restart
than system kicks me out of ssh session. I need to relogin again. Does anyone know why it kicks me out? This is only problem with one of our java server and all other servers are working fine.
__________________
Reply With Quote
  #2 (permalink)  
Old 12th March 2010, 11:43 PM
Junior Member
 
Join Date: Mar 2010
OS: Fedora 11 / Ubuntu
Posts: 23
Thanks: 3
Thanked 0 Times in 0 Posts
Rep Power: 0
iSpaZZZ^ is on a distinguished road
Default

I guess this is a remote SSH session?
Reply With Quote
  #3 (permalink)  
Old 13th March 2010, 11:15 AM
chiku's Avatar
Member
 
Join Date: Feb 2005
OS: Fedora
Posts: 86
Thanks: 10
Thanked 1 Time in 1 Post
Rep Power: 6
chiku is on a distinguished road
Default

i just tested it under centos and it did not kicked me out though remote ssh seems like hanged for a sec but than it was resumed again.
__________________
There's no place like 127.0.0.1
Reply With Quote
  #4 (permalink)  
Old 13th March 2010, 11:19 AM
nixcraft's Avatar
Never say die
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash, Perl, Python
Posts: 3,195
Thanks: 13
Thanked 394 Times in 292 Posts
Rep Power: 10
nixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond repute
Default

No ssh never kicks out exiting user when you restart ssh session.

Another possibility is firewall like iptables with various states is not configured properly or some how hooked with ssh service hooks via custom script or something like that. For testing this just disable iptables
Code:
service iptables stop && service ip6tables stop
And try restarting ssh and see if it kicks out. Also, check out /var/log/secure and see what it says.
__________________
Vivek Gite
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Do you run a Linux? Let's face it, you need help!
Cricket & IPL News Blog
Reply With Quote
  #5 (permalink)  
Old 13th March 2010, 11:46 AM
Junior Member
 
Join Date: Mar 2010
Location: Europe / Czech rep.
OS: CenOS
Posts: 17
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
helikaon is on a distinguished road
Default

what's your iptables settings considering ssh access? can you post it?
Reply With Quote
  #6 (permalink)  
Old 13th March 2010, 12:01 PM
nixcraft's Avatar
Never say die
 
Join Date: Jan 2005
Location: BIOS
OS: RHEL
Scripting language: Bash, Perl, Python
Posts: 3,195
Thanks: 13
Thanked 394 Times in 292 Posts
Rep Power: 10
nixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond reputenixcraft has a reputation beyond repute
Default

Are you asking me to post or OP?
__________________
Vivek Gite
Be proud RHEL user, and let the world know about your enterprise choices! Join RedHat user group.
Do you run a Linux? Let's face it, you need help!
Cricket & IPL News Blog
Reply With Quote
The Following User Says Thank You to nixcraft For This Useful Post:
sweta (5th May 2010)
  #7 (permalink)  
Old 13th March 2010, 12:08 PM
Junior Member
 
Join Date: Mar 2010
Location: Europe / Czech rep.
OS: CenOS
Posts: 17
Thanks: 0
Thanked 2 Times in 2 Posts
Rep Power: 0
helikaon is on a distinguished road
Default

Quote:
Originally Posted by sweta View Post
Hey all,

I never had this issue before. But now whenever I run
Code:
service network restart
than system kicks me out of ssh session. I need to relogin again. Does anyone know why it kicks me out? This is only problem with one of our java server and all other servers are working fine.
what's your iptables settings considering ssh access? can you post it?

Sorry for confusion
Reply With Quote
  #8 (permalink)  
Old 13th March 2010, 08:18 PM
kumarat9pm's Avatar
Senior Member
 
Join Date: Jun 2007
Location: Pune,MH,India
OS: RHEL(4/5),UBUNTU..
Scripting language: Bash,PHP,Perl(noob)
Posts: 621
Thanks: 30
Thanked 38 Times in 34 Posts
Rep Power: 8
kumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nicekumarat9pm is just really nice
Send a message via Yahoo to kumarat9pm Send a message via Skype™ to kumarat9pm
Default

Just want to share one tip..

why cant you use just reload once you change something..
most of the services supports reloads..
__________________
Thanks,
Surendra Kumar Anne
Linux: Fast, friendly, flexible and .... free!
Support Open source.
http://www.linuxnix.com
Reply With Quote
The Following User Says Thank You to kumarat9pm For This Useful Post:
sweta (5th May 2010)
  #9 (permalink)  
Old 14th March 2010, 10:50 AM
rockdalinux's Avatar
Is that all you got?
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 823
Thanks: 21
Thanked 37 Times in 32 Posts
Rep Power: 12
rockdalinux is a splendid one to beholdrockdalinux is a splendid one to beholdrockdalinux is a splendid one to beholdrockdalinux is a splendid one to beholdrockdalinux is a splendid one to beholdrockdalinux is a splendid one to behold
Default

Just case if you don't know how to get firewall settings type
Code:
iptables -L -n -v
Under CentOS /etc/sysconfig/iptables stores firewall settings. However, it is possible that you may be using custom shell script too.
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
  #10 (permalink)  
Old 5th May 2010, 05:35 PM
sweta's Avatar
Contributors
 
Join Date: Feb 2005
Location: New Delhi
OS: Suse, RHEL, Vista
Posts: 213
Thanks: 18
Thanked 11 Times in 11 Posts
Rep Power: 8
sweta has a spectacular aura aboutsweta has a spectacular aura aboutsweta has a spectacular aura about
Default

My problem is sorted out by reloading ssh.
Code:
/sbin/service sshd reload
I think there was some problem with iptables firewall rules and no one was able to sort it out so our manager installed hardware firewall for all servers.
__________________
Reply With Quote
Reply

Tags
linux, openssh, service network restart, ssh


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
restart the ssh service goku1 Linux software 2 30th March 2010 01:59 PM
Run remote X applications over network using ssh rockdalinux Getting started tutorials 6 27th March 2010 08:44 PM
can someone tell me what (/etc/init.d/network restart) does and a reason to do it? DWHS Linux software 9 19th March 2010 05:08 PM
restart mysql centos server chinalinix CentOS / RHEL / Fedora 1 10th March 2010 06:10 PM
Remote setup of LAMP server on CentOS 5 satimis Getting started tutorials 2 12th January 2008 10:52 AM


All times are GMT +5.5. The time now is 08:53 PM.


Powered by vBulletin® Version 3.8.6 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40