Use the put
command after connecting to the FTP server with ftp
(it is interactive, btw).
put local-file [remote-file]
Store a local file on the remote machine. If remote-file is left unspecified, the local file name is used after processing according to any ntrans or nmap settings in
naming the remote file. File transfer uses the current settings for type, format, mode, and structure.
Example login:
~ $ ftp 127.0.0.1
Connected to 127.0.0.1.
220---------- Welcome to Pure-FTPd [privsep] ----------
220-You are user number 1 of 25 allowed.
220-Local time is now 10:47. Server port: 21.
220-This is a private system - No anonymous login
220-IPv6 connections are also welcome on this server.
220 You will be disconnected after 15 minutes of inactivity.
Name (127.0.0.1:user1): user2
331 User user2 OK. Password required
Password:
230 OK. Current restricted directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
Example copy (login required before it):
ftp> put index.html
local: index.html remote: index.html
200 PORT command successful
150 Connecting to port 43791
226-File successfully transferred
226 0.003 seconds (measured here), 3.96 Mbytes per second
10701 bytes sent in 0.00 secs (34.4773 MB/s)
Example logout (login required before it)
ftp> quit
221-Goodbye. You uploaded 11 and downloaded 0 kbytes.
221 Logout.
~ $
ftp
tool in Ubuntu, but it looks like it's choking on theftp://
. try taking that out maybe?man ftp
at command line