解決ftp無法連線登入linux的辦法

2022-03-02 14:32:52 字數 1513 閱讀 1228

1. 首先安裝vsftpd

命令:yum -y install vsftpd

之後開啟服務:service vsftpd start

2.關閉防火牆

1) 重啟後生效 

開啟: chkconfig iptables on

關閉: chkconfig iptables off

2) 即時生效,重啟後失效

開啟: service iptables start

關閉: service iptables stop

3.預設情況下vsftp是不允許root使用者登入的,可以通過修改限制來解決這個問題。

首先找到vsftp的配置目錄

[root@localhost vsftpd]# pwd

/etc/vsftpd

[root@localhost vsftpd]# ls

chroot_list ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh

[root@localhost vsftpd]#

修改[root@localhost vsftpd]# cat ftpusers

# users that are not allowed to login via ftp

#root

bindaemon

admlp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

修改[root@localhost vsftpd]# cat user_list

# vsftpd userlist

# if userlist_deny=no, only allow users in this file

# if userlist_deny=yes (default), never allow users in this file, and

# do not even prompt for a password.

# note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers

# for users that are denied.

#root

bindaemon

admlp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

上面這個兩個就是預設情況下vsftp不允許使用的賬號列表,講檔案中root刪除,或者前面加個#號 重啟一下vsftpd 服務 即可

4.將 /etc/selinux/config 中的enforcing 模式改為disabled, 然後重啟

wordpress 無法安裝,ftp無法連線問題

第乙個問題 1.你的ftp賬號或者密碼填錯了 2.直接在 根目錄的 wp config.php上填寫 新增 ftp 資訊,防止每次都提示輸入 define ftp host ftp.yoursite.com define ftp user your ftp username define ftp p...

寶塔Linux面板FTP無法連線的解決辦法

我使用的是阿里雲伺服器,需要在安全組設定中,對22 21埠放行,並且被動埠 39000 40000 也需要處於放行狀態 即是指在阿里雲安全組的新增埠範圍為 39000 40000 的設定 寶塔linux面板在使用sftp用最高許可權連線時一切正常,但是使用在寶塔裡面建立的ftp的賬號密碼,就無法登陸...

FTP無法連線 列表錯誤

1 檢查防火牆,是否允許20 21 22埠等 2 重建ftp站點,檢查讀 寫許可權,檢查站點資料夾許可權,修改ftp密碼等 3 嘗試關閉 開啟flashfxp的被動模式pasv 主動模式port 我折騰乙個通宵 等 4 關閉 更換ftp軟體,重啟電腦 換電腦 重啟伺服器等 5 看了網上幾百條解決辦法...