SSH and the noob

5 posts / 0 new
Last post
doug-doug the mighty's picture
Offline
Last seen: 4 weeks 1 day ago
Joined: Apr 14 2004 - 17:52
Posts: 1377
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: 1 day 8 hours ago
Joined: Dec 16 2003 - 15:14
Posts: 3146
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: 4 weeks 1 day ago
Joined: Apr 14 2004 - 17:52
Posts: 1377
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: 4 weeks 1 day ago
Joined: Apr 14 2004 - 17:52
Posts: 1377
...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: 1 day 8 hours ago
Joined: Dec 16 2003 - 15:14
Posts: 3146
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.

Log in or register to post comments