服务器文件传输(scp, 推荐)
使用scp直接传输文件
#上传文件:
scp ./haha.txt zxflab01@192.168.253.92:507:lch:my_passwd:~
#下载文件:
scp zxflab01@192.168.253.92:507:lch:my_passwd:~/haha.txt ./
# 可变参数的注释:
## zxflab01@192.168.253.92 : ip,更换01,为你的用户数字
## lch : username,你的账户的目录名
## my_passwd: second password to input
## ~ : 服务器的用户目录地址,填写/mnt/sdb1/home/你的目录名
## 命令执行之后输入第一个登入的密码export server="zxflab01@192.168.253.92:507:lch"#上传文件:
scp ./haha.txt $server:my_passwd:~
#下载文件:
scp $server:my_passwd:~/haha.txt ./Last updated
Was this helpful?