Problems SSH'ing into Mac via PuTTY

Trying SSH into OS X.4 Mac via PuTTY from Windows XP Laptop on local network. I've got Linksys WRT54G. I think I configured the Mac properly, i.e. selected "Remote Login" in Sharing. I think I've got PuTTY configured properly, i.e. 192.168.1.102 and port 22. Then when I select "Open" in PuTTY it receive the following message "Network Error: Connection Refused."

Is there something special I need to do in the Linksys Route or further configurations on the Mac I need to make?

Thanks for any details you can provide.

P.S. Sorry for posting in multiple locations. Was not sure about the best spot for this question.

Mac OS X (10.4.9)

Posted on Nov 17, 2007 3:42 PM

Reply
4 replies
Sort By: 

Nov 18, 2007 9:59 AM in response to JustADude

Some things you can check:

- does the firewall allow SSH connections and does it work if you turn the firewall off?
- check if you have the most recent version of PuTTY
- is it related to you're wireless and does it work if you connect the Mac with a network cable?
- if it works using cables, the look for posts in this forum about settings for Linksys routers to solve aiport issues in OS X 10.4.10 and trie if the settings help you.

Cheers,
Max
Reply

Nov 19, 2007 4:36 AM in response to maxit.nl

Thank you for your response.
I'll try to answer the hints and see what next steps I should take:
* does the firewall allow SSH connections and does it work if you turn the firewall off?
Answer: Assuming you mean fire wall on Linksys Router. I followed the suggestions on the following website to configure the Linksys Router:
http://portforward.com/english/routers/port_forwarding/Linksys/WRT54G/
It shows the firewall off.

* check if you have the most recent version of PuTTY
Answer: Downloaded PuTTY from the following site:
http://www.chiark.greenend.org.uk/~sgtatham/putty/

* is it related to you're wireless and does it work if you connect the Mac with a network cable?
Answer: After making the changes to router and checking PuTTY version, I tried using a Windows box that is hard wired to the router as well as my laptop that is wireless. Neither seemed to work.

* if it works using cables, the look for posts in this forum about settings for Linksys routers to solve airport issues in OS X 10.4.10 and tried if the settings help you.
Answer: I should point out that my Mac is hard wired to the router and I'm not using airport.

Are there any other suggestions? I thought setting this up on Mac was going to be easy. So far, it seems to be tons easier on Linux. Evidently clicking the little System Preference Sharing radial button is not enough. That is disappointing.

Thank you again for any suggestions you can provide, as I appear to still be stuck.
Reply

Nov 19, 2007 10:50 AM in response to JustADude

{quote:title=JustADude wrote:}
* does the firewall allow SSH connections and does it work if you turn the firewall off?
Answer: Assuming you mean fire wall on Linksys Router. I followed the suggestions on the following website to configure the Linksys Router:{quote}


In fact I meant the firewall of the Mac. Under 'Sharing' I have three tabs from which one is called 'Firewall'. The firewall from the Linksys Router has nothing to do with connections on your LAN between wireless and wired clients. That firewall is used to block traffic from the WAN internet port.

If turning off the Mac firewall doesn't help (or if it is turned of already) does PING from the XP laptop to the Mac work and can you share files between the two systems?

Cheers,

Max
Reply

Nov 19, 2007 11:41 AM in response to JustADude

Try using telnet to telnet to the server/port.

http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/t elnet_commands.mspx?mfr=true

Is port 22 being forwarded to the Mac on your Router?

What does netstat -at say for that port? LISTEN ?

Are you using a valid username and its valid user passwd ?

Use putty to do a normal userid/password login. To do this, load
your connection profile in putty, then check to make sure all authentication
options (in Connection ->SSH) are unchecked (so it won't even attempt RSA
authentication). Start the session, and putty should display first a prompt
for userid, then one for password. Enter values for a valid account.
Reply

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Problems SSH'ing into Mac via PuTTY

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.