Konfigurasi FTP client Debian dan Windows

Configure Client computer to connect to FTP Server. The example below is for Windows. [1] For example, use FileZilla for FTP Client software. Download FileZilla from the follows. ⇒ https://filezilla-project.org/download.php?type=client
Mualtry

FTP : FTP Client : Debian

Configure Client computer to connect to FTP Server. The example below is for Debian.
[1] Install FTP Client.
root@client:~# apt -y install lftp

[2] The connection with root account is prohibited by default, so access with a common user to FTP Server.
# lftp [option] [hostname]

buster@client:~$ lftp -u debian www.srv.mualtry
   Password:    

  # password of the user

lftp debian@www.srv.mualtry:~>

  # show current directory on FTP server

lftp debian@www.srv.mualtry:~> pwd

  ftp://debian@www.srv.mualtry

  # show current directory on local server

lftp debian@www.srv.mualtry:~> !pwd

  /home/debian

  # show files in current directory on FTP server

lftp debian@www.srv.mualtry:~> ls


  drwxr-xr-x    2 1000     1000           23 May 9 01:33 public_html
  -rw-r--r--    1 1000     1000          399 May 9 16:32 test.py

  # show files in current directory on local server

lftp debian@www.srv.mualtry:~> !ls -l


  total 12
  -rw-rw-r-- 1 debian debian 10 May 9 14:30 debian.txt
  -rw-rw-r-- 1 debian debian 10 May 9 14:59 test2.txt
  -rw-rw-r-- 1 debian debian 10 May 9 14:59 test.txt

  # change directory

lftp debian@www.srv.mualtry:~> cd public_html

lftp debian@www.srv.mualtry:~/public_html> pwd

  ftp://debian@www.srv.mualtry/%2Fhome/debian/public_html

  # upload a file to FTP server

  # "-a" means ascii mode ( default is binary mode )

lftp debian@www.srv.mualtry:~> put -a debian.txt test.txt

  22 bytes transferred
  Total 2 files transferred

lftp debian@www.srv.mualtry:~> ls

  drwxr-xr-x    2 1000     1000           23 May 9 01:33 public_html
  -rw-r--r--    1 1000     1000           10 May 9 17:01 debian.txt
  -rw-r--r--    1 1000     1000          399 May 9 16:32 test.py
  -rw-r--r--    1 1000     1000           10 May 9 17:01 test.txt

  # upload some files to FTP server

lftp debian@www.srv.mualtry:~> mput -a test.txt test2.txt

  22 bytes transferred
  Total 2 files transferred

lftp debian@www.srv.mualtry:~> ls

  drwxr-xr-x    2 1000     1000           23 May 9 01:33 public_html
  -rw-r--r--    1 1000     1000          399 May 9 16:32 test.py
  -rw-r--r--    1 1000     1000           10 May 9 17:06 test.txt
  -rw-r--r--    1 1000     1000           10 May 9 17:06 test2.txt

  # download a file from FTP server

  # "-a" means ascii mode ( default is binary mode )

lftp debian@www.srv.mualtry:~> get -a test.py

  416 bytes transferred

  # download some files from FTP server

lftp debian@www.srv.mualtry:~> mget -a test.txt test2.txt

  20 bytes transferred
  Total 2 files transferred

  # create a directory in current directory on FTP Server

lftp debian@www.srv.mualtry:~> mkdir testdir

  mkdir ok, `testdir' created

lftp debian@www.srv.mualtry:~> ls

  drwxr-xr-x    2 1000     1000           23 May 9 01:33 public_html
  -rw-r--r--    1 1000     1000          399 May 9 16:32 test.py
  -rw-r--r--    1 1000     1000           10 May 9 17:06 test.txt
  -rw-r--r--    1 1000     1000           10 May 9 17:06 test2.txt
  drwxr-xr-x    2 1000     1000            6 May 9 17:16 testdir

  226 Directory send OK.

  # delete a direcroty in current directory on FTP Server

lftp debian@www.srv.mualtry:~> rmdir testdir

  rmdir ok, `testdir' removed

lftp debian@www.srv.mualtry:~> ls

  drwxr-xr-x    2 1000     1000           23 May 9 01:33 public_html
  -rw-r--r--    1 1000     1000          399 May 9 16:32 test.py
  -rw-r--r--    1 1000     1000           10 May 9 17:06 test.txt
  -rw-r--r--    1 1000     1000           10 May 9 17:06 test2.txt

  # delete a file in current directory on FTP Server

lftp debian@www.srv.mualtry:~> rm test2.txt

  rm ok, `test2.txt' removed

lftp debian@www.srv.mualtry:~> ls

  drwxr-xr-x    2 1000     1000           23 May 9 01:33 public_html
  -rw-r--r--    1 1000     1000          399 May 9 16:32 test.py
  -rw-r--r--    1 1000     1000           10 May 9 17:06 test.txt

  # delete some files in current directory on FTP Server

lftp debian@www.srv.mualtry:~> mrm debian.txt test.txt

  rm ok, 2 files removed

lftp debian@www.srv.mualtry:~> ls

  drwxr-xr-x    2 1000     1000           23 May 9 01:33 public_html

  # execute commands with ![command]

lftp debian@www.srv.mualtry:~> !cat /etc/passwd


  root:x:0:0:root:/root:/bin/bash

  bin:x:1:1:bin:/bin:/sbin/nologin
  ...
  ...
  debian:x:1001:1001::/home/debian:/bin/bash

  # exit
lftp debian@www.srv.mualtry:~> quit
  221 Goodbye.

FTP : FTP Client : Windows

Configure Client computer to connect to FTP Server. The example below is for Windows.
[1] For example, use FileZilla for FTP Client software. Download FileZilla from the follows.
⇒ https://filezilla-project.org/download.php?type=client

[2] Install FileZilla to your Windows PC and start it, then following screen is shown. Input your FTP's [Hostname], [Username]. [Password], like follows. Next Click [Connect].

[3] Just connected. It's possible to transfer files on it.

Terimakasih sobat telah berkunjug, untuk aplikasi FTP pada windows banyak aplikasi selain FileZilla, cari saja di google dengan keyword Aplikasi FTP, saya biasa menggunakan WINSCP untuk FTP dari windows ke server. Apabila ada hal yang ingin di tanyakan mengenai FTP bisa di tanyakan di kolom komentar ya terima kasih telah berkunjung di mualtry.com.
Mualtry
Blog pribadi tempat belajar jaringan dan automation system, diharapkan agar bisa saling berdiskusi terhadap suatu masalah agar dapat saling membantu
Comments
Malu bertanya sesat di jalan, kepo itu perlu baik untuk diri sendiri maupun orang lain