View Full Version : Enable filesharing via SSH?
timbloom
Mar 14, 2003, 08:03 PM
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.
gbojim
Mar 14, 2003, 09:07 PM
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.
ramjet
Mar 14, 2003, 10:00 PM
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.
vBulletin® v3.8.6, Copyright ©2000-2012, Jelsoft Enterprises Ltd.