New To Mac-Forums?

Welcome to our community! Join the discussion today by registering your FREE account. If you have any problems with the registration process, please contact us!

Get your questions answered by community gurus Advice and insight from world-class Apple enthusiasts Exclusive access to members-only contests, giveaways and deals

Join today!

 
Start a Discussion
 

Mac-Forums Brief

Subscribe to Mac-Forums Brief to receive special offers from Mac-Forums partners and sponsors

Join the conversation RSS
OS X - Apps and Games Discussion of applications and games available for Mac OS X.

Calling all SUPERGEEKS! I need help with SSH log-in from PC to Mac


Post Reply New Thread Subscribe

 
Thread Tools
Simbad54

 
Simbad54's Avatar
 
Member Since: Mar 04, 2007
Location: Amsterdam, Holland
Posts: 373
Simbad54 has a spectacular aura about
Mac Specs: Mac Book Pro. 2.4Ghz Intel Core Duo running OSX 10.9.3, 8GB Ram

Simbad54 is offline
Hi guys,
I'm attempting to access my Mac from a friends PC using SSH.
I've downloaded and installed Putty on the PC, then entered my Mac's address as:
ssh my name@my ip address
and\or
my name@my ip address (without the 'ssh')

I get a fairly quick Network Error: Connection timed out.

My Mac back home is configured with automatic DHCP, and I use DyNS to assign a permanent IP address online, which I'm pretty sure is different from the one my Mac has offered me in System Prefs. Could that be the problem? I haven't turned the Mac off since it offered me an IP address to connect to through SSH.
QUOTE Thanks
iRock

 
Member Since: Feb 09, 2005
Posts: 841
iRock will become famous soon enough

iRock is offline
Did you turn SSH on and configure your firewall?
QUOTE Thanks
Simbad54

 
Simbad54's Avatar
 
Member Since: Mar 04, 2007
Location: Amsterdam, Holland
Posts: 373
Simbad54 has a spectacular aura about
Mac Specs: Mac Book Pro. 2.4Ghz Intel Core Duo running OSX 10.9.3, 8GB Ram

Simbad54 is offline
Yes, I turned SSH on, not sure about the firewall though. I think I turned it off, which I tend to do, but perhaps it's on. Is Putty a good client, or are there better ones?
QUOTE Thanks
rman

 
rman's Avatar
 
Member Since: Dec 24, 2002
Location: Los Angeles, California
Posts: 12,589
rman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud ofrman has much to be proud of
Mac Specs: 2 x 3.0GHz Quad-Core, 6GB OS X 10.6.8 | 15in MacBook Pro 2.2GHz OS X 10.6.8 | 64GB iPad 2 WiFi

rman is offline
Are you on the same sub-net as in xxx.yyy.zzz.A and xxx.yyy.zzz.B?

Life isn't about waiting for the storm to pass, It's about learning to dance in the rain!
QUOTE Thanks
Simbad54

 
Simbad54's Avatar
 
Member Since: Mar 04, 2007
Location: Amsterdam, Holland
Posts: 373
Simbad54 has a spectacular aura about
Mac Specs: Mac Book Pro. 2.4Ghz Intel Core Duo running OSX 10.9.3, 8GB Ram

Simbad54 is offline
Quote:
Originally Posted by rman View Post
Are you on the same sub-net as in xxx.yyy.zzz.A and xxx.yyy.zzz.B?
Hmm, I'm afraid you've lost me there. I'm new to this SSH thing. I'm literally wanting to try to access my Mac online so as to learn how to have a Terminal session from afar.
QUOTE Thanks
montes.c

 
Member Since: Aug 15, 2007
Posts: 12
montes.c is an unknown at this point

montes.c is offline
Click on the Apple on the top left -

System Preferences > Sharing > Remote Login

Firewall Tab

Poke Around... Do you have a router? You probably need to open the port on it
QUOTE Thanks
Simbad54

 
Simbad54's Avatar
 
Member Since: Mar 04, 2007
Location: Amsterdam, Holland
Posts: 373
Simbad54 has a spectacular aura about
Mac Specs: Mac Book Pro. 2.4Ghz Intel Core Duo running OSX 10.9.3, 8GB Ram

Simbad54 is offline
Quote:
Originally Posted by montes.c View Post
Click on the Apple on the top left -

System Preferences > Sharing > Remote Login

Firewall Tab

Poke Around... Do you have a router? You probably need to open the port on it
Thanks for the response. I'm nowhere near my Mac, hence the attempt to access it from afar. I don't have a router anyway, just a cable modem. I've turned on remote login already, but I fear it has something to do with my dynamic IP address.
QUOTE Thanks
montes.c

 
Member Since: Aug 15, 2007
Posts: 12
montes.c is an unknown at this point

montes.c is offline
Dynamic or Static I.P. addresses, it does not matter. Unless you're trying to ssh into a URL domain where the mac hosts it, which I doubt.

The only thing I can think of is that the ssh port is blocked where your mac resides..

I dont have enough information about your setup, your mac is afar, ok, but where? Is it behind routers where it is? What is the setup, wherever your mac is. Where the fuc.k is it at? Need more info, I can't help you.
QUOTE Thanks
Simbad54

 
Simbad54's Avatar
 
Member Since: Mar 04, 2007
Location: Amsterdam, Holland
Posts: 373
Simbad54 has a spectacular aura about
Mac Specs: Mac Book Pro. 2.4Ghz Intel Core Duo running OSX 10.9.3, 8GB Ram

Simbad54 is offline
Hmm, ok. My Mac is at Home, Wirelessly connected to a cable Modem. That's the set up. There is nothing else. It's in Paris, I'm in the south of France. On my mates PC. When I turned on remote login, i was given the ip address to access, in terminal, in the form I wrote in my first post. Sorry, but that's the setup.
When i open Putty t asks me to enter the address, then it has a box for the port, which is already filled in with 22.
IS that the standard access port into a Mac? Perhaps that needs changing.
I appreciate the help.
QUOTE Thanks
iRock

 
Member Since: Feb 09, 2005
Posts: 841
iRock will become famous soon enough

iRock is offline
Ports forwarded?
QUOTE Thanks
RiDE

 
RiDE's Avatar
 
Member Since: Sep 13, 2006
Location: Deep in the heart of Texas!
Posts: 3,559
RiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond repute
Mac Specs: Mac's

RiDE is offline
If your user name is "Simbad".... and your IP is 12.123.1.123, you would open Putty and in the "address" Field type: Simbad@12.123.1.123 ***Note: The user name IS cAsE sensitive.... Then press ENTER. A new screen will pop-up asking for your password (the Simbad Admin password, which is also case sensitive).


QUOTE Thanks
iRock

 
Member Since: Feb 09, 2005
Posts: 841
iRock will become famous soon enough

iRock is offline
Quote:
Originally Posted by Simbad54 View Post
Hmm, ok. My Mac is at Home, Wirelessly connected to a cable Modem. That's the set up. There is nothing else. It's in Paris, I'm in the south of France. On my mates PC. When I turned on remote login, i was given the ip address to access, in terminal, in the form I wrote in my first post. Sorry, but that's the setup.
When i open Putty t asks me to enter the address, then it has a box for the port, which is already filled in with 22.
IS that the standard access port into a Mac? Perhaps that needs changing.
I appreciate the help.

My guess is that its an internal IP address that the Mac gave you (and you are infact behind a router also).

If thats the case you need to get your external IP address (that of your router). Next you need to set up port 22 to forward to the internal IP address of your Mac.

So for example your internal address is 192.168.1.xx then you would set up ports 22 - 22 on your router to forward to 192.168.1.xx


--------------------

Then you need to make sure that your external IP stays that way, you have two options.

Get a static IP address or use something like http://www.dyndns.com/ .
I'm using dynDNS and it works pretty good. It just gives you a host name that you can connect to rather than an IP... that way everytime your IP address changes, DynDNS updates it against the hostname.

I haven't had any problems with it yet.
QUOTE Thanks
Simbad54

 
Simbad54's Avatar
 
Member Since: Mar 04, 2007
Location: Amsterdam, Holland
Posts: 373
Simbad54 has a spectacular aura about
Mac Specs: Mac Book Pro. 2.4Ghz Intel Core Duo running OSX 10.9.3, 8GB Ram

Simbad54 is offline
Quote:
Originally Posted by iRock View Post
My guess is that its an internal IP address that the Mac gave you (and you are infact behind a router also).

If thats the case you need to get your external IP address (that of your router). Next you need to set up port 22 to forward to the internal IP address of your Mac.

So for example your internal address is 192.168.1.xx then you would set up ports 22 - 22 on your router to forward to 192.168.1.xx


--------------------

Then you need to make sure that your external IP stays that way, you have two options.

Get a static IP address or use something like http://www.dyndns.com/ .
I'm using dynDNS and it works pretty good. It just gives you a host name that you can connect to rather than an IP... that way everytime your IP address changes, DynDNS updates it against the hostname.

I haven't had any problems with it yet.
Just to refer you to my first post, I am using DynDNS to supply a permanent IP, so I guess that is where the fault is, as I'm trying to connect to the internal address. I am definately not behind a router, it is just a Cable Modem, nothing more. Does my Aiport express count? I haven't needed to configure that for anything as far as I remember. Thanks for the help.
QUOTE Thanks
RiDE

 
RiDE's Avatar
 
Member Since: Sep 13, 2006
Location: Deep in the heart of Texas!
Posts: 3,559
RiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond reputeRiDE has a reputation beyond repute
Mac Specs: Mac's

RiDE is offline
You are entering an "external IP" (NOT 192.168.X.X) into Putty correct???
QUOTE Thanks
Simbad54

 
Simbad54's Avatar
 
Member Since: Mar 04, 2007
Location: Amsterdam, Holland
Posts: 373
Simbad54 has a spectacular aura about
Mac Specs: Mac Book Pro. 2.4Ghz Intel Core Duo running OSX 10.9.3, 8GB Ram

Simbad54 is offline
it's in the form of "ssh myname@10.2.X.X"
I think I need the address that DynDNS gives me, which is something starting with 83.X.X.X
QUOTE Thanks

Post Reply New Thread Subscribe


« iTunes: play count vs. has been played | Iron On Transfer Help »
Thread Tools

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are On
Pingbacks are On
Refbacks are Off
Forum Jump

Similar Threads
Thread
Thread Starter
Forum
Replies
Last Post
SSH Login from a PC Simbad54 OS X - Apps and Games 2 12-31-2007 01:59 AM
Apples History.. Bainzey Schweb's Lounge 3 01-11-2007 11:33 PM
Mac info needed nork Switcher Hangout 15 12-01-2006 12:51 PM
From PC to Mac: transferring files, Mac Mini hard drive djmitch Other Hardware and Peripherals 4 03-23-2005 01:56 PM
Mac Users Get More ISP Choices schweb Apple Rumors and Reports 1 03-06-2003 11:57 AM

All times are GMT -4. The time now is 08:56 PM.

Powered by vBulletin
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
X

Welcome to Mac-Forums.com

Create your username to jump into the discussion!

New members like you have made this community the ultimate source for your Mac since 2003!


(4 digit year)

Already a member?