ssh connection

I am having trouble connecting TO machine A (FreeBSD 5.2.1) from machine B (Mac OS X) or machine C (WinXP with ssh client). I can connect FROM machine A to machine B and from machine C to machine B.
Machine A has no firewall.
I get the following error message:

Yes Master? ssh 192.168.0.5
ssh: connect to host 192.168.0.5 port 22: Permission denied

Grateful for your help.

pkalima
pkalimaAsked:
Who is Participating?
 
jdw_2004Connect With a Mentor Commented:
I looked on the Symantec website and the Norton Firewall product info contains this ominous statement:

To thwart malicious programs that may send data from your computer without your knowledge, you can now control outbound as well as inbound connections.

I suspect this means you'll need to make a change to the Norton Firewall config to enable this outbound connection.
0
 
jdw_2004Commented:
Assuming that this is from your Mac:

Yes Master? ssh 192.168.0.5
ssh: connect to host 192.168.0.5 port 22: Permission denied

Since the circumstances under which connect() can return that error are extremely narrowly defined, that error is probably coming from one of the preliminary calls, which sounds like a client side problem.

What Windows ssh client are you using and what error message does it give?

Are you using passwords to authenticate, or keys?
0
 
yuzhCommented:
The machine you want to connect to MUST has the secure shell server "sshd" runing (need to
install the secure shell server).

Since the M$ XP PC has only ssh client, there is no way the other boxes can ssh to the PC!
0
Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

 
pkalimaAuthor Commented:
To jdw:
I used SSH Shell from www.ssh.com, and using password to authenticate. Incidentally, I re-installed freebsd 5.2.1 and was only able to connect using the windows laptop with SSH shell client. However, still unable to connect from mac os x, gives the following error:

Yes Master? ssh -vvv 192.168.0.5
OpenSSH_3.6.1p1+CAN-2004-0175, SSH protocols 1.5/2.0, OpenSSL 0x0090702f
debug1: Reading configuration data /etc/ssh_config
debug1: Rhosts Authentication disabled, originating port will not be trusted.
debug2: ssh_connect: needpriv 0
debug1: Connecting to 192.168.0.5 [192.168.0.5] port 22.
debug1: connect to address 192.168.0.5 port 22: Permission denied
ssh: connect to host 192.168.0.5 port 22: Permission denied
Yes Master?

To yuzh:
Yes, the machine I am trying to connect to is running sshd - confirmed by looking at output from ps -aux.
0
 
jdw_2004Commented:
Just to check all bases, can you ping the freebsd box from the Mac?
0
 
yuzhCommented:
Do you have fiirwall, IP filter etc to block ssh ? Are they runing the same version of ssh?
0
 
pkalimaAuthor Commented:
Yes, can ping the FreeBSD box from mac. The mac has a norton's firewall. No firewall on FreeBSD box. I have not yet touched firewalls or IP filters. In fact I put "firewall_enable=yes firewall_type=open" in /etc/rc.conf - still was not able to connect from mac. So have commented out these.
It's odd that I cannot login from mac but can from ssh client on windows.

Incidentally, I get the same message when trying to connect to FreeBSD box swtiched off!! Does this suggest that the fault may be with, in this case, initiating ssh from my mac?
0
 
jdw_2004Commented:
Yes, the problem is definitely client-side.  I suspect you will find you cannot ssh anywhere.

Do you have the same problem if you are su'd to root on the Mac when you run ssh?

You could try ssh'ing to shell.sf.net if you want a "control" ssh server.
0
 
pkalimaAuthor Commented:
Many thanks!!
I went and modified Norton's firewall to allow ssh outbound connection to specific host, and it worked!!
0
All Courses

From novice to tech pro — start learning today.