LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 03-24-2013, 11:35 PM   #1
LQ Newbie
Registered: Aug 2012
Location: Wild wild Midwest
Distribution: Centos6.3, JoliOS
Posts: 12

Rep: Reputation: Disabled
SSH connection failure in Centos 6.3

I have Centos 6.3 installed as a guest OS on a windows 8 machine using Virtualbox 4.2.8. I've configured my virtual eth0 adapter to use a static IP. sshd is on, listening to port 22 and runs at startup, and iptables is allowing port 22 traffic.

The problem is that I'm only randomly able to ssh to my guest os using putty, and at other times it'll block the connection with any of the three warnings:

"Network Error: Software caused connection abort
Network Error: Connection Refused
Network Error: Connection Reset by Peer"

I commonly get the first one, but the 2nd and 3rd seem to randomly occur. I have putty set to send empty packets every 5 seconds to keep the signal alive, but when I am able to connect, it'll still close the connection and usally give me the first warning listed...

I'm completely stumped. I've checked the secure, and network logs, but unfortunately I have no idea what they mean.. I haven't tried connecting with another client yet, but will do that next. I'll try disabling selinux as well, but I'm pretty certain that it's not a firewall issue. Any other guesses on what else to try?
Old 03-25-2013, 01:26 PM   #2
Senior Member
Registered: May 2009
Location: WV, USA
Distribution: Slackware, Ubuntu, Amazon Linux
Posts: 1,829
Blog Entries: 21

Rep: Reputation: 118Reputation: 118
This has the familiar ring of 2 hosts with the same IP address. If you have a ping tool that will show the MAC address of the answering host, they may confirm or deny if this problem is happening. Do you have other computers on your LAN? If so, disconnect from the LAN, and using only IP addresses, see if you have the same issue. Or try a different IP address.


centos, selinux, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] Issue with ssh connection between Centos host OS and Ubuntu 10.04 Running on Virtual sriramdas Linux - Virtualization and Cloud 2 01-16-2013 10:00 PM
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 07:15 AM
ssh connection keep disconected , how to find way? in CentOs vmware umen Linux - Networking 3 05-03-2011 03:27 PM
ssh connection hanging centos rallymatte Linux - Networking 2 12-14-2009 05:35 PM
LXer: ssh-xfer: Quickly grabbing files over an existing SSH connection LXer Syndicated Linux News 0 08-08-2008 04:11 PM

All times are GMT -5. The time now is 07:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration