美文网首页
远程连接-传输命令

远程连接-传输命令

作者: linux_龍 | 来源:发表于2019-08-11 04:45 被阅读0次

    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退出

    相关文章

      网友评论

          本文标题:远程连接-传输命令

          本文链接:https://www.haomeiwen.com/subject/imojdctx.html