You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Secure AFP and FTPS (FTP Secure)???? HELP - I NEED SOME UNDERSTANDING!!!

Hello,
I currently connect to my MacMini (which I use as a File Storage Centre/Server) at home from College, using AFP and my Routers External IP address (plus some Port Forwarding). For example, I would use Finders Connect to server tool and type in "AFP://(My External IP):(Port Number)". At the moment I am unsure if this is Secure, and if someone could theoretically hack my files Over the Air (OTA) - So my first question is, is AFP secure?

Secondly, if it is not, should I use FTP Secure (FTPS) in the same way I would with AFP except change in my Sharing Preferences that I also want to access my files using FTP, then type
"FTPS://(External IP):(Port Number)" - Would this work or would I need to set up SSH (Remote Login) too?

I also use VNC (Set up in Sharing Preferences as "Remote Management"), to connect to this I use (again in the Finder Connect to Server window) "VNC://(External IP):(Port Number). Its this Secure? Could someone attack it and access passwords? Is there a secure version of VNC?

Thanks in Advance
Adam J

White MacBook (2007), Mac Mini (2010), iMac (2010), Mac OS X (10.6.4), iPod Touch (1st Gen), iPod Nano (3rd Gen), Nikon D60

Posted on Jul 10, 2010 10:01 AM

Reply
Question marked as Top-ranking reply

Posted on Jul 10, 2010 10:48 AM

tunnel your stuff through secure shell. At home, turn on remote login and afp and screen sharing on the computer. Forward port 22 in your home router. That is the only port that needs to be forwarded in the router.

Get a free account with dyndns.com so you can get a free host name that updates the external IP address every time your ISP changes your external IPA. You'll need to install their DynDNSUpdater application. That's what senses the change in your external IP address and reports it to the dyndns DNS servers.

From school, launch Terminal.app and type "ssh -L10548:localhost:548 -L15900:localhost:5900 username@yourdyndnshostname"

Once you have a user prompt into your home machine displayed, then switch to Finder, ⌘k to afp://localhost:10548 or vnc://localhost:15900.

This will tunnel your afp and vnc through encrypted secure shell. sftp is secure ftp and is part of the ssh connection, so rather than ssh, you can just type "sftp username@yourdyndnshostname"
4 replies
Question marked as Top-ranking reply

Jul 10, 2010 10:48 AM in response to ajeffreys242

tunnel your stuff through secure shell. At home, turn on remote login and afp and screen sharing on the computer. Forward port 22 in your home router. That is the only port that needs to be forwarded in the router.

Get a free account with dyndns.com so you can get a free host name that updates the external IP address every time your ISP changes your external IPA. You'll need to install their DynDNSUpdater application. That's what senses the change in your external IP address and reports it to the dyndns DNS servers.

From school, launch Terminal.app and type "ssh -L10548:localhost:548 -L15900:localhost:5900 username@yourdyndnshostname"

Once you have a user prompt into your home machine displayed, then switch to Finder, ⌘k to afp://localhost:10548 or vnc://localhost:15900.

This will tunnel your afp and vnc through encrypted secure shell. sftp is secure ftp and is part of the ssh connection, so rather than ssh, you can just type "sftp username@yourdyndnshostname"

Jul 10, 2010 1:24 PM in response to j.v.

I do use DynDNS anyway, just didn't say so as not to make the post complex.
So using your idea, each time I needed to connect I would need to open Terminal and do toe prompt to start the SSH connect, could I not just go straight to "connect to server" and type FTPS://(DynDNS Name):(Port Number)?

Secondly, I am not using my AFP Connection for top secret stuff, just like accessing normal files - I understand they are not encrypted, but is the password you use to connect to the server encrypted? Also is any VNC Data encrypted or not (Even if I do not use a SSH Tunnel).

Also is there a large chance I would be hacked not not?

BTW, the Router at college is very secure anyway - don't know if this matters.

Thanks in Advance
Adam J

Jul 10, 2010 9:40 PM in response to ajeffreys242

AFP: I don't know if password is sent in the clear or not. I have watched wireshark and could definitely see folder names being sent. If it is encrypted, I do not know what encryption scheme it uses.

FTPS: It would actually probably be "s ftp://" but I don't think that it is supported by the ⌘k protocol. You can use sftp from the Terminal command line, in which case you don't use all the "-L" port tunnel options. There are third-party GUI front end applications to the sftp protocol that you could use to give you an encrypted drag-and-drop. I would search macupdate.com or versiontracker.com or similar for "sftp." Years ago, for previous OSs, there was one called "ssh Tunnel Manager." Don't know if it is current for 10.6.4 or supported anymore or not. But if you want to do command line, type "man sftp" for help.

VNC: There is an option to encrypt both username/password and data in Screen Sharing's Preferences. I don't know what encryption algorithm screen sharing uses.

Router security: anybody that can affiliate to the router can sniff all the traffic on the router. So if you don't want other people seeing your stuff, end-to-end encrypt it (https, sftp, ssh, vnc with encryption turned on all, or services tunneled through ssh)

Chance of being hacked: Who knows? Why gamble? If you don't want to type out that ugly long string "ssh -L10548:localhost:548 -L15900:localhost:5900 username@yourdyndnshostname," in Terminal, do the following:
nano ./bash_login
(this launches a basic text editor in the unix environment)
now type (all on one single line -- it word wraps here on the forum):
alias phonehome='ssh -L10548:localhost:548 -L15900:localhost:5900 username@yourdyndnshostname'
^x (control-x) to save and exit from nano
⌘w to close the Terminal window and ⌘n to open a new one, that will make the "phonehome" command become active. Now all you have to do is type phonehome to create the ssh connection.

Also, I bet that if you find a ssh/sftp GUI through macupdate or versiontracker or similar, you will be able to save a "profile" for your home machine connection with all those port tunneling options.

I really prefer ssh tunneling, because you can lock down ssh to not allow username/password login but only allow public key exchange login (need a private certificate on the client computer and the matching public key certificate on the server). That prevents script kiddies from running dictionary attacks on your home ssh connection.

As a sidenote, if you spend any time in Terminal, building up a list of alias commands such as
alias ls='ls -TalkOs' lets you add options to customize various unix commands without having to type out the long list of options. My .bash_login has 35 such aliases... If you don't spend much time in Terminal but think you might want to learn it, an OS X unix tutorial can be found at http://www.osxfaq.com/Tutorials/LearningCenter/

Jul 10, 2010 10:42 PM in response to ajeffreys242

Hi,

in addition to j.v.'s explanations I put several GUI clients for the tasks that can of course be done from terminal shell commands.


1. sftp client - try this (free, latest version: Jun, 15 2010) http://cyberduck.ch/

2. For establishing ssh tunnels (at client side) try this (free, latest version: Feb, 27 2009): http://www.apple.com/downloads/macosx/networking_security/sshtunnel.html
The most you get from this tool if you have to manage connections to a number of servers, but even for a single one there is quite convenient GUI.

3. VNC client (in my opinion the best one for this price) - JollyfastVNC (NOT free: $39) http://www.jinx.de/JollysFastVNC.html


If you plan to use Cyberduck and JollyfastVNC there's no need for additionall tunneling software (2), they have biult-in tunneling options based on the open ssh.

best regards,
jpm

Secure AFP and FTPS (FTP Secure)???? HELP - I NEED SOME UNDERSTANDING!!!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.