Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 02-11-2013, 03:07 AM   #1
LQ Newbie
Registered: Dec 2012
Posts: 1

Rep: Reputation: Disabled
ssh connection issue

I am trying to connect to a host using sftp host id and I keep
getting the message:
ssh: connect to host port 22: Connection refused
Couldn't read packet: Connection reset by peer

Please let me know what configuration I need to do to fix this

Old 02-11-2013, 03:28 AM   #2
Registered: Nov 2011
Location: Cairo, Egypt
Distribution: CentOS, RHEL, Fedora
Posts: 300
Blog Entries: 2

Rep: Reputation: 51
Are you trying to connect it in the LAN?
because if you are trying to connect static IP outside LAN, it needs extra settings for the static IP server.
The port 22 should be opened on router through which you are being connected outside LAN.

check your firewall setting of the server. Is port 22 opened there?
Can you connect any other system of same LAN using ssh?
Have you installed client and server ssh both on the server?

Last edited by fortran; 02-11-2013 at 03:41 AM.
Old 02-11-2013, 04:03 AM   #3
LQ Newbie
Registered: Dec 2011
Location: Syd
Distribution: Centos, Red hat
Posts: 25

Rep: Reputation: Disabled
Test you connection using telnet HostIP 22
If you cannot connect probably is your firewall block it.
but if you can connect probably is you user name problem...


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 09:00 PM
ssh: connection to host port: 22: Connection timed out lost connection cucolin@ Linux - Server 4 11-22-2011 06:15 AM
SSH Connection Issue techM Solaris / OpenSolaris 2 07-02-2010 11:12 AM
Webmin SSH connection issue KunoNoOni Linux - Server 4 12-31-2007 07:34 PM
Psftp (SSH) Client connection issue, Pls Help, TQ.. garychwm Linux - Networking 2 10-09-2005 02:02 AM > Forums > Linux Forums > Linux - Newbie

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