Hello
I've created ftp server and copied CentOS 7 ISO files into
/var/ftp/pub/cent folder.
In a web browser, if I enter address '
ftp://192.168.1.7/pub/cent', I'll be displayed with the list of files. However, if I enter the same in the terminal, I get the error.
Code:
# ftp ftp://192.168.1.7/pub/cent
ftp: ftp://192.168.1.7/pub/cent: Name or service not known
ftp>
# ftp 192.168.1.7/pub/cent
ftp: 192.168.1.7/pub/cent: Name or service not known
But if I ftp to root folder, I'll be logged in.
Code:
# ftp 192.168.1.7
Connected to 192.168.1.7 (192.168.1.7).
220 (vsFTPd 3.0.2)
Name (192.168.1.7:root): anonymous
331 Please specify the password.
Password:
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> cd pub/cent
250 Directory successfully changed.
ftp> ls
227 Entering Passive Mode (192,168,1,7,136,204).
150 Here comes the directory listing.
-rw-rw-r-- 1 0 0 14 Nov 25 16:01 CentOS_BuildTag
drwxr-xr-x 3 0 0 35 Nov 25 16:20 EFI
-rw-rw-r-- 1 0 0 227 Aug 30 2017 EULA
-rw-rw-r-- 1 0 0 18009 Dec 09 2015 GPL
drwxr-xr-x 2 0 0 43 Nov 25 16:20 LiveOS
drwxrwxr-x 2 0 0 221184 Nov 25 23:52 Packages
-rw-rw-r-- 1 0 0 1690 Dec 09 2015 RPM-GPG-KEY-CentOS-7
-rw-rw-r-- 1 0 0 1690 Dec 09 2015 RPM-GPG-KEY-CentOS-Testing-7
-r--r--r-- 1 0 0 2883 Nov 25 23:54 TRANS.TBL
drwxr-xr-x 3 0 0 57 Nov 25 16:21 images
drwxr-xr-x 2 0 0 198 Nov 25 16:20 isolinux
drwxrwxr-x 2 0 0 4096 Nov 25 23:53 repodata
226 Directory send OK.
ftp>
How do I ftp directly into /var/ftp/pub/cent folder?
Thanks