Welcome to Soft32 Forums!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SSH to port 22 over LAN: "Connection refused"

 
   Soft32 Home -> Mac -> Comm RSS
Next:  Corrupt Database  
Author Message
Fester Bestertester

External


Since: Aug 09, 2009
Posts: 3



(Msg. 1) Posted: Sun Aug 09, 2009 4:14 pm
Post subject: SSH to port 22 over LAN: "Connection refused"
Archived from groups: comp>sys>mac>comm, others (more info?)

The router (U-Verse 3800HGVB) should allow SSH connections within the LAN,
correct?

I'm trying to connect between 2 Macs (from a Leopard system to a Tiger
system) via SSH but get "Connection refused".

I'm using port 22.

Is some setup required on the remote Mac? Or another port?

A good web page for learning "SSH basics"?

Thanks.
Back to top
Login to vote
Tom Stiller

External


Since: Nov 03, 2008
Posts: 186



(Msg. 2) Posted: Sun Aug 09, 2009 9:20 pm
Post subject: Re: SSH to port 22 over LAN: "Connection refused" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<0001HW.C6A4A65900130E1CB08A39AF RemoveThis @news.eternal-september.org>,
Fester Bestertester <fbt RemoveThis @fbt.net> wrote:

> The router (U-Verse 3800HGVB) should allow SSH connections within the LAN,
> correct?
>
> I'm trying to connect between 2 Macs (from a Leopard system to a Tiger
> system) via SSH but get "Connection refused".
>
> I'm using port 22.
>
> Is some setup required on the remote Mac? Or another port?
Did you enable "Remote Login" on the remote Mac?
Try 1 or 2 "-v" switches on the ssh command line to obtain connection
progress information on the connection [attempt].

> A good web page for learning "SSH basics"?

The man page for ssh is pretty detailed.

--
Tom Stiller

PGP fingerprint = 5108 DDB2 9761 EDE5 E7E3 7BDA 71ED 6496 99C0 C7CF
Back to top
Login to vote
David Empson

External


Since: Jul 18, 2004
Posts: 1046



(Msg. 3) Posted: Sun Aug 09, 2009 9:20 pm
Post subject: Re: SSH to port 22 over LAN: "Connection refused" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Fester Bestertester <fbt RemoveThis @fbt.net> wrote:

> The router (U-Verse 3800HGVB) should allow SSH connections within the LAN,
> correct?

If you are connecting between two computers on the same LAN, the router
is not involved.

> I'm trying to connect between 2 Macs (from a Leopard system to a Tiger
> system) via SSH but get "Connection refused".
>
> I'm using port 22.
>
> Is some setup required on the remote Mac? Or another port?

Check the obvious: on the Mac you are trying to connect TO, you must
have "Remote Login" enabled in System Preferences > Sharing.

It is also possible that the firewalll on the destination machine might
be interfering with the connection. If you are running any third-party
firewall software, disable it. The built-in firewall (in System
Preferences > Sharing > Firewall on 10.4.11) should automatically allow
incoming connections for anything you have enabled under the Services
tab.

> A good web page for learning "SSH basics"?

Pass. Google for it?

--
David Empson
dempson RemoveThis @actrix.gen.nz
Back to top
Login to vote
Bob Harris

External


Since: Jun 11, 2005
Posts: 1256



(Msg. 4) Posted: Tue Aug 11, 2009 9:20 pm
Post subject: Re: SSH to port 22 over LAN: "Connection refused" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article
<0001HW.C6A4A65900130E1CB08A39AF.DeleteThis@news.eternal-september.org>,
Fester Bestertester <fbt.DeleteThis@fbt.net> wrote:

> The router (U-Verse 3800HGVB) should allow SSH connections within the LAN,
> correct?
>
> I'm trying to connect between 2 Macs (from a Leopard system to a Tiger
> system) via SSH but get "Connection refused".
>
> I'm using port 22.
>
> Is some setup required on the remote Mac? Or another port?
>
> A good web page for learning "SSH basics"?
>
> Thanks.

As has been mentioned, did you enable System Preferences ->
Sharing -> Remote Login?

Do you have your destination Mac's Firewall enabled? If so, try
disabling it during your initial tests.

start with

ssh -v -v -v username.DeleteThis@addr.of.other.mac

If you have another system where ssh does work, repeat the
ssh -v -v -v
to that system and compare the output between the working and the
failing ssh connections.

If you still fail to login, read the

man ssh

man page and look for "permission", then make sure that all the
mentioned directories and files have the correct permissions. If
ssh finds the security on various files too weak, it will not make
a connection.

Bob Harris
Back to top
Login to vote
VAXman-

External


Since: Jan 29, 2005
Posts: 150



(Msg. 5) Posted: Wed Aug 12, 2009 7:20 am
Post subject: Re: SSH to port 22 over LAN: "Connection refused" [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

In article <nospam.News.Bob-28D043.20384211082009.TakeThisOut@news.verizon.net>, Bob Harris <nospam.News.Bob.TakeThisOut@remove.Smith-Harris.us> writes:
>In article
><0001HW.C6A4A65900130E1CB08A39AF.TakeThisOut@news.eternal-september.org>,
> Fester Bestertester <fbt.TakeThisOut@fbt.net> wrote:
>
>> The router (U-Verse 3800HGVB) should allow SSH connections within the LAN,
>> correct?
>>
>> I'm trying to connect between 2 Macs (from a Leopard system to a Tiger
>> system) via SSH but get "Connection refused".
>>
>> I'm using port 22.
>>
>> Is some setup required on the remote Mac? Or another port?
>>
>> A good web page for learning "SSH basics"?
>>
>> Thanks.
>
>As has been mentioned, did you enable System Preferences ->
>Sharing -> Remote Login?
>
>Do you have your destination Mac's Firewall enabled? If so, try
>disabling it during your initial tests.
>
>start with
>
> ssh -v -v -v username.TakeThisOut@addr.of.other.mac
>
>If you have another system where ssh does work, repeat the
> ssh -v -v -v
>to that system and compare the output between the working and the
>failing ssh connections.
>
>If you still fail to login, read the
>
> man ssh
>
>man page and look for "permission", then make sure that all the
>mentioned directories and files have the correct permissions. If
>ssh finds the security on various files too weak, it will not make
>a connection.
>
> Bob Harris

The first thing he might wish to do is to see if he even gets to
the remote system's ssh server.

$ telnet remote-system-name-or-IP 22
Trying remote-system-name-or-IP...
Connected to remote-system-name-or-IP.
Escape character is '^]'.
SSH-2.0-OpenSSH_5.1
<============ press carriage return here...
Protocol mismatch.
Connection closed by foreign host.
$

If you don't get this far, look into whether or not the ssh service
is running on the remote or for a firewall block path to the remote
system.
--
VAXman- A Bored Certified VMS Kernel Mode Hacker VAXman(at)TMESIS(dot)ORG

http://www.quirkfactory.com/popart/asskey/eqn2.png

"Well my son, life is like a beanstalk, isn't it?"
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Local connection and internet connection - I have a cable modem connected to a D-Link 704 routing to a PC and two Macs. The two Macs are: and older Power..

any https connection gets "connection refused" - This problem just started this morning. Friday there was no issue but no anytime the connection goes from http to https...

Ethernet Port Craves Connection? - I pulled the internal modem from my 6500 running 7.6.1 and replaced it with a Comm II Ethernet card. I've gotten file....

ad-ink.comdont buy anything from them. Refused to refund m.. - www.ad-ink.com dont buy anything from them. Refused to refund money $278 Company Information AD-INK CORPORATION 1921 N...

Port to xcode? - Hello, When I first try to import my project to xcode, I get errors because TARGET_API_MAC_OSX isn't defined. Is..

serial port - hi, where can I find information on programming directly against a serial port on a mac? thanks Ole Andre Karlson..
       Soft32 Home -> Mac -> Comm All times are: Pacific Time (US & Canada) (change)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum

Categories:
 Windows
 Linux
  Mac
 PDA


[ Contact us | Terms of Service/Privacy Policy ]