LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-08-2010, 08:45 AM   #1
ashamanmiller
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Rep: Reputation: 0
Port 22 connection refused- Damn Small Linux


I have been trying to use virtual PC 2007 with DSL and putty in order to create an ssh conenction so I can use remote desktop through my works firewall to (obviously) connect remotely successfully. I have already changed the port in regedit in windows xp, but when I boot virtual pc and start my damn small linux ISO, then log into root with sudo su in the terminal and run the command "ssh dfm@(insert IP address here)" terminal gives the response "connection to port 22 failed, connection refused." I have enabled port 22 as an exception in windows firewall, but to no apparent success. Any help would be greatly appreciated, as I am a noob to linux and ssh at that.
Thanks!
 
Old 12-08-2010, 09:07 AM   #2
thesnow
Member
 
Registered: Nov 2010
Location: Minneapolis, MN
Distribution: Ubuntu, Red Hat, Mint
Posts: 172

Rep: Reputation: 56
Can you please say a little more about your setup? I'm confused which computers are doing what from where.
 
Old 12-08-2010, 09:12 AM   #3
Touch
LQ Newbie
 
Registered: Oct 2009
Distribution: RHEL & Fedora
Posts: 25

Rep: Reputation: 0
Try using putty from you windows computer to connect to the server. This will let you know if the server is accepting connections. Also you don't need to open port 22 on your windows computer because this isn't the port the outgoing ssh connection will use. Also what type of networking are you using for VPC....bridged or nat?
 
Old 12-08-2010, 12:39 PM   #4
Skaperen
Senior Member
 
Registered: May 2009
Location: center of singularity
Distribution: Xubuntu, Ubuntu, Slackware, Amazon Linux, OpenBSD, LFS (on Sparc_32 and i386)
Posts: 2,684
Blog Entries: 31

Rep: Reputation: 176Reputation: 176
Quote:
Originally Posted by Touch View Post
Try using putty from you windows computer to connect to the server. This will let you know if the server is accepting connections. Also you don't need to open port 22 on your windows computer because this isn't the port the outgoing ssh connection will use. Also what type of networking are you using for VPC....bridged or nat?
If he's trying to come IN to the VPC from outside Windows, port 22 would need to be open, probably in both bridge and NAT cases.
 
Old 12-10-2010, 10:20 AM   #5
ashamanmiller
LQ Newbie
 
Registered: Dec 2010
Posts: 23

Original Poster
Rep: Reputation: 0
I realized what has happened. I needed to make an exception to port 22 on windows norton 360 (completely forgot that it has a built in firewall. Piece of...). However when I type in ssh dfm@(insert IP address here) it now goes to a blank line instead of stating the error with the port. Having never used SSH before, what do I do now?
 
Old 12-11-2010, 06:44 AM   #6
brownflamigo1
Member
 
Registered: Jun 2007
Distribution: Ubuntu
Posts: 90

Rep: Reputation: 15
Can you please post the output of ssh -v <...>?
 
Old 01-05-2011, 08:57 AM   #7
pgscannell
LQ Newbie
 
Registered: Jan 2011
Posts: 2

Rep: Reputation: 0
I'm getting Connection refused errors on Port 22 as well. My setup is a little different, though. I'm connecting to a portable divice thas has an embedded Linux OS inside.

I've connected the ethernet cable; I know the IP address; I am able to ping that address in a DOS command window; but can't connect to it via PUTTY. I get the Connection refused popup.

I can use PUTTY to connect to my own VM implementation of Linux UBUNTU with no problem so I presume that PUTTY is OK.

Anyone have an idea about this? It seems that there is a common problem that seems to rear its ugly head under different scenarios.

Thanks in advance,
Paul
 
  


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
port 22 connection refused satimis Linux - Networking 4 09-18-2010 09:55 AM
Is Damn Small Linux connection any better. ex-para Linux - Newbie 3 01-25-2010 07:43 PM
Open a certain port in Damn Small Linux captain_juno Linux - Networking 5 12-11-2008 05:03 PM
Connection refused on TCP port dabeeler Linux - Enterprise 5 04-29-2008 02:01 PM
port 22: connection refused lkalman Linux - Networking 13 06-17-2003 07:55 PM

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

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