無法通過ftp登入linux系統——解決辦法

來源:互聯網
上載者:User

參考的網址:http://blog.csdn.net/hfw_1987/article/details/4370122

一、     查看ftp是否已安裝

如下提示無法識別該服務,說明未安裝ftp服務

[root@localhost root]# service vsftpd status

vsftpd: unrecognized service——表明FTP沒裝

二、     安裝ftp

在linux系統的介面上,單擊“主菜單→系統設定→添加刪除應用程式”功能表項目,在出現的“軟

件包管理”對話方塊裡確保選中 “FTP Server”選項,然後單擊“更新”按鈕,如所示:


插入第三張盤後進行安裝

三、     安裝好後查看是否成功安裝

如下提示vsftpd服務停止,表明已安裝但未開啟該服務

[root@localhost root]# service vsftpd status

vsftpd is stopped

 

四、     開啟服務

[root@localhost root]# service vsftpd start

Starting vsftpd for vsftpd:                                [ OK ]

再次查看發現已經處於啟動狀態:

[root@localhost root]# service vsftpd status

vsftpd (pid 4510) is running...

 

五、     修改root使用者可以使用ftp

預設不能用root使用者使用ftp,如下所示:

C:\Users\thinkpad>ftp 192.168.141.123

串連到 192.168.141.123。

220 (vsFTPd 1.1.3)

使用者(192.168.141.123:(none)): root

530 Permission denied.

登入失敗。

修改/etc/vsftpd.ftpusers檔案,該檔案記錄了不能使用ftp登入的使用者,將root使用者注釋

修改/etc/vsftpd.user_list檔案,將root使用者注釋。

 

說明:/etc/vsftpd.user_list檔案與/etc/vsftpd/vsftpd.conf檔案有關聯,如果/etc/vsftpd/vsftpd.conf檔案中的userlist_enable=YES(這也是預設情況下的設定),那麼在/etc/vsftpd.user_list檔案中列出的使用者就不能使用ftp。

六、     開機自動啟動ftp服務

chkconfig vsftpd on

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.