国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Ubuntu離線安裝Vsftp

這篇具有很好參考價(jià)值的文章主要介紹了Ubuntu離線安裝Vsftp。希望對(duì)大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請(qǐng)大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問(wèn)。

?這是資源包:(14條消息) unbuntu-vsftp.server-Linux文檔類資源-CSDN文庫(kù)

一、安裝vsftp

? ? ? ? 將包解壓,然后在解壓報(bào)的目錄下一鍵安裝

dpkg -i *.deb // 安裝所有
systemctl status vsftpd #查看運(yùn)行狀態(tài)
systemctl restart vsftpd  #重新啟動(dòng)vsftp

二、修改配置文件

? ? ? ? 這是我的配置文件,如果第一次配置建議直接照搬

# 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.
#
#
# Run standalone?  vsftpd can run either from an inetd or as a standalone
# daemon started from an initscript.
listen=YES
#
# This directive enables listening on IPv6 sockets. By default, listening
# on the IPv6 "any" address (::) will accept connections from both IPv6
# and IPv4 clients. It is not necessary to listen on *both* IPv4 and IPv6
# sockets. If you want that (perhaps because you want to listen on specific
# addresses) then you must run two copies of vsftpd with two configuration
# files.
#listen_ipv6=YES
#
# Allow anonymous FTP? (Disabled by default).
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
#
# If enabled, vsftpd will display directory listings with the time
# in  your  local  time  zone.  The default is to display GMT. The
# times returned by the MDTM FTP command are also affected by this
# option.
use_localtime=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.
# Note that the default log file location is /var/log/xferlog in this case.
#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 on some FTP servers, ASCII support allows a denial of service
# attack (DoS) via the command "SIZE /big/file" in ASCII mode. vsftpd
# predicted this attack and has always been safe, reporting the size of the
# raw file.
# ASCII mangling is a horrible feature of the protocol.
#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 restrict local users to their home directories.  See the FAQ for
# the possible risks in this before using chroot_local_user or
# chroot_list_enable below.
chroot_local_user=YES
#
# 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().
# (Warning! chroot'ing can be very dangerous. If using chroot, make sure that
# the user does not have write access to the top level directory within the
# chroot)
#chroot_local_user=YES
local_root=/servicedata
chroot_list_enable=YES
# (default follows)
chroot_list_file=/etc/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
#
# Customization
#
# Some of vsftpd's settings don't fit the filesystem layout by
# default.
#
# This option should be the name of a directory which is empty.  Also, the
# directory should not be writable by the ftp user. This directory is used
# as a secure chroot() jail at times vsftpd does not require filesystem
# access.
secure_chroot_dir=/var/run/vsftpd/empty
#
# This string is the name of the PAM service vsftpd will use.
pam_service_name=vsftpd
#
# This option specifies the location of the RSA certificate to use for SSL
# encrypted connections.
rsa_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
rsa_private_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
ssl_enable=NO

allow_writeable_chroot=YES
#
# Uncomment this to indicate that vsftpd use a utf8 filesystem.
#utf8_filesystem=YES

? ? ? ? 需要在etc目錄下建立一個(gè)文件?chroot_list,該文件內(nèi)存放的是可以訪問(wèn)vsftp服務(wù)器的用戶名

local_root=/servicedata 該配置決定了用戶可以訪問(wèn)哪個(gè)文件夾,我設(shè)置的是/servicedata目錄

Ubuntu離線安裝Vsftp

?三、創(chuàng)建訪問(wèn)的用戶

? ? ? ? 在vsftp中沒(méi)有用戶是訪問(wèn)不了的,據(jù)說(shuō)有匿名訪問(wèn),但是為了服務(wù)器安全,沒(méi)有設(shè)置相關(guān)的配置。

????????創(chuàng)建一個(gè)訪問(wèn)服務(wù)器的用戶

useradd -m -g viewer viewer  創(chuàng)建組用戶

passwd 用戶名  //設(shè)置用戶密碼

? ? ? ? 將創(chuàng)建的用戶寫入chroot_list文件中,也可以將本地用戶放進(jìn)去。

Ubuntu離線安裝Vsftp

? ? ? ? ?最后重啟:systemctl restart vsftpd

四、測(cè)試

在另一臺(tái)電腦上WIN+R打開(kāi)命令板

Ubuntu離線安裝Vsftp

輸入用戶名和密碼

Ubuntu離線安裝Vsftp

?出現(xiàn)230 login successful 表示成功登錄

Ubuntu離線安裝Vsftp

?輸入ls可以看到當(dāng)前文件目錄下的所有資源

使用get可以獲取某文件

Ubuntu離線安裝Vsftp

?文章來(lái)源地址http://www.zghlxwxcb.cn/news/detail-466821.html

到了這里,關(guān)于Ubuntu離線安裝Vsftp的文章就介紹完了。如果您還想了解更多內(nèi)容,請(qǐng)?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!

本文來(lái)自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場(chǎng)。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請(qǐng)注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請(qǐng)點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • ubuntu離線安裝包下載和安裝

    ubuntu離線安裝包下載和安裝

    方法1: 方法2: 比如需要下載 lm-sensors, 在 search欄中添加搜索 找到ubuntu20.04 對(duì)應(yīng)的deb包,點(diǎn)擊進(jìn)去,找到 Download -- BinaryPackage 復(fù)制粘貼 對(duì)應(yīng)的url到瀏覽器即可完成下載 http://archive.ubuntu.com/ubuntu/pool/universe/l/lm-sensors/lm-sensors_3.6.0-2ubuntu1_amd64.deb

    2024年02月20日
    瀏覽(16)
  • Ubuntu 離線安裝Mysql

    下載Mysql安裝包 下載地址:MySQL :: Download MySQL Community Server 2.1解壓安裝包 ? ? ? ? 創(chuàng)建目錄 mkdir? mysql ? ? ? ? 解壓到創(chuàng)建的目錄下 tar -xvf mysql-server_8.0.29-1ubuntu21.10_amd64.deb-bundle.tar -C /home/mysql/ 2.2增加執(zhí)行權(quán)限 chmod +x *.deb 2.3安裝 ?安裝依賴包 sudo dpkg -i libaio1_0.3.112-9_amd64.deb ?

    2024年02月15日
    瀏覽(18)
  • Ubuntu:離線安裝docker

    簡(jiǎn)介 :在 Ubuntu 上離線安裝 Docker 需要事先在有網(wǎng)絡(luò)連接的設(shè)備上下載 Docker 安裝包及其依賴項(xiàng),然后將這些文件傳輸?shù)侥繕?biāo) Ubuntu 設(shè)備上進(jìn)行安裝。 歷史攻略: ubuntu卸載docker centos7.6:安裝docker 離線安裝 Docker 的步驟: 1、在有網(wǎng)絡(luò)連接的設(shè)備上下載 Docker 安裝包及依賴項(xiàng) :

    2024年02月16日
    瀏覽(14)
  • Ubuntu離線安裝Telnet服務(wù)

    Ubuntu離線安裝Telnet服務(wù)

    通過(guò)ssh上傳telnet包,下載地址:telnet-0.17-41.2build1-amd64資源-CSDN文庫(kù) 解壓telnet包: 安裝telnet服務(wù): ?安裝完畢,測(cè)試telnet服務(wù): ?出現(xiàn)這個(gè)說(shuō)明telnet服務(wù)安裝成功 按住ctrl 鍵輸入 ] 進(jìn)行下一步,可以對(duì)連接的服務(wù)器進(jìn)行操作

    2024年02月11日
    瀏覽(16)
  • RHEL 9配置vsftp服務(wù)的安裝及部署

    FTP(File Transfer Protocol)是一種用于在計(jì)算機(jī)之間傳輸文件的協(xié)議。它允許用戶通過(guò)網(wǎng)絡(luò)連接到遠(yuǎn)程服務(wù)器,并在本地計(jì)算機(jī)和服務(wù)器之間傳輸文件。 FTP服務(wù)器提供了存儲(chǔ)和管理文件的功能,并允許用戶通過(guò)FTP客戶端連接到服務(wù)器來(lái)上傳、下載、刪除和重命名文件。FTP服務(wù)器

    2024年04月16日
    瀏覽(17)
  • Backend - Docker 離線安裝(Ubuntu)

    Backend - Docker 離線安裝(Ubuntu)

    目錄 一、安裝 docker 1. 下載docker離線包 2.?用Winscp打開(kāi)桌面 3. 打開(kāi)putty 4. 解壓 5.?授權(quán)docker文件目錄為可執(zhí)行文件 6. 將docker文件夾復(fù)制到 /usr/bin 目錄下 7. 查看版本 二、docker-compose 1. 下載docker-compose離線包 2.將下載好的離線包拖拽到服務(wù)器上 3. ls查看是否有x86_64文件包 4. 將

    2024年04月09日
    瀏覽(15)
  • Ubuntu離線安裝g++、locales

    要在Ubuntu上離線安裝g++,你需要在有網(wǎng)絡(luò)連接的機(jī)器上下載g++和它的依賴,然后將它們傳輸?shù)诫x線的Ubuntu機(jī)器上進(jìn)行安裝。以下是步驟和示例命令: 確保你在離線機(jī)器上有足夠的權(quán)限來(lái)執(zhí)行上述命令。如果網(wǎng)絡(luò)連接的機(jī)器是Ubuntu Server,那么你可以直接使用apt-offline命令。如果

    2024年04月26日
    瀏覽(17)
  • (筆記)ubuntu離線更新、安裝軟件包

    (筆記)ubuntu離線更新、安裝軟件包

    不聯(lián)網(wǎng)的技術(shù)部,令人頭痛。 1.在可以聯(lián)網(wǎng)的ubuntu主機(jī)上更新緩存相關(guān)依賴包 執(zhí)行sudo apt-get -d update? (-d為下載模式、不安裝) 2.緩存軟件包(如vlc) 執(zhí)行sudo apt-get -d install vlc? ?(如果已經(jīng)安裝,且緩存deb文件被清理掉了。可通過(guò)命令sudo apt-get remove --purge vlc進(jìn)行卸載,再次下

    2024年02月13日
    瀏覽(25)
  • Ubuntu20下的Docker的離線安裝

    Ubuntu20下的Docker的離線安裝

    在實(shí)際項(xiàng)目中,經(jīng)常遇到一些純內(nèi)網(wǎng)的環(huán)境,對(duì)于項(xiàng)目的部署來(lái)說(shuō)就需要做到離線安裝Docker,然后把項(xiàng)目的外網(wǎng)鏡像從拷貝到內(nèi)網(wǎng)進(jìn)行部署。下面主要記錄下如何離線安裝Docker 1.下載Docker的離線安裝包 Docker的離線安裝需要用到containerd.io ,docker-ce-cli,docker-ce,從下面的網(wǎng)址下

    2024年02月01日
    瀏覽(20)
  • Ubuntu openssh-server 離線安裝

    經(jīng)常用到ubunutu 20.04容器,但是沒(méi)有ssh比較難調(diào)試代碼,離線環(huán)境下安裝方法: 安裝以下三個(gè)軟件包,點(diǎn)擊openssh下載鏈接可下載: 1、openssh-client_8.2p1-4_amd64.deb 2、openssh-sftp-server_8.2p1-4_amd64.deb 3、openssh-server_8.2p1-4_amd64.deb 然后執(zhí)行 正常裝完即可。 其余ubuntu版本可以自己搜一下

    2024年02月01日
    瀏覽(20)

覺(jué)得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請(qǐng)作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包