Benches Networking

3

FTP Problem

apple Verified

Imported from the Apple Support Forums via the Wayback Machine 🔗

I am running a small business and am trying to setup an FTP server on my iMac so my partner can access files/upload critical files as opposed to using things like yousendit (which take too long, have limitations etc)

I setup everything and then accessed the iMac on my ibook (using fetch) successfully. I also created an account for my partner. However, when he went to try on his end he couldn't get through.

When we looked into it it seemed it was the ip address. The one I gave him (192.168.0.100) is different from my public one (24.150.163.218) When I tried the latter it didn't work on my laptop or on his end.

These are the instructions I followed to setup the server.
http://www.macinstruct.com/node/152

If i'm missing something or did something wrong let me know.
Thanks

3 replies

Sign in or join Beachball Help to reply.

  1. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    The 192.168.0.100 address you are using on your local network is a private IP address for the LAN. It's not accessible from the outside.

    What you need to do is configure your router to forward ports 20 and 21 to that address. Once you do that, attempting to FTP to the router's IP address (in your case, 24.150.163.218) will pass through to the internal computer.

    That said, don't use FTP for this. FTP is highly insecure. For one thing, the username and password are broadcast in the clear for anyone to grab and use, not to mention all the data.

    The contemporary solution is to use sftp (secure FTP). Forward a port on your router to port 22 on the LAN IP address, and, on your Mac, go to the Sharing preferences and click "Remote Login" and specify the username that is permitted to login. Note that this still uses a password, but nothing is transmitted in the clean anymore.

    If you really want to secure it, you need to go to the Terminal.app and modify /etc/sshd_config and change the line that says:

    #PasswordAuthentication yes

    to

    PasswordAuthentication no

    (to do this, type 'sudo nano /etc/sshd_config'), and signal SSH to read the new settings:

    sudo killall -HUP sshd

    ... after that, password-based logins will be disabled and the only way to login will be to use keys. You can create a key pair like so:

    ssh-keygen -C "+Your Colleague's Name Here+" -f shortname

    ...which will create two keys, a public and a private key. The private key you give to your colleague, and the public key you add to ~shortname/.ssh/authorized_keys . When your colleague wants to connect using sftp, he would do something like:

    sftp -oIdentityFile=/path/to/the/private/key [email protected]

    ...oh, and if the file is not already compressed, using the -C option to sftp will automatically compress the data for transmission.

    Applications like Cyberduck support SFTP.

  2. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    Thanks, I had a feeling the 192 address was private.

    Is it easy to configure the router and do SFTP?

    I have heard of cyberduck so will check will install that on both computers. My partner, however, is running 10.3.9 and I believe this is 10.4+ so wil have to look into another program for him to acess sftp

  3. 0

    Apple Support Community member

    Imported from the Apple Support Forums via the Wayback Machine 🔗

    There's essentially no setup for sftp. When you enable remote login in the Sharing preferences, the SSH service enables SFTP.