Back to Blog
networking

Akses FTP Menggunakan Command Line di Linux

Gunakan perintah ftp jika tidak pakai ssl atau ftp-ssl jika pakai ssl, seperti berikut:

ftp-ssl

Hasil:

root@new:~# ftp-ssl
ftp> 

Konek ke ftp server dengan perintah open <hostname> lalu masukkan user dan password, contoh:

ftp> open hostname.domain.com
Connected to hostname.domain.com.
220 ProFTPD Server (ProFTPD) [123.123.123.123]
Name (hostname.domain.com:root): kuro
234 AUTH TLS successful
[SSL Cipher TLS_AES_256_GCM_SHA384]
200 PBSZ 0 successful
200 Protection set to Private
[Encrypted data transfer.]
331 Password required for kuro
Password:
230 User kuro logged in
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> 

Untuk perintah-perintah nya di bawah ini:

CommandDetails
help or ?list semua perintah yang tersedia
cdpindah directory
lcdpindah directory di local
lsuntuk list file di server ftp
mkdirmembuat directory di server ftp
pwdmenunjukan path saat ini
deletehapus file di server ftp
rmdirhapus directory di server ftp
getdownload file dari server ftp ke local
mgetdownload beberapa file dari server ftp ke local
putupload file dari local ke server ftp
mputupload beberapa file dari local ke server ftp
quituntuk keluar dari server ftp

Semoga bermanfaat.

Sc: archive kuro.zone