linux

如何在Linux中使用FetchLinux进行文件传输

小樊
42
2025-08-25 19:34:24
栏目: 智能运维

FetchLinux是基于SSH协议的文件传输工具,以下是其使用方法:

  1. 安装FetchLinux:根据不同Linux发行版,使用包管理器(如apt、yum等)安装,或从官网下载二进制文件安装。
  2. 基本文件传输操作
    • 下载文件fetchlinux user@remote_host:/path/to/remote/file /local/path
    • 上传文件fetchlinux -u user@remote_host /local/path/file /path/to/remote
    • 下载目录fetchlinux user@remote_host:/path/to/remote/directory /local/path -r
    • 上传目录fetchlinux -u user@remote_host /local/path/directory -r /path/to/remote
  3. 高级选项:可使用-i指定SSH密钥文件,-p指定SSH端口,-x指定代理。

0
看了该问题的人还看了