linuxftp上传命令
Step1. 云服务器配置FTP服务
1.root权限通命令安装Vsftp
[root@VM_250_202_tlinux ~]# yum install vsftpd
2.启vsftpd服务前需要登录云服务器修改配置文件匿名登录禁用掉打配置文件命令:
[root@VM_250_202_tlinux ~]# vim /etc/vsftpd/vsftpd.conf
配置文件第11行anonymous_enable=YES前面加#号即匿名登录禁用
3.读取效配置
[root@VM_250_202_tlinux ~]# cat /etc/vsftpd/vsftpd.conf |grep ^[^#] local_enable=YESwrite_enable=YESlocal_umask=022anon_upload_enable=YESanon_mkdir_write_enable=YESanon_umask=022dirmessage_enable=YESxferlog_enable=YESconnect_from_port_20=YESxferlog_std_format=YESlisten=YESpam_service_name=vsftpserlist_enable=YEStcp_wrappers=YES
4.启vsftpd服务
[root@VM_250_202_tlinux ~]# service vsftpd start
5.设置FTP用户账号设置功即通该账号登录FTP服务器(1)设置FTP用户账号例账号ftpuser1目录/home/ftpuser1且设置允许通ssh登录
[root@VM_250_202_tlinux ~]# useradd -m -d /home/ftpuser1 -s /sbin/nologin ftpuser1
(2)设置账号应密码例密码ftpuser1
[root@VM_250_202_tlinux ~]# passwd ftpuser1
6.修改vsftpdpam配置使发者通自设置FTP用户帐号密码连接云服务器(1)修改pam
[root@VM_250_202_tlinux ~]# vim /etc/pam.d/vsftpd
内容修改:
#%PAM-1.0 auth required /lib64/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed auth required /lib64/security/pam_unix.so shadow nullok auth required /lib64/security/pam_shells.so account required /lib64/security/pam_unix.so session required /lib64/security/pam_unix.so
(2)确认修改文件否确
[root@VM_250_202_tlinux ~]# cat /etc/pam.d/vsftpd#%PAM-1.0 auth required /lib64/security/pam_listfile.so item=user sense=deny file=/etc/ftpusers onerr=succeed auth required /lib64/security/pam_unix.so shadow nullok auth required /lib64/security/pam_shells.so account required /lib64/security/pam_unix.so session required /lib64/security/pam_unix.so
(3)重启vsftpd服务使修改效
[root@VM_250_202_tlinux ~]# service vsftpd restartShutting down vsftpd: [ OK ]Starting vsftpd for vsftpd: [ OK ]
Step2. 传文件Linux云服务器
1.载并安装源软件FileZilla请使用FileZilla3.5.1、3.5.2版本(使用3.5.3版本FileZilla进行FTP传问题)由于FileZilla 官网提供新3.5.3版本载建议发者自行搜索3.5.1、3.5.2载址建议3.5.1 载址:
2.连接FTP运行FileZilla按图所示进行配置配置点击快速链接:
配置信息说明:(1)主机:云服务器公网IP(云服务器管理视图页面查看云服务器公网IP)(2)用户名:Step1设置FTP用户账号ftpuser1例(3)密码:Step1设置FTP用户账号应密码ftpuser1例(4)端口:FTP监听端口默认21
3.传文件Linux云服务器传文件鼠标选本文件拖拽远程站点即文件传Linux云服务器注意:云服务器FTP通道支持传tar压缩包自解压及删除tar包功能
❷ linux下使用ftp怎么使用命令上传文件
在 Linux 系统提示符 $ 下,使用 ftp 命令,如下所示:
$ftp a.b.c.d <cr> (其中:a.b.c.d 为假设的一个对方的 FTP 服务器的 IP 地址)
如果是对方的 FTP 服务器允许别人进行匿名访问的话,那么用户名就是:anonymous,密码一般为空。否则的话,就需要输入对方提前事先提供给你的用户名和密码才能够进行文件传输。
使用约定好的用户名和密码登录到对方的 FTP 服务器之后,你就可以使用 put(传输单个文件)、或者 mput(传输多个文件)、get(从对方的FTP服务器上获取单个文件)、mget(从对方的FTP服务器上获取多个文件)了。当然了,一般 FTP 服务器的系统管理员都会给你一个 /pub 子目录,供所有用户使用。所以一般来说,即使使用账号登录 FTP 服务器之后,第一个命令就是: cd /pub ,转入公共子目录。
❸ Linux上传文件到服务器命令是什么呢
1 ssh
$ ssh username@remotehost
用shh登陆服务器。
2、scp
命令scp基于SSH协议,可以将本地文件拷贝到远程服务上的指定目录,格式如下:
$ scp filename username@remotehost:remotedirectory
执行:$ scp ipmsg.log [email protected]:/home/admin
3 ftp/sftp
首先用root用户登录远程Linux服务器,将admin用户添加到FTP账户中。
通过echo命令追加一行到user_list文件中:# echo admin >> user_list
之后通过service命令开启FTP服务:# service vsftpd start
现在就可以在本机访问FTP远程服务器了,然后通过put命令上传文件了。
4 SSH Windows Client
SSH提供了一个scp2.exe作为Windows下的scp命令工具。
❹ linux下ftp服务器的上传下载的过程
在我用的所有ftp服务器中来说,首推iis7服务器管理工具,而且一直在用,感觉非常好。它可以作为FTP的客户端,想要进行FTP的上传下载操作,只需要下载安装iis7服务器管理工具就可以了,操作不复杂!
简单的介绍一下iis7服务器管理工具:可以批量管理WIN系列服务器、VPS、批量导入服务器VPS的IP,端口,账号和密码 、批量打开N个服务器VPS的远程桌面、远程桌面后,远程窗口右上角会出现 服务器备注的信息,如郑州xxx号服务器 5、远程桌面后,不影响任务栏显示。可以及时看其他窗口。支持多种方式连接,操作简洁,自身附带教程。
第一步:点击主程序图中“上传下载”键;
第二步:点击“ Ftp”;
第三步:点击“添加”;
第四步:在弹出服务器信息框中填写Ftp信息,注意:FIP ip端口、账号、密码为必填项;
第五步:选择需要打开的FTP服务器;
第六步:点击打开,即刻见FTP效果图。
❺ linux怎么用ftp命令上传文件
在 Linux 系统提示符 $ 下,使用 ftp 命令,如下所示:
$ftp a.b.c.d <cr> (其中:a.b.c.d 为假设的一个对方的 FTP 服务器的 IP 地址)
如果是对方的 FTP 服务器允许别人进行匿名访问的话,那么用户名就是:anonymous,密码一般为空。否则的话,就需要输入对方提前事先提供给你的用户名和密码才能够进行文件传输。
使用约定好的用户名和密码登录到对方的 FTP 服务器之后,你就可以使用 put(传输单个文件)、或者 mput(传输多个文件)、get(从对方的FTP服务器上获取单个文件)、mget(从对方的FTP服务器上获取多个文件)了。当然了,一般 FTP 服务器的系统管理员都会给你一个 /pub 子目录,供所有用户使用。所以一般来说,即使使用账号登录 FTP 服务器之后,第一个命令就是: cd /pub ,转入公共子目录。
❻ 请教,如何用linux FTP命令,上传文件到windows指定目录
通过windows cmd窗口命令
C:\Documents and Settings\Administrator>d:
D:\>e:
step1:ftp登录
E:\>ftp 128.8.28.212
Connected to 128.8.28.212.
220 (vsFTPd 2.2.2)
User (128.8.28.212:(none)): oracle
331 Please specify the password.
Password:
230 Login successful.
step2:查看目录中的文件列表
ftp> cd wangxj
250 Directory successfully changed.
ftp> ls
200 PORT command successful. Consider using PASV.
150 Here comes the directory listing.
enfo_ods.dmp
enfo_ods.log
tsubject.dmp
tsubject.log
226 Directory send OK.
ftp: 收到 56 字节,用时 0.00Seconds 56000.00Kbytes
step3:从linux当前目录下载文
ftp> get enfo_ods.dmp200 PORT command successful. Consider using PASV150 Opening BINARY mode data connection for enfo_ods.dmp (325029888 bytes)226 Transfer complete.ftp: 收到 325029888 字节,用时 27.39Seconds 11866.74Kbytes/sec.
ftp> get enfo_ods.log
200 PORT command successful. Consider using PASV.
150 Opening BINARY mode data connection for enfo_ods.log (13704 bytes).
226 Transfer complete.
ftp: 收到 13704 字节,用时 0.00Seconds 13704000.00Kbytes/sec.
step4:从windows上传文件到linux
ftp> put test.ktr;
test.ktr;: File not found
//退出ftp 或者用bye
ftp> quit
E:\>ftp 128.8.28.212
Connected to 128.8.28.212.
220 (vsFTPd 2.2.2)
User (128.8.28.212:(none)): oracle
331 Please specify the password.
Password:
230 Login successful.
ftp> put E:\test.ktr
200 PORT command successful. Consider using PASV.
150 Ok to send data.
226 Transfer complete.
ftp: 发送 23410 字节,用时 0.00Seconds 23410000.00Kbytes/sec.
ftp>
备注:
ftp是通用协议,不区分系统的。
知道linux机器的IP即可。开始 -> 运行,输入cmd并回车,键入以下命令(前面的>为命令提示符,不用输入):> ftp Linux机器的IP地址> binary> put windows系统本地文件全路径 /linux系统上的目标路径> bye 其中,如果是文本文件,可以不用binary设置为二进制传输模式(默认文本模式,会自动转换文本格式)。如果是非文本文件(例如可执行文件),建议一定要设置为 binary 模式。
建议楼主系统学习下Linux的ftp服务搭建等知识点。《Linux就该这么学》这本书很不错,里面有很系统、很全面的图文介绍!
希望可以帮到您!
❼ linux下ftp怎么上传文件
连接ftp服务器输入用户名与密码上传文件就可以了。
❽ linux 服务器怎么启动ftp
/etc/init.d/vsftpd start/stop/restart 这样弄