LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 06-27-2012, 11:11 PM   #1
juniglee
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Rep: Reputation: Disabled
Fedora 16 SSH Problems


Hi all,

I do not know if this is a common problem. I have a virtual machine hosted on Hyper-V that has Fedora 16 installed on it.

After a fresh reboot, I am able to SSH/FTP into this server. However, after about say 3 - 5 hours, the SSH consistently times out. Same goes for FTP as well. Then I would have no choice but to reboot the virtual machine. This is just inefficient.

Currently I have a scheduled reboot for the server to happen during off-hours, but it's not a permanent enough fix for if the server goes down during work hours. Is there any way for me to diagnose what is wrong, and how to fix it?

Thank you for your time and attention.
 
Old 06-28-2012, 12:50 AM   #2
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
hi, something not clear here
// after about say 3 - 5 hours, the SSH consistently times out. //
is this mean
1) after 3 or 5 hours you cannot make ssh to the machine
or
2) after 3 or 5 hours your hanging ssh connection disconnect you?


if no 1 . is your machine is dead ?
if no 2 - there is a "keepalive" function in ssh config file you need to enable it
 
Old 06-28-2012, 02:12 AM   #3
juniglee
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi routers,

After 3 to 5 hours, nobody can SSH into the machine anymore. I don't leave SSH connections running for 3 - 5 hours straight (maybe I could try?)

I can access the machine via Hyper-V console, and it works fine (ie. listing files, using vim), and seems pretty responsive. Trying to SSH into that server then however, always causes timeouts (ie. via PuTTy). Same for FTP. Websites hosted on this server become inaccessible as well.

Thanks.
 
Old 06-28-2012, 03:30 AM   #4
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
ok my suggestion, once you can log in,
try update all the software and kernel, also dont forget to check grub.conf
then reboot the server, once up again the check the running kernel make sure its latest,
also can look at the log file

if happen again, i think you better consult the server support, could be hardware issue eg NIC
because normaly if company sell vm, there is more than one NIC is used, then possible
the NIC use for your vm got problem

if in doubt why can login to Hyper-V but not vm, its because its managed via host system
use diffrent NIC

possibility is there
 
Old 07-01-2012, 06:43 PM   #5
juniglee
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi routers

Sorry was away for the weekend. What should I look for specifically in grub.conf?

How do I update the softwares and kernels? If possible I do not want to touch stuff that does not need to be touched.

Are there any other ways I can test for the hardware problems?

I'll need a little clarification, I don't quite understand what I should be doing at this point.

Thanks.
 
Old 07-01-2012, 08:46 PM   #6
juniglee
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
I also wonder if the problem might be because I didn't install Linux Integration Services?

It might be responsible for faulty VM connections.
 
Old 07-01-2012, 10:51 PM   #7
routers
Member
 
Registered: Aug 2005
Location: Malaysia - KULMY / CNXTH
Distribution: Slackware, Fedora, FreeBSD, Sun O/S 5.10, CentOS
Posts: 787
Blog Entries: 6

Rep: Reputation: 75
Quote:
Originally Posted by juniglee View Post
Hi routers

Sorry was away for the weekend. What should I look for specifically in grub.conf?

How do I update the softwares and kernels? If possible I do not want to touch stuff that does not need to be touched.

Are there any other ways I can test for the hardware problems?

I'll need a little clarification, I don't quite understand what I should be doing at this point.

Thanks.
updating software and kernel is compulsory , without that you will face security issue
but for me fedora is not for production in mind,.

to update the system just execute cmd below

to check invidual file for update
Code:
# yum check-update
preproceed
Code:
# yum update
or
Code:
# yum update kernel*
once update you need to reboot
then login check with following command

Code:
uname -an
more will come, just you need to learn it

 
Old 07-09-2012, 08:45 PM   #8
juniglee
LQ Newbie
 
Registered: Jan 2012
Posts: 8

Original Poster
Rep: Reputation: Disabled
Hi sorry for the late reply.

I rebuilt a new VM, this time installing CentOS 6.2 as it is compatible with Linux Integration Services.

So far I have no problems - no more intermittent dying every day.

Thanks
 
  


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
ssh timing out after Fedora 13 to Fedora 14 upgrade RichyAD Fedora 7 05-21-2011 08:10 AM
Fedora 10/unable to ssh out from box to remote host (SSH within LAN ok) huskeypm Linux - Networking 3 04-14-2009 07:37 PM
SSH access problems: Can only allow users SSH access by adding to root group dhupke Slackware 10 12-21-2008 09:48 AM
SSH Between Fedora 7 and Openbsd 4.1 Peter_APIIT Linux - Server 2 12-17-2007 02:26 AM
Ssh - Fedora 7 melvinong Linux - Server 8 06-21-2007 02:26 AM

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

All times are GMT -5. The time now is 02:46 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