如何进行ftp 和 scp的记录

这期内容当中小编将会给大家带来有关如何进行ftp 和 scp的记录,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。

----------------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/ 

上述就是小编为大家分享的如何进行ftp 和 scp的记录了,如果刚好有类似的疑惑,不妨参照上述分析进行理解。如果想知道更多相关知识,欢迎关注行业资讯频道。