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 [email protected]:~> 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 [email protected]:/> 


你可能感兴趣的:(IT)