FTP server on Ubuntu
FTP server:
To install:
sudo apt install vsftpd
Anonymous FTP Configuration:
- Go to this file sudo vi /etc/vsftpd.conf and change below
anonymous_enable=Yes
File location:
cd /srv/ftp/
- copy our file into above location.
- To restart the vsfpd server:
sudo service vsftpd restart
If we restart then only anonymous user will be take effect
From Client:
To connect:
ftp 172.31.141.47
username: anonymous
pwd is just give enter(empty string)
------- snip ---------
Connected to 172.31.141.47.
220 (vsFTPd 3.0.2)
Name (172.31.141.47:labuser): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
------------------ snip -------------
Connected to 172.31.141.47.
220 (vsFTPd 3.0.2)
Name (172.31.141.47:labuser): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp>
------------------ snip -------------
Command:
ls -> to list remove server file
!ls -> to list client VM file list.
get file.txt -> To download the file
put file.txt -> To upload the file to the server.
--------- snip of get ----------
ftp> get 210
local: 210 remote: 210
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for 210 (45219860 bytes).
226 Transfer complete.
45219860 bytes received in 3.90 secs (11335.1 kB/s)
ftp>
--------- snip of get ----------
ftp> get 210
local: 210 remote: 210
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for 210 (45219860 bytes).
226 Transfer complete.
45219860 bytes received in 3.90 secs (11335.1 kB/s)
ftp>
--------- snip of get ----------
No comments:
Post a Comment