LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-04-2011, 05:15 PM   #1
XDaniel
LQ Newbie
 
Registered: Mar 2011
Posts: 1

Rep: Reputation: 0
SSH connection refused port 22


I get a connection refused error whenever I attempt to connect to a remote ssh server, I tried the test at http://ssh.icannotconnect.com and it says outbound ssh port 22 is not being blocked. I'm wondering what else could be the problem.
 
Old 03-05-2011, 09:55 AM   #2
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
Try logging on with "ssh -vv <user@remote-host>". That will post more debug information. Post the results.

Check the connection with the telnet client. For example:
Code:
telnet qosmio 22
Trying 192.168.1.100...
Connected to qosmio.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.4

Protocol mismatch.
Connection closed by foreign host.
This test will indicate whether the ssh port is open on the remote server.
 
Old 03-06-2011, 10:12 PM   #3
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 361Reputation: 361Reputation: 361Reputation: 361
I'm not sure I follow here.

Are you saying that you are unable to connect to any server over port 22, or is there a specific server you are unable to log into?
 
Old 03-06-2011, 10:53 PM   #4
Fabio Paolini
Member
 
Registered: Dec 2008
Location: Brazil
Distribution: Slackware 12 Debian 5
Posts: 52

Rep: Reputation: 17
Are you sure the ssh server are installed and started?
Do you get access to this server from some other computer?
Try to post the log error, here.
 
  


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 tunnel on port 22 connection refused ashamanmiller DamnSmallLinux 2 12-10-2010 08:54 AM
ssh:connect to host restart port 22: Connection refused myubuntu Linux - Software 20 02-22-2010 11:32 PM
ssh: connection refused, port 22 Roko Linux - Networking 5 12-01-2008 05:12 AM
ssh connection refused - trying to set up ssh server at home openSauce Linux - Server 10 10-18-2007 04:38 PM
SSH port...Connection....refused?? Miyamoto Mandriva 6 08-26-2003 04:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:00 PM.

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