PDA

View Full Version : FTP + A Name on Lion




crimsontide165
May 24, 2012, 08:13 PM
I need to be able to access my home mac from work via ftp. Currently I've turned on the ftp server in terminal:

sudo -s launchctl load -w /System/Library/LaunchDaemons/ftp.plist

Now it works well when I just use the local ip 192.168..., however on my airport extreme at home I've set it up port mapping and pointed a domain's a name record to it.

However when I try to connect to it through the domain that it gives me "Server connection closed"

Any help?



belvdr
May 24, 2012, 08:19 PM
Are you sure you're connecting to your system, as you likely have a dynamic IP? What ports did you forward?

crimsontide165
May 24, 2012, 08:29 PM
I reserved a static ip for the mac and my public is static as well, 80 & 21

----------

I'm getting "Control connection timed out" now...

belvdr
May 24, 2012, 08:30 PM
Not sure why that's happening but it's definitely related to your port mapping.

How about enabling ssh and using sftp? Same results and it all runs over TCP 22, instead of using high ports as well.

crimsontide165
May 24, 2012, 08:34 PM
That did it, thanks man!

r0k
May 24, 2012, 09:09 PM
Don't forget to shut off plain old ftp. Sftp still works. I have an app to manage ftpd linked in my sig. It's not a good idea to leave plain old ftp running all the time unless you need it (ie for an older camera or scanner that only knows how to ftp to send files to your Mac).