1. 程式人生 > 實用技巧 >FileZilla的使用方法及kali系統ftp服務的安裝

FileZilla的使用方法及kali系統ftp服務的安裝

FileZilla軟體的使用方法和kali系統ftp服務的安裝

首先介紹一下FileZilla,主要解決FTP的基本使用,類似與FTP服務上傳和下載,是本地和伺服器端運輸的橋樑。
kali預設不安裝ftp服務的,所以使用FileZilla之前保證ftp服務正常執行。

kali系統FTP的安裝

終端直接開始:

apt-get install vsftpd # 預設為vsftpd即ftp

然後開啟ftp服務

#開啟ftp服務
service vsftpd start
#重啟ftp服務
service vsftpd restart
#停止ftp服務

service vsftpd stop
#檢視狀態
service vsftpd status

建立專門用於上傳下載的目錄

[email protected]:~# mkdir /home/uftp #建立宿主目錄
[email protected]:~# cd /home/
[email protected]:/home# ls
uftp
[email protected]:/home# chmod 777 uftp/ #賦予許可權

新建使用者並設定密碼

[email protected]:/home# useradd -d /home/uftp/ -s /bin/bash uftp #虛擬使用者的本地對映賬號uftp

[email protected]:/home# passwd uftp
[email protected]i:/home# passwd uftp
輸入新的 UNIX 密碼:
重新輸入新的 UNIX 密碼:
passwd:已成功更新密碼

還需要設定ftp的配置檔案:

[email protected]:/home# vim /etc/vsftpd.conf
找到,然後去掉其前面的註釋,便於寫入檔案,儲存退出即可
write_enable=YES

新建/etc/allowed_users,新增允許訪問的使用者,在檔案中新增剛剛建立的使用者uftp

vim /etc/allowed_users

uftp

如果想用root使用者登入,需要配置/etc/ftpusers,給root加上註釋即可

[email protected]:/home# leafpad /etc/ftpusers

#/etc/ftpusers: list of users disallowed FTP access. See ftpusers(5).
#root
daemon
bin
sys
sync
games
man
lp
mail
news
uucp
nobody

配置完成後,重新啟動ftp服務

[email protected]:/home# service vsftpd restart

使用FileZill

為大家準備一張圖讓你對FileZilla有足夠的認識,圖中的文字標註也請看一遍。
為大家準備一張圖讓你對FileZilla有足夠的認識,圖中的文字標註也請看一遍。