sudo apt update
sudo apt install fetchlinux
/usr/local/bin:wget https://github.com/fetchlinux/fetch/releases/download/v1.0.0/fetchlinux-linux-amd64 -O fetchlinux
chmod +x fetchlinux
sudo mv fetchlinux /usr/local/bin/
fetchlinux --help
fetchlinux user@remote_host:/path/to/remote/file /local/path
fetchlinux user@remote_host:/path/to/remote/dir /local/path -r
fetchlinux -u user@remote_host /local/path/file /path/to/remote
fetchlinux -u user@remote_host /local/path/dir -r /path/to/remote
fetchlinux -i /path/to/private_key user@remote_host
fetchlinux user@remote_host -p 2222
fetchlinux user@remote_host -x http://proxy_host:proxy_port
~/.ssh/authorized_keys(若使用密钥认证)。更多详细用法可参考FetchLinux官方文档。