Enable filesharing via SSH?

Discussion in 'Mac Help/Tips' started by timbloom, Mar 14, 2003.

  1. timbloom macrumors 6502a


    Jan 19, 2002
    Is anyone aware how to enable filesharing via SSH. Stupidly, I forgot to enable this while I was heading out of town for spring break, but I am in dire need. I need to access my home folder only, so any kind of filesharing service would work, though my FTP port may possibly be blocked by the ISP.

    If anyone could help me out here, I would be grateful.
  2. gbojim macrumors 6502

    Jan 30, 2002
    I can tell you how to start FTP. I'd have to research the others and I don't have time right now. So...

    After you log in with SSH

    1. cd /etc
    2. edit the inetd.conf file
    3. you will notice a line that starts #ftp stream. Remove the # from in front of ftp
    4. save and exit the file
    5. at the prompt enter: killall -HUP inetd

    You have to be logged into an account with root privileges for steps 2 - 5.
  3. ramjet macrumors newbie

    Jan 9, 2003
    Toronto, Canada
    If you can SSH into the machine, just use SFTP:

    sftp user@host

    sftp behaves very similar to the command line ftp client.

    Also, look into port forwarding with ssh (assuming that file sharing is running, I can't remember how to start it from the command line):

    ssh -L 1548:localhost:548 user@host

    you can then have the finder (on your machine) connect to localhost:1548 (at least I think this works).

    This forwards all traffic from your local port 1548 to the remote's machine port 548 (Apple File Sharing port) and encrypts it.

    Hope that helps.

Share This Page