1.sftp
[root@m01 ~]# sftp -oPort=22 172.16.1.41
Connected to 172.16.1.41.
sftp> ls -l
drwxr-xr-x 25 root root 4096 Aug 3
-rw------- 1 root root 1774 May 16
drwxr-xr-x 3 root root 28 Aug 3
sftp> get data
Fetching /root/data/ to data
Cannot download non-regular file: /root/data/
sftp> get /data
Fetching /data/ to data
Cannot download non-regular file: /data/
sftp> get /data/tmp
File "/data/tmp" not found.
sftp> get /data/tmp/
File "/data/tmp/" not found.
sftp> get data/tmp/
Fetching /root/data/tmp/ to tmp
Cannot download non-regular file: /root/data/tmp/
quit退出
网友评论