Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Enthusiast Zone > Networking > being able to access >1 Mac over SFTP on same network

being able to access >1 Mac over SFTP on same network
Thread Tools
abbaZaba
Mac Elite
Join Date: Jun 2006
Location: Pittsburgh
Status: Offline
Reply With Quote
Jan 2, 2011, 10:15 PM
 
I have two Macs behind one network and I would like to be able to access both filesystems through SFTP. I can forward port 22 to one of the Macs, but this leaves the other firewalled. The router I have am using is a Linksys BEFSR81.

I know that on an Apple router you could have it setup so that if an incoming connecting came on, say, port 28756, it would send the traffic to a specified NAT address on port 22. such: initiate connection outside of network with mydns.com:28756 and internally it would send to connecting to 192.168.1.x:22.

the BEFSR81 has options for port triggering and I have a feeling this is the feature I need, but I can't quite figure it out. this is the what I can see:


there is nowhere to specify the NAT address, so I am confused as to how to configure that...

This would be much easier if there was an easy way to change the SFTP port on Snow Leopard...
PS- both macs are running 10.6.5
     
Cold Warrior
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status: Offline
Reply With Quote
Jan 2, 2011, 10:44 PM
 
Have you tried editing sshd_config in /etc?

Instead of #Port 22 try Port 60022 or whatever.
     
BLAZE_MkIV
Professional Poster
Join Date: Feb 2000
Location: Nashua NH, USA
Status: Offline
Reply With Quote
Jan 2, 2011, 11:17 PM
 
What you want is in the "Port range and Filtering" the page you're on is for outgoing connections like games that need a 2 way connection.
     
abbaZaba  (op)
Mac Elite
Join Date: Jun 2006
Location: Pittsburgh
Status: Offline
Reply With Quote
Jan 3, 2011, 12:41 AM
 
It is "Port Range and Forwarding" not "...Filtering" and that is where all my set port ranges are for dedicated NATs for open ports....
     
abbaZaba  (op)
Mac Elite
Join Date: Jun 2006
Location: Pittsburgh
Status: Offline
Reply With Quote
Jan 3, 2011, 12:42 AM
 
Originally Posted by Cold Warrior View Post
Have you tried editing sshd_config in /etc?

Instead of #Port 22 try Port 60022 or whatever.
is this really all there is to editing the SFTP port on SL? I remember trying to tackle this problem awhile back and after some Googling, I was under the impression that there were multiple instances buried in the OS where this had to be changed.
     
Cold Warrior
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status: Offline
Reply With Quote
Jan 3, 2011, 10:22 PM
 
Well I tried on my appletv (not SL, I know) and on 10.6.5 without success. Just got access denied on that port.

You could try this post.
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Jan 3, 2011, 10:27 PM
 
Originally Posted by Cold Warrior View Post
Have you tried editing sshd_config in /etc?

Instead of #Port 22 try Port 60022 or whatever.
I'm not sure, but I think I remember that fooling with the SSH ports on OS X is NOT a good idea.

I remember trying it a while back and it never worked.

-t
     
Cold Warrior
Moderator
Join Date: Jan 2001
Location: Polwaristan
Status: Offline
Reply With Quote
Jan 4, 2011, 12:04 AM
 
Yeah, it didn't work for me either. The link I gave above has another method, which appears to have been successful for that user.
     
abbaZaba  (op)
Mac Elite
Join Date: Jun 2006
Location: Pittsburgh
Status: Offline
Reply With Quote
Jan 4, 2011, 10:40 PM
 
it bugs me that this is not very easy to do. there are tons of SFTP server options on Windows. why make it hard to do on OSX? how would one access filesystems of macs behind one network? VPN? that seems a bit overkill and not quite cross platform either.

for now I guess I will just mount the network drives on the mac with SFTP open and access the drives that way. not ideal, but it does keep it less confusing
( Last edited by abbaZaba; Jan 4, 2011 at 10:49 PM. )
     
turtle777
Clinically Insane
Join Date: Jun 2001
Location: planning a comeback !
Status: Offline
Reply With Quote
Jan 4, 2011, 11:26 PM
 
Originally Posted by abbaZaba View Post
how would one access filesystems of macs behind one network? VPN? that seems a bit overkill and not quite cross platform either.
Since you bugged us long enough, here's your solutions:

1) Slink - create your own VPN incl. full Bonjour support (Mac only)

http://forums.macnn.com/92/networkin...play-vpn-macs/

2) LogMeIn Hamachi2 (cross plattform)

https://secure.logmein.com/US/produc...2/default.aspx

-t
     
   
 
Forum Links
Forum 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
Top
Privacy Policy
All times are GMT -4. The time now is 12:16 PM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,