~ $ ftp 192.168.0.106
Connected to 192.168.0.106.
220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 1 of 5 allowed.
220-Local time is now 03:02. 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 (192.168.0.106:): test
331 User test OK. Password required
Password:
230 OK. Current directory is /
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
ファイルアップロード
FTPサーバへのアクセス接続後、以下コマンドでファイルをアップロードします。
ftp> put test.txt
local: test.txt remote: test.txt
229 Extended Passive mode OK (|||30000|)
150 Accepted data connection
100% |*************************************************************************************| 16 12.51 KiB/s 00:00 ETA
226-File successfully transferred
226 0.004 seconds (measured here), 4.04 Kbytes per second
16 bytes sent in 00:00 (3.52 KiB/s)
ftp>
ftp>
ftp> ls
229 Extended Passive mode OK (|||30009|)
150 Accepted data connection
-rw-r--r-- 1 1000 ftpgroup 16 Mar 20 04:31 test.txt
-rw-r--r-- 1 1000 ftpgroup 0 Mar 14 03:36 test_get.txt
226-Options: -l
226 2 matches total
ftp>
コメント