SUSE 12.2 安装配置 FTP Server

SUSE 12.2 安装配置 FTP Server :


或者使用yast2 配置
安装:
# zypper -n install vsftpd

配置:
# vi /etc/vsftpd.conf   更改内容如下:
# line 19: change
write_enable=YES

# line 36: uncomment
ls_recurse_enable=YES

# line 62,63: uncomment ( enable chroot )
chroot_local_user=YES
chroot_list_enable=YES


# line 65: uncomment ( chroot list )
chroot_list_file=/etc/vsftpd.chroot_list


# line 80: no anonymous
anonymous_enable=NO


# line 171,172: uncomment ( allow ascii mode )
ascii_upload_enable=YES
ascii_download_enable=YES


# line 184: change ( listen IPv4 )
listen=YES


# line 189: change ( turn to OFF if it's not need )
listen_ipv6=NO


# add follows to the end
# specify root directory ( if don't specify, users' home directory become FTP home directory)
local_root=public_html


# use local time
use_localtime=YES


修改:
# vi /etc/vsftpd.chroot_list
# add users you allow to move over their home directory
suse


启动服务:
# systemctl start vsftpd
# systemctl enable vsftpd


 


SUSE 12.1 安装 FTP client


1、查找:
# zypper se ftp

2、安装:
# zypper in lftp
或者直接使用rpm:   在光盘中即有:
# rpm -ivh /home/media/os/suse/ppc64le/lftp-4.5.1-3.4.ppc64le.rp

3、使用
# ftp 192.168.1.2
安装详细过程:
dbserver01:~ # zypper se ftp
Loading repository data...
Reading installed packages...


S | Name              | Summary                                       | Type     
--+-------------------+-----------------------------------------------+-----------
  | atftp             | Advanced TFTP Server and Client               | package  
  | atftp             | Advanced TFTP Server and Client               | srcpackage
  | lftp            | Command Line File Transfer Program      | package  
  | lftp              | Command Line File Transfer Program            | srcpackage
i | tftp              | Trivial File Transfer Protocol (TFTP)         | package  
  | tftp              | Trivial File Transfer Protocol (TFTP)         | srcpackage
i | vsftpd            | Very Secure FTP Daemon - Written from Scratch | package  
  | vsftpd            | Very Secure FTP Daemon - Written from Scratch | srcpackage
i | yast2-ftp-server  | YaST2 - FTP configuration                     | package  
  | yast2-ftp-server  | YaST2 - FTP configuration                     | srcpackage
i | yast2-tftp-server | YaST2 - TFTP Server Configuration             | package  
  | yast2-tftp-server | YaST2 - TFTP Server Configuration             | srcpackage
dbserver01:~ #
dbserver01:~ #
dbserver01:~ # zypper in lftp
Loading repository data...
Reading installed packages...
Resolving package dependencies...

The following NEW package is going to be installed:
  lftp

1 new package to install.
Overall download size: 774.5 KiB. Already cached: 0 B. After the operation, additional 3.0 MiB will be
used.
Continue? [y/n/? shows all options] (y):
Retrieving package lftp-4.5.1-3.4.x86_64                            (1/1), 774.5 KiB (  3.0 MiB unpacked)
Checking for file conflicts: ......................................................................[done]
(1/1) Installing: lftp-4.5.1-3.4 ..................................................................[done]
Additional rpm output:
update-alternatives: using /usr/bin/lftp_wrapper to provide /usr/bin/ftp (ftp) in auto mode

dbserver01:~ # ftp
Wrapper for lftp to simulate compatibility with lukemftp
lftp :~> quit

dbserver01:~ # ftp 192.168.56.2
Wrapper for lftp to simulate compatibility with lukemftp
Name (root): tsm
Password:                           
lftp tsm@192.168.56.2:~> dir
---- Connecting to 192.168.56.2 (192.168.56.2) port 21
<--- 220 Welcome to Everything ETP/FTP
<--- 230 Logged on.
dr--r--r-- 1 ftp ftp             0 Aug 24  2017 C:
dr--r--r-- 1 ftp ftp             0 Aug 24  2017 D:
dr--r--r-- 1 ftp ftp             0 Aug 24  2017 E:
dr--r--r-- 1 ftp ftp             0 Aug 24  2017 F:
dr--r--r-- 1 ftp ftp             0 Aug 24  2017 G:
dr--r--r-- 1 ftp ftp             0 Aug 24  2017 K:
dr--r--r-- 1 ftp ftp             0 Aug 24  2017 S:
lftp tsm@192.168.56.2:/> 


  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 1
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值