linux ftp命令详解

人气:138 ℃/2023-01-01 12:34:02

linux系统ftp命令详解有哪些?让我们一起来了解下。

ftp命令是Internet用户使用最频繁的命令之一,不论是在DOS还是UNIX操作系统下使用FTP,都会遇到大量的FTP内部命令,熟悉并灵活应,用FTP的内部命令,可以大大方便使用者。

语法::ftp -v -d -i -n -g

参考例子:

我们在命令行用以下选项使用FTP:

ftp[-v][-d][-i][-n][-g][-s:filename][-a][-w:windowsize][computer]

参数:

·-v-禁止显示远程服务器相应信息

·-n-禁止自动登录

·-i-多文件传输过程中关闭交互提示

·-d-启用调试,显示所有客户端与服务器端传递的命令

·-g-禁用文件名通配符,允许在本地文件和路径名中使用

今天的分享就是这些,希望能帮助大家。

linux 登录ftp 命令

linux中ftp登录不了怎么办?

linux中ftp登录不了怎么办

1、首先安装vsftpd

yum -y install vsftpd

之后开启服务:

service vsftpd start

2、关闭防火墙

1) 重启后生效

开启:

chkconfig iptables on

关闭:

chkconfig iptables off

2) 即时生效,重启后失效

开启:

service iptables start

关闭:

service iptables stop

3、默认情况下vsftp是不允许root用户登录的,可以通过修改限制来解决这个问题

首先找到vsftp的配置目录

[root@localhost vsftpd]# pwd/etc/vsftpd[root@localhost vsftpd]# lschroot_list ftpusers user_list vsftpd.conf vsftpd_conf_migrate.sh[root@localhost vsftpd]#修改[root@localhost vsftpd]# cat ftpusers# Users that are not allowed to login via ftp#rootbindaemonadmlpsyncshutdownhaltmailnewsuucpoperatorgamesnobody

修改

[root@localhost vsftpd]# cat 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.#rootbindaemonadmlpsyncshutdownhaltmailnewsuucpoperatorgamesnobody

上面这个两个就是默认情况下vsftp不允许使用的账号列表,将文件中root删除,或者前面加个#号 重启一下vsftpd 服务 即可

4、将/etc/selinux/config 中的enforcing 模式改为disabled, 然后重启

推荐

首页/电脑版/网名
© 2025 NiBaKu.Com All Rights Reserved.