Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Jul 9, 2007, 02:34 PM   #1
fab5freddy
Banned
 
Join Date: Jan 2007
Location: Heaven or Hell
FTP through Terminal ?

i would like to learn how to FTP through the Terminal..
what are the commands to do this.. ?

thanks.
fab5freddy is offline   0 Reply With Quote
Old Jul 9, 2007, 02:41 PM   #2
kainjow
Demi-God (Moderator emeritus)
 
kainjow's Avatar
 
Join Date: Jun 2000
Type "man ftp" in Terminal.
kainjow is offline   1 Reply With Quote
Old Jul 9, 2007, 02:45 PM   #3
fab5freddy
Thread Starter
Banned
 
Join Date: Jan 2007
Location: Heaven or Hell
ok, then what ?
fab5freddy is offline   0 Reply With Quote
Old Jul 9, 2007, 02:50 PM   #4
kainjow
Demi-God (Moderator emeritus)
 
kainjow's Avatar
 
Join Date: Jun 2000
"man ftp" gives you the documentation for the ftp command. Read through it to find out how it works. Or read something like this.
kainjow is offline   1 Reply With Quote
Old Jul 9, 2007, 03:12 PM   #5
ChrisBrightwell
macrumors 68020
 
ChrisBrightwell's Avatar
 
Join Date: Apr 2004
Location: Huntsville, AL
Alternatively, you can type "ftp" in at the command line, then use the "?" command to display a list of all available commands.
__________________
"Simplicity is the ultimate sophistication."
ChrisBrightwell is offline   0 Reply With Quote
Old Jul 9, 2007, 03:15 PM   #6
odinsride
macrumors 65816
 
odinsride's Avatar
 
Join Date: Apr 2007
Location: Waynesboro, VA
Why not just use something like Cyberduck?

Sure, you can do it through the terminal, but why would you want to? It's a pain in the ass if you ask me.
__________________
"It is just that heavy metal musicians write in minor keys, and when you do that, you frighten people." - Ronnie James Dio (RIP)
Flickr
odinsride is offline   -1 Reply With Quote
Old Jul 9, 2007, 06:11 PM   #7
MongoTheGeek
macrumors 68040
 
MongoTheGeek's Avatar
 
Join Date: Sep 2003
Location: Its not so much where you are as when you are.
Send a message via MSN to MongoTheGeek Send a message via Yahoo to MongoTheGeek
Quote:
Originally Posted by odinsride View Post
Why not just use something like Cyberduck?

Sure, you can do it through the terminal, but why would you want to? It's a pain in the ass if you ask me.
Its so much easier in my book, usually faster too if you know what you are looking for.
__________________
The future ain't what it used to be.
MongoTheGeek is offline   1 Reply With Quote
Old Jul 9, 2007, 06:33 PM   #8
ChrisA
macrumors G3
 
Join Date: Jan 2006
Location: Redondo Beach, California
Quote:
Originally Posted by kainjow View Post
Type "man ftp" in Terminal.
I prefer "lftp" now. While "ftp" come standard of every computer yo have to hunt down lftp but it gives you syntax very much like the csh shell. It has bash-like history, comand completion and so on. feature wise it adds two things I use (1) A "mirror" command to move entrire directory trees and (2) multiple transfers in parallel. lftp can also access http servers so yu can hve the same comand line access to files on web servers as on ftp servers. Using the mirror command on a directory is a quick way to pull down a local copy of a web site even if you don't have FTp access to it.

But the Mac has an FTP file system built in does not not? So any normal commands on local files should work on remote FTP servers too.
ChrisA is offline   0 Reply With Quote
Old Jul 9, 2007, 07:20 PM   #9
kainjow
Demi-God (Moderator emeritus)
 
kainjow's Avatar
 
Join Date: Jun 2000
Quote:
Originally Posted by ChrisA View Post
But the Mac has an FTP file system built in does not not? So any normal commands on local files should work on remote FTP servers too.
It's read-only, IIRC.
kainjow is offline   0 Reply With Quote
Old Oct 18, 2011, 03:48 AM   #10
mr666
macrumors member
 
Join Date: Sep 2009
To fab5freddy:
Isn't it funny that people won't simply answer the question? I know: "Teach a man to fish". But just give the dang answer, OK?

Yes, I know it's too old, but someone has to stand up to these "Look it up" answers. It seems pedantic and pompous.
mr666 is offline   -8 Reply With Quote
Old Oct 18, 2011, 04:09 AM   #11
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Quote:
Originally Posted by mr666 View Post
To fab5freddy:
Isn't it funny that people won't simply answer the question? I know: "Teach a man to fish". But just give the dang answer, OK?

Yes, I know it's too old, but someone has to stand up to these "Look it up" answers. It seems pedantic and pompous.
Don't ya hate it when someone necros an ancient thread just to make a stupid comment on it.
jiminaus is offline   4 Reply With Quote
Old Jan 23, 2012, 10:31 PM   #12
macluva18
macrumors newbie
 
Join Date: Jan 2012
New question under same topic:

I'm teaching myself bash, ftp, ssh, etc. I have been able to ftp various servers and 'get' and 'put' test files. My hang up is trying to connect to another computer. I have been testing my skills on my gf mac. I have done all i know to do to ensure that both computers and connect. i.e. turning off the firewall, enabling passive ftp, checking remote manage/login. But when i try to connect, it tries, and the times out.

ideas?
macluva18 is offline   0 Reply With Quote
Old Jan 23, 2012, 11:55 PM   #13
Sydde
macrumors 68000
 
Sydde's Avatar
 
Join Date: Aug 2009
Quote:
Originally Posted by macluva18 View Post
New question under same topic:

I'm teaching myself bash, ftp, ssh, etc. I have been able to ftp various servers and 'get' and 'put' test files. My hang up is trying to connect to another computer. I have been testing my skills on my gf mac. I have done all i know to do to ensure that both computers and connect. i.e. turning off the firewall, enabling passive ftp, checking remote manage/login. But when i try to connect, it tries, and the times out.

ideas?
Make sure hers is running the appropriate daemons. You can, for instance, serve web pages right off your computer if you can hand out a stable IP address, but the other computer will get no response if you are not running Apache (httpd). I think you can set most of this up in the Sharing prefpane.
__________________
Mr. Paul, sir, I thought you should be advised, there seems to be a zombie tribble clinging to your head, for it is scarfing your brain
Sydde is offline   0 Reply With Quote
Old Jan 24, 2012, 01:00 AM   #14
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Do you have any devices doing network address translation (NAT) between the computers, for example, an ADSL modem?

Is the IP address of either host a private IP address?
jiminaus is offline   0 Reply With Quote
Old Jan 24, 2012, 01:36 PM   #15
macluva18
macrumors newbie
 
Join Date: Jan 2012
Quote:
Originally Posted by jiminaus View Post
Do you have any devices doing network address translation (NAT) between the computers, for example, an ADSL modem?

Is the IP address of either host a private IP address?
No i don't believe so. I have a router on my end, ISP, then a router on her end.
And as for the IP, i have tried both. One was a personal address like you would set up on a LAN. the other i got from "whatismyip." same result from both. A time out.

@Sydde: Good call. I had remote login and management checked, but i don't believe Web sharing was. I'll try that on my next attempt.
macluva18 is offline   0 Reply With Quote
Old Jan 24, 2012, 02:13 PM   #16
subsonix
macrumors 68000
 
Join Date: Feb 2008
What are you actually trying to do, login to a remote computer or have your computer accept remote logins?

The computer you are trying to login to must obviously run a ftp or (sfpt) server, or you will time out with no response.
subsonix is online now   0 Reply With Quote
Old Jan 24, 2012, 02:20 PM   #17
lloyddean
macrumors 6502a
 
Join Date: May 2009
Location: Des Moines, WA
You may be interested in learning about 'curl' as well, or in instead.
lloyddean is offline   0 Reply With Quote
Old Jan 24, 2012, 02:22 PM   #18
jiminaus
macrumors 65816
 
Join Date: Dec 2010
Location: Sydney
Quote:
Originally Posted by macluva18 View Post
No i don't believe so. I have a router on my end, ISP, then a router on her end.
And as for the IP, i have tried both. One was a personal address like you would set up on a LAN. the other i got from "whatismyip." same result from both. A time out.
Oh, yes you do. If your computer's IP address is not the same was whatismyip, then at some point something is translating your local private IP address into your public IP address and back again. This will be your router.

Assuming you only want to connect from your computer to her computer (and not vice-versa), you will need to setup port forwarding on her router so that FTP connections to her public IP addresses are forwarded across her router to her local private IP address.
jiminaus is offline   0 Reply With Quote
Old Jan 24, 2012, 02:27 PM   #19
subsonix
macrumors 68000
 
Join Date: Feb 2008
In the mean time, try to connect to a public anonymous ftp to confirm. For example:

Code:
ftp -a ftp.freebsd.org
Edit:

Or as jiminaus mentioned your NAT is preventing you from connect to port 21, enable port forwarding.
subsonix is online now   0 Reply With Quote
Old Jan 24, 2012, 02:45 PM   #20
chown33
macrumors 601
 
Join Date: Aug 2009
Quote:
Originally Posted by macluva18 View Post
... I had remote login and management checked, but i don't believe Web sharing was. I'll try that on my next attempt.
Web Sharing is not FTP.

To enable the FTP server, select File Sharing, click the Options button, and check "Share flies and floders using FTP". Then when you check File Sharing, it will start the FTP server daemon. (These instructions are for 10.5 or 10.6; it may differ for 10.7 (not tried), and definitely differs for 10.4 (which has a separate "FTP Access" item).)

You can check that FTP is being served using a program like CyberDuck or Transmit. Or use the ftp command-line on the localhost. Or use the 'curl' command with an ftp: URL. Or use the ftp command-line from another computer on the same network (e.g. you're at your gf's place and connected to her network). You must use the private-network address, not the public-internet address.

Or get Bonjour Browser.app (google it) and see if it sees the FTP service being advertised by the computer where you turned on FTP file sharing.
chown33 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
thread Thread Starter Forum Replies Last Post
FTPS (with TLS) from command line brijazz Mac OS X 0 Jun 22, 2011 07:00 AM
problem trying to upload a folder via ftp in terminal. newmacuser23 Mac OS X 2 Jan 5, 2011 10:01 AM
trouble using ftp in terminal macman2790 Mac Applications and Mac App Store 2 Aug 3, 2007 02:00 PM
FTP from Terminal question larswik Mac Programming 4 Sep 12, 2006 09:55 PM
OSX have build in FTP under terminal SLJ Mac OS X 3 Jun 25, 2006 07:03 AM


All times are GMT -5. The time now is 01:28 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

Privacy / DMCA contact / Affiliate and FTC Disclosure
Copyright 2002-2013, MacRumors.com, LLC