Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

timbloom

macrumors 6502a
Original poster
Jan 19, 2002
746
26
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.
 
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.