View Single Post
  #6   (View Single Post)  
Old 20th August 2009
IdOp's Avatar
IdOp IdOp is offline
Too dumb for a smartphone
 
Join Date: May 2008
Location: twisting on the daemon's fork(2)
Posts: 1,027
Default

Quote:
Originally Posted by ahlsner View Post
In NBSD, I've tried often FTP, but the server "eject" me because it doesn-t like anonymous. Please, show me the syntax for connecting in anonymous mode on a ftp server. The man ftp is too verbose for me, and I search a simple command.
This works for me:
Code:
$ ftp ftp.netbsd.org
Connected to ftp.netbsd.org.
220 ftp.NetBSD.org FTP server (NetBSD-ftpd 20080916) ready.
Name (ftp.netbsd.org:xxx): ftp
331 Guest login ok, type your name as password.
Password: foo@bar
230-
    The NetBSD Project FTP Server located in Redwood City, CA, USA
    1 Gbps connectivity courtesy of                          ,        ,
... <much of login message snipped out> ...
230 Guest login ok, access restrictions apply.
bin
200 Type set to I.
?Invalid command
?Invalid command
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
Note: I typed the username "ftp" (you should also be able to use "anonymous", but since it's long the chance of making a typo are too high, so use "ftp"). I typed the password "foo@bar", although it does not echo I showed it above ... you could probably type anything you want there.

Quote:
ping ftp.netbsd.org returns values as success.
ping ftp://ftp.netbsd.org : it doesn't like.
The first form is correct, ping just needs/wants a hostname. The second form is wrong, since it's a URL and the ftp:// in front specifies a protocol to use, and this is meaningless to ping.

Quote:
To morrow, I'll try :
pkg_add ftp://ftp.netbsd.org/pub/pkgsrc/pack...ild-2.24.1.tgz
That should work. I also like to use the mirror ftp://ftp2.us.NetBSD.org, it's fast ... but you are in France so I don't know if it will be faster than something close to you. Good luck with it.
Reply With Quote