ftp和ftpget 命令

ftpget -u  username -p passwd -P port IP  source  target

ftpput -u  username -p passwd -P port IP  target  source

eg.

ftpget -u cfupdate -p  5z43cf -P 82 202.105.139.92 /data/QuecOpen/QY_GB17691_remote_communicate /20191012/QY_GB17691_remote_communicate

ftpput -u cfupdate -p 5z43cf -P 82 202.105.139.92 /20191012/123456.txt /mnt/123456.txt

1.用ftp命令下载程序

ftp 192.168.1.156 输入登录名zyx密码123456

ftp> get hello

ftp>bye

2.用ftpget 下载程序 ftpput上传文件

下载
ftpget -u zyx -p 123456  192.168.1.156  hello

上传

ftpput -u zyx -p 123456  192.168.1.156  hello

猜你喜欢

转载自blog.csdn.net/wteruiycbqqvwt/article/details/108225549