ITPub博客

首页 > Linux操作系统 > Linux操作系统 > ftp 和 scp记录

ftp 和 scp记录

原创 Linux操作系统 作者:595117995 时间:2017-10-17 09:45:59 0 删除 编辑
----------------ftp-get.sh---------------------
#!/bin/ksh
ftp -v -i -n 192.168.1.35 << !
user hello pass
bin
prompt off
cd /home/hello/txt
lcd /home/Cent/
get $1
#mget *
close
bye
!


----------------ftp-put.sh---------------------
#!/bin/ksh
ftp -v -i -n 192.168.1.35 << !
user hello pass
bin
hash
cd /home/hello/txt
lcd /home/Cent/
mput *
close
bye
!

----------------scp-get.sh---------------------
scp hello@192.168.1.35:/home/hello/txt/$1 ~/scpfiles/


----------------scp-put.sh---------------------
scp ~/dstFile/* \
hello@192.168.1.35:/home/hello/txt/ 

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/28291944/viewspace-2146044/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2016-10-13

  • 博文量
    99
  • 访问量
    125403