當前位置:首頁 » 文件傳輸 » linux下連接ftp報530
擴展閱讀
webinf下怎麼引入js 2023-08-31 21:54:13
堡壘機怎麼打開web 2023-08-31 21:54:11

linux下連接ftp報530

發布時間: 2023-01-05 07:30:22

『壹』 Linux啟動ftp伺服器530 Permission denied解決方法

新在虛擬機下安裝了linux。現在我想啟動linux自帶的ftp伺服器:#service  vsftpd  start 。如果想linux啟動是自動啟動ftp伺服器:#chkconfig  vsftpd  on  。

運行putty,以root身份進入,出現了報錯  530 Permission denied  ,感覺很奇怪,因以普通用戶是可以進入的。

原因是我們 /etc/vsftpd/ftpusers  和  /etc/vsftpd/user_list  禁掉了root這個用戶。這時我們需要修改這兩個文件。

(1)/etc/vsftpd.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

bin

daemon

adm

lp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

這時我們要在 root 前加上 # 。

(2)/etc/vsftpd.ftpusers  的默認文件(所有可以登錄該FTP的用戶屬性)

# Users that are not allowed to login via ftp

root

bin

daemon

adm

lp

sync

shutdown

halt

mail

news

uucp

operator

games

nobody

這時我們要在 root 前加上 # 

擬機裝好RedHat後,准備使用filezilla連接,輸入IP地址,root用戶,密碼,快速連接,報錯:

530 Permission denied。

故障排除:

1.首先檢查系統是否開啟了vsftp服務,如果沒有開啟,先開啟該服務。

方法1.setup--系統服務--自啟動服務

方法2.界面設置,service vsftpd restart

2.查看配置

vsftpd的配置,配置文件中限定了vsftpd用戶連接控制配置。

vsftpd.ftpusers:位於/etc目錄下。它指定了哪些用戶賬戶不能訪問FTP伺服器,例如root等。

vsftpd.user_list:位於/etc目錄下。該文件里的用戶賬戶在默認情況下也不能訪問FTP伺服器,僅當vsftpd .conf配置文件里啟用userlist_enable=NO選項時才允許訪問。

vsftpd.conf:位於/etc/vsftpd目錄下。來自定義用戶登錄控制、用戶許可權控制、超時設置、伺服器功能選項、伺服器性能選項、伺服器響應消息等FTP伺服器的配置。

3.配置修改完成後,執行service vsftpd restart重啟vsftpd服務。

『貳』 ftp連接出現530 connection refused unknow ip address

使用的是伺服器,不是虛擬主機,確保地址、用戶名和密碼都正確的情況下
解決方法有二:親身經歷
一、看看iis的ftp的屬性里的目錄安全性,是否允許你電腦的ip。
二、如果允許,ftp功能關閉再打開。
問題解決。僅供參考。

『叄』 ftp錯誤代碼530,這是什麼意思要怎麼解決

您好!FTP報錯530一般會出現三種情況。
1、530 Login incorrect:這種情況,一般都是您的賬號的信息有誤,比如您的ftp地址,ftp賬號,ftp密碼以及您的埠方面有問題導致的報錯這個,那麼解決的方案也是非常的簡單,找到您正確的信息鏈接,即可正常的登錄。
2、530 Sorry, the maximum number of clients (3) from your host are already connected:這種情況從報錯的意思是說:對不起,最大客戶數(3)從你的主機已經連接,那麼出現的這個原因就是您本地的ftp工具的問題,或者是您本地的連接質量不好導致的,解決的方案更換ftp工具從新鏈接或者是暫停關閉ftp工具 從新登陸鏈接即可解決。
3、530 Not logged in, home directory does not exist:出現這樣的情況一般是伺服器的硬碟掛掉了,或者是該用戶目錄不存在導致的,具體的解決方案聯系空間商即可。
一般出現最多的就是以上幾種情況。

『肆』 關於FTP連接時出現530 Login authentication failed的問題

FTP無法連接原因

  1. 檢查39000/40000默認ftp埠是否開放;

  2. 檢查默認FTP埠21是否開放;

  3. 如果在阿里安全組里自定義了FTP埠,同時要在寶塔控制面板中設置一致;

  4. 檢查是否安裝了FTP插件,圖中兩個都可以安裝,適用不同FTP軟體。

  5. 檢查FTP密碼是否空格

以上是我兩年來總結的FTP問題,真心希望能幫到大家,如有遺漏,請高手賜教!

『伍』 在win7下建立FTP,用linux機器普通用戶通過區域網訪問win7的FTP,返回信息530 user can not log in

你的那個普通用戶是不是名為administrator?

『陸』 java調用FTP介面登陸Linux普通用戶出現異常 530 Permission denied.

應該是沒有登錄的許可權,或者就是用戶名密碼不對

『柒』 Linux下設置vsftpd虛擬賬號輸入密碼出現530錯誤

方法一:

登錄出現 vsftpd 530 login incorrect 報錯。

解決方法:

cp Path/RedHat/vsftpd.pam /etc/pam.d/ftp

path為vsftp解壓縮源文件目錄

這是因為我們RHEL啟用了PAM,所在用到vsftp時需要用到 /etc/pam.d/ftp這個文件(默認源碼安裝的不會有這個文件),因此除了匿名用戶外本地用戶無法登錄。

方法二:

在測試Checkpoint的VPN1 R6x的時候,遇到了這個錯誤。這說明client端跟server端的連接性是沒問題。但是就是想不出為什麼,還以為是用戶名和口令錯誤呢。後來才google了一下,發現是server端的配置有問題。

檢查/etc/vsftpd/user_list和/etc/ftpusers,是這個文件/etc/vsftpd/vsftpd.conf少了一行:

復制代碼
代碼如下:

pam_service_name=vsftpd
$ echo 『pam_service_name=vsftpd』 >>/etc/vsftpd/vsftpd.conf
$ service vsftpd restart

530 error就消除了!
下面是更詳細的方法:
[root@atr-3-server1 admin]# cat /etc/vsftpd/vsftpd.conf
# Example config file /etc/vsftpd.conf
#
# The default compiled in settings are fairly paranoid. This sample file
# loosens things up a bit, to make the ftp daemon more usable.
# Please see vsftpd.conf.5 for all compiled in defaults.
#
# READ THIS: This example file is NOT an exhaustive list of vsftpd options.
# Please read the vsftpd.conf.5 manual page to get a full idea of vsftpd's
# capabilities.
#
# Allow anonymous FTP? (Beware - allowed by default if you comment this out).
anonymous_enable=no
#
# Uncomment this to allow local users to log in.
local_enable=YES
#
# Uncomment this to enable any form of FTP write command.
write_enable=YES
#
# Default umask for local users is 077. You may wish to change this to 022,
# if your users expect that (022 is used by most other ftpd's)
local_umask=022
#
# Uncomment this to allow the anonymous FTP user to upload files. This only
# has an effect if the above global write enable is activated. Also, you will
# obviously need to create a directory writable by the FTP user.
#anon_upload_enable=YES
#
# Uncomment this if you want the anonymous FTP user to be able to create
# new directories.
#anon_mkdir_write_enable=YES
#
# Activate directory messages - messages given to remote users when they
# go into a certain directory.
dirmessage_enable=YES
#
# Activate logging of uploads/downloads.
xferlog_enable=YES
#
# Make sure PORT transfer connections originate from port 20 (ftp-data).
connect_from_port_20=YES
#
# If you want, you can arrange for uploaded anonymous files to be owned by
# a different user. Note! Using "root" for uploaded files is not
# recommended!
#chown_uploads=YES
#chown_username=whoever
#
# You may override where the log file goes if you like. The default is shown
# below.
#xferlog_file=/var/log/vsftpd.log
#
# If you want, you can have your log file in standard ftpd xferlog format
xferlog_std_format=YES
#
# You may change the default value for timing out an idle session.
#idle_session_timeout=600
#
# You may change the default value for timing out a data connection.
#data_connection_timeout=120
#
# It is recommended that you define on your system a unique user which the
# ftp server can use as a totally isolated and unprivileged user.
#nopriv_user=ftpsecure
#
# Enable this and the server will recognise asynchronous ABOR requests. Not
# recommended for security (the code is non-trivial). Not enabling it,
# however, may confuse older FTP clients.
#async_abor_enable=YES
#
# By default the server will pretend to allow ASCII mode but in fact ignore
# the request. Turn on the below options to have the server actually do ASCII
# mangling on files when in ASCII mode.
# Beware that turning on ascii_download_enable enables malicious remote parties
# to consume your I/O resources, by issuing the command "SIZE /big/file" in
# ASCII mode.
# These ASCII options are split into upload and download because you may wish
# to enable ASCII uploads (to prevent uploaded scripts etc. from breaking),
# without the DoS risk of SIZE and ASCII downloads. ASCII mangling should be
# on the client anyway..
#ascii_upload_enable=YES
#ascii_download_enable=YES
#
# You may fully customise the login banner string:
#ftpd_banner=Welcome to blah FTP service.
#
# You may specify a file of disallowed anonymous e-mail addresses. Apparently
# useful for combatting certain DoS attacks.
#deny_email_enable=YES
# (default follows)
#banned_email_file=/etc/vsftpd.banned_emails
#
# You may specify an explicit list of local users to chroot() to their home
# directory. If chroot_local_user is YES, then this list becomes a list of
# users to NOT chroot().
#chroot_list_enable=YES
# (default follows)
#chroot_list_file=/etc/vsftpd.chroot_list
#
# You may activate the "-R" option to the builtin ls. This is disabled by
# default to avoid remote users being able to cause excessive I/O on large
# sites. However, some broken FTP clients such as "ncftp" and "mirror" assume
# the presence of the "-R" option, so there is a strong case for enabling it.
#ls_recurse_enable=YES
pam_service_name=vsftpd
userlist_enable=YES
#enable for standalone mode
listen=YES
tcp_wrappers=YES
具體你也可以去看下http://www.linuxprobe.com/chapter-11.html這里有更詳細的操作方法希望可以幫到你啊

『捌』 Linux中ftp連接530錯誤的解決方法

首先,如果正在使用vsftpd,可以先把其停掉,命令:service vsftpd stop,接下來需要編輯/etc/xinetd.d/下的`gssftp配置文件,文件內容如下:

# default: off

# description: The kerberized FTP server accepts FTP connections

# that can be authenticated with Kerberos 5.

service ftp

{

disable = yes

flags = REUSE

socket_type = stream

wait = no

user = root

server = /usr/kerberos/sbin/ftpd

server_args = -l -a

log_on_failure += USERID

}

在文件中,我們要修改的內容有:

1、disable = yes 改為 disable =no ,系統默認ftp功能是無效的,修改使ftp功能生效。

2、server_args = -l -a 改為 server_args = -l。

without -a means : *enable weak authentication*

其中表示使用Kerberos 5驗證機制,而一般的ftp是不支持該驗證機制的。

修改完畢後,將其保存。

3、重啟啟動xinetd服務。請執行一下的命令(/etc/xinetd.d/):

service xinetd restart

service vsftpd restart