Dell Unity:如何設定 FTP 和 SFTP 的所有功能
Summary: 本文說明如何在 Dell Unity 陣列上為 NAS 伺服器設定檔案傳輸通訊協定 (FTP) 和安全檔案傳輸通訊協定 (SFTP)。
This article applies to
This article does not apply to
This article is not tied to any specific product.
Not all product versions are identified in this article.
Instructions
若要從 Unisphere (UI) 啟用和設定 FTP:
前往 Unisphere > 檔案 > NAS 伺服器 > 編輯 > 共用通訊協定 > FTP:
若要從 Unisphere (UI) 啟用和設定 FTP:
service@spa spa:~> uemcli -no -u admin -p mypasswd /net/nas/ftp -server nas_8 set -ftpEnabled yes -sftpEnabled yes -anonymousUserEnabled yes -cifsUserEnabled yes -unixUserEnabled yes
Operation completed successfully.
Note : Refer to "uemcli /net/nas/ftp -help" for all other available options
若要以 FTP 使用者身分登入:
如果 NAS 伺服器有網域加入 一般網際網路檔案系統 (CIFS) 伺服器,網域使用者可以下列其中一種身分登入:
domain\user or user@domain
Example (domain name is EXAMPLE):
EXAMPLE\user100 or user100@example.com
如果 NAS 伺服器是 Unity 上的獨立 CIFS 伺服器,下列方法可登入:
servername\user or user@servername or local\user or user@local
Example (standalone nas server name is MYCIFS):
MYCIFS\user100 or user100@mycifs or local\user100 or user100@local
C:\>ftp ftp02
Connected to ftp02
220 NASFTP FTP server (EMC:upc_Unity_6_HF5_upcBuilder:9328432) ready.
User ( ftp02 :( none)): Local\administrator
331 Password required for Local\administrator.
Password:
230- No directory! Logging in with home=/nasftp_fs01.
230 NT User Local\administrator logged in.
ftp>
如果 NAS 伺服器用於 僅限網路檔案系統 (NFS),Unity 需要目錄服務(例如輕量型目錄存取通訊協定 (LDAP) 或網路資訊服務 (NIS)) 才能進行使用者驗證。如果沒有可用的 LDAP 或 NIS (需要手動設定使用者/密碼),也可以使用本機檔案。
C:\>ftp ftp02
Connected to ftp02
220 FTP02 FTP server (EMC:upc_Unity_6_HF5_upcBuilder:9328432) ready.
User (ftp02 :(none)): user100
331 Password required for user100.
Password:
230 UNIX User user100 logged in.
ftp> ls
200 PORT command successful.
150 Opening ASCII mode data connection for 'file list'.
lost+found
etc
publicftp
226 Transfer complete.
ftp: 29 bytes received in 0.00Seconds 29000.00Kbytes/sec.
ftp> bye
221 Goodbye.
匿名登入 (也稱為 ftp):
C:\>ftp ftp02
Connected to ftp02
220 FTP02 FTP server (EMC:upc_Unity_6_HF5_upcBuilder:9328432) ready.
User (ftp02 :(none)): anonymous
331 Guest login ok, type your name as password.
Password:
230 Guest login ok, access restrictions apply.
ftp> _
若要設定本機使用者:
必須這樣輸入使用者詳細資訊:
01:42:18 service@spa spa:~> cat passwd
# The passwd file contains the users who can access the NAS server.
#
# Each line of the passwd file defines a user and has the format:
# username:password:uid:gid:gcos
# where:
# - username is the user's login name.
# When querying for Windows users, the system checks for CIFS usernames without domain extensions.
# - password is an empty field. The encrypted password for the user is in the
# corresponding entry in the shadow file.
# - uid is the user's unique numerical ID for the system.
# - gid is the unique numerical ID of the group to which the user belongs.
#
# user:password:uid:gid:gcos:homedir:
ftp:ffX6M7x34lzYI:2000:2000::/fs01:
user100:ffX6M7x34lzYI:2001:2001::/fs01:
user200:l8Yykofh8ckbU:2002:2002:
user300:ABVmdrEehFnsI:2002:2002:QLs4hM#3w2s1drrYowsXsaPMuz:/fs01/publicftp:
user400:QQueVwnnAFCjc:2003:2003:PZraGM#K321ldrWKowssLaPVgp::
usertest:eeRJFmFoGS4lw:2004:2004::/fs01/publicftp:
usertest2:8II12yC6iqFEY:2004:2004::/fs01/publicftp:
使用 UEMCLI 下載:
uemcli -u admin -p password -download /net/nas/server -name server_name -type passwd
EXAMPLE:
03:37:51 service@spa spa:~> uemcli -u admin -p mypasswd -upload -f /home/service/passwd /net/nas/server -name FTP02 -type passwd
Uploaded 962 byte of 962 byte [ 100.0% ] -PROCESSING-
Operation completed successfully.
使用 UEMCLI 上傳:
uemcli -u admin -p password -upload -f /cores/service/passwd /net/nas/server -name server_name -type passwd
EXAMPLE:
03:37:40 service@spa spa:~> uemcli -download -f /cores/service/passwd /net/nas/server -name FTP02 -type passwd
Downloaded 962 byte of 962 byte [ 100.0% ] -STALLED-
Operation completed successfully.Additional Information
注意:
- 若要讓匿名使用者正常工作,必須有一個名為
ftp含UID必須在目錄提供者或本地檔案中定義。- 本機檔案範例:
ftp:*:1000:1000::/fs01/publicftp:
- 本機檔案範例:
- 如果使用「本機檔案」,可使用以下命令產生密碼欄位:
openssl(直接來自 Unity):- 範例:
User user100, Password to be "Password123#", uid and gid as 3000, homedir as /fshomedir/data - 此命令使用 SHA256 型密碼演算法。使用命令
'openssl passwd -6 Password123#'如果需要 SHA512 型密碼演算法。
- 範例:
$ openssl passwd Password123#
Warning: truncating password to 8 characters <-- note, it takes only 1st 8 char
9QWNQEDjvlRog
$ openssl passwd
Password: <-- password can be typed here if not to be seen
Verifying - Password:
yT4C/OPx6AHXM
Entry on "passwd" file should be: user100:9QWNQEDjvlRog:3000:3000::/fshomedir/data:
- SFTP 要求登入的使用者擁有主目錄。
- 這可能會阻止匿名使用者。
- SFTP 可能會在以下情況下失敗:
LACP已使用。- 如果連接埠 22 似乎遭到封鎖,請參閱 Dell Unity:啟用 LACP 時,Unity SFTP 無法運作。
Affected Products
Dell EMC Unity, Dell EMC Unity Family |Dell EMC Unity All Flash, Dell EMC Unity HybridProducts
Dell EMC Unity FamilyArticle Properties
Article Number: 000021919
Article Type: How To
Last Modified: 28 Oct 2025
Version: 7
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.