FetchLinux 本身不直接提供远程控制功能,但可借助 SSH 等工具实现远程操作,具体方法如下:
SSH 远程命令执行
# Debian/Ubuntu
sudo apt install openssh-server
# CentOS/RHEL
sudo yum install openssh-server
sudo systemctl start sshd
sudo systemctl enable sshd
ssh user@remote_host 'command' # 执行单个命令
(需将 user 替换为远程用户名,remote_host 替换为 IP 或域名)FetchLinux 辅助文件操作(非完整远程控制)
# 上传本地文件到远程
fetchlinux upload /local/path/file user@remote_host:/remote/path
# 下载远程文件到本地
fetchlinux download user@remote_host:/remote/path/file /local/path
fetchlinux ls user@remote_host:/remote/path
(需先安装 FetchLinux,通过 SSH 协议传输文件,不涉及图形界面控制)
注意: