SSH and the noob

8 posts / 0 new
Last post
doug-doug the mighty's picture
Offline
Last seen: 2 days 50 min ago
Joined: Apr 14 2004 - 17:52
Posts: 1408
SSH and the noob

I do not know enough about ssh, in fact I know very little.

 

But I know I need it to do what I want to do...

 

I have a Mac on a network at my home in one city.  It can see the internet just fine.  It is a PowerPC (MDD) running x.5.8.

I am located in a second city and have a Intel MacBook Pro running X.11.16.  I have Remote Login and other settings done correctly and can get into my second (local) Mac just fine.  I need to connect to my MDD in the first city but I cannot figure out how to do that.  What do I need to do?

 

TIA

Tom Owad's picture
Offline
Last seen: 4 days 14 hours ago
Joined: Dec 16 2003 - 15:14
Posts: 3384
Simplest way is to log into

Simplest way is to log into your router and enable port forwarding for port 22 to the IP address of your MDD. From the reot elocation, ssh to the IP address of your home network.

 

Opening up port 22 is asking for abuse, though. Your router pobably supports forwarding to a different port, so you could set, say port 8282 to forward to port 22. Then when you connect from outside your home network, you'd specify port 8282:

ssh username@homenetworkip -p 8282

You probably also want to set up dynamic DNS, so you can connect via domain name rather than a dynamic ip address. I most often use DuckDNS for that. It can update the DNS record via a simple cron job.

You might also want to consider setting up a VPN. The easiest way to do that would probably be PiVPN.

doug-doug the mighty's picture
Offline
Last seen: 2 days 50 min ago
Joined: Apr 14 2004 - 17:52
Posts: 1408
Thanks Tom! this is great

Thanks Tom!

 

this is great stuff.  It will take me a few weeks before I can get to my remote location (MDD site) to make all the changes but I will report back once I have an outcome.

doug-doug the mighty's picture
Offline
Last seen: 2 days 50 min ago
Joined: Apr 14 2004 - 17:52
Posts: 1408
...and now...

I was able to get this working after some trial and error.  I can make the ssh connection just fine and I can also Command-K and see my drives on each machine I need to (via afp://...).  I did have to set up a specific service for the differnt machines.  Thanks again, Tom!

 

The only thing I cannot seem to do is screen share.  Not sure why...

 

Tom Owad's picture
Offline
Last seen: 4 days 14 hours ago
Joined: Dec 16 2003 - 15:14
Posts: 3384
If you want to expose all

If you want to expose all that, you should really set up a VPN. Play around with PiVPN. Viscosity is a nice client.

doug-doug the mighty's picture
Offline
Last seen: 2 days 50 min ago
Joined: Apr 14 2004 - 17:52
Posts: 1408
Is there a preferred mac

Is there a preferred mac-based alternative to PiVPN?

 

Tom Owad's picture
Offline
Last seen: 4 days 14 hours ago
Joined: Dec 16 2003 - 15:14
Posts: 3384
An older version of OS X

An older version of OS X Server. Or VPN Enabler (haven't used it).

doug-doug the mighty's picture
Offline
Last seen: 2 days 50 min ago
Joined: Apr 14 2004 - 17:52
Posts: 1408
OS X Server

This sounds like a simpler way to get to where I want to go (maybe).  Since the hardware is my MDD, and it seems it might take 10.x nicely, should I start off with that or should I jump to 10.4 or 10.5 and make life easier? 10.6?

 

At the end of the day, this is all about hosting my files and media/music/etc and accessing things from remote locations (in a cloud-like manner).  I have been trying to link a RasPi in to the mix for a PLEX server but it keeps not wanting to see my drives hosted on the MDD (can see in Pi but not in Plex even when full path entered from mount points).  I was goingto set up OwnCloud on a separate Pi but I would much prefer to have one less machine to maintain if I can use a native Mac setup to do what I wanted.

Log in or register to post comments