Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22nd June 2012, 10:27 PM
jcf20010 Offline
Registered User
 
Join Date: Aug 2011
Posts: 23
linuxfirefox
ssh connection refused port 22

I have a MacBook and a Fedora 15 laptop on a wired LAN.

I can sucessfully ssh into the Fedora 15 system from the Mac but when try to ssh into the Mac from the Fedora 15 system I get the following error:

ssh: connect to host 192.168.X.XX port 22: Connection refused

Why would I be getting the error in one direction and not the other?

And yes the sshd service is running see below:

[jack@daffy-duck ~]$ ps aux | grep -i ssh
root 1052 0.0 0.0 9420 964 ? Ss 12:55 0:00 /usr/sbin/sshd
jack 3693 0.0 0.0 4444 768 pts/0 S+ 17:23 0:00 grep --color=auto -i ssh
Reply With Quote
  #2  
Old 22nd June 2012, 11:08 PM
weitjong's Avatar
weitjong Online
Registered User
 
Join Date: Oct 2006
Location: Singapore, 新加坡
Posts: 737
linuxfirefox
Re: ssh connection refused port 22

Your Mac may be configured to block the incoming SSH traffic. Have you configured the firewall setting correctly there? Go to Spotlight, type "firewall" and choose the "Security and Privacy" application. In the "Firewall" tab, choose the option "Automatically allow signed software to receive incoming connections". SSH should be one of the allowed by default, I think.

HTH.
__________________
YaoWT - Leave no window unbroken ^_^
Reply With Quote
  #3  
Old 22nd June 2012, 11:37 PM
jcf20010 Offline
Registered User
 
Join Date: Aug 2011
Posts: 23
macosfirefox
Re: ssh connection refused port 22

Quote:
Originally Posted by weitjong View Post
Your Mac may be configured to block the incoming SSH traffic. Have you configured the firewall setting correctly there? Go to Spotlight, type "firewall" and choose the "Security and Privacy" application. In the "Firewall" tab, choose the option "Automatically allow signed software to receive incoming connections". SSH should be one of the allowed by default, I think.

HTH.
When I go there the "Automatically allow signed software to receive incoming connections" is checked and SSH is not in the window just above that check box. I tried to add SSH but ssh is in /usr/bin but when I select the + button to add something I cannot navigate to /usr/bin.

Is there another way of selecting SSH?
Reply With Quote
  #4  
Old 23rd June 2012, 07:09 AM
weitjong's Avatar
weitjong Online
Registered User
 
Join Date: Oct 2006
Location: Singapore, 新加坡
Posts: 737
macosfirefox
Re: ssh connection refused port 22

How did you enable the SSHD service in Mac? Are you using MacPort or Homebrew to install the SSHD service? I am using the one provided by Mac OS X itself. Therefore, I think it is automatically allowed as it is a signed software.

Go to Spotlight, type "ssh" and choose "Sharing" then enable the "Remote Login" option. Yes, I know it is not particularly intuitive for most of us here.
__________________
YaoWT - Leave no window unbroken ^_^
Reply With Quote
  #5  
Old 23rd June 2012, 09:13 PM
jcf20010 Offline
Registered User
 
Join Date: Aug 2011
Posts: 23
macosfirefox
Re: ssh connection refused port 22

Quote:
Originally Posted by weitjong View Post
How did you enable the SSHD service in Mac? Are you using MacPort or Homebrew to install the SSHD service? I am using the one provided by Mac OS X itself. Therefore, I think it is automatically allowed as it is a signed software.

Go to Spotlight, type "ssh" and choose "Sharing" then enable the "Remote Login" option. Yes, I know it is not particularly intuitive for most of us here.
I have the one provided by the OS too.
I tried your suggestion and that did the trick.
Thanks....
Reply With Quote
Reply

Tags
connection, port, refused, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Port 22: Connection refused!? zbormanchino Servers & Networking 10 6th February 2013 10:04 PM
Fedora ssh port 22 refused andres29 Using Fedora 2 16th February 2012 06:41 AM
SSH error: port 22 connection refused snehal.lamture Linux Chat 1 22nd April 2009 07:44 AM


Current GMT-time: 11:41 (Thursday, 23-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat