通过 ssh 在 windows 目录上使用 Linux 命令

Pau*_*aul 6 server ssh windows ftp

因为我在工作时被窗户困住了。我想使用我通过 SSH 从 Windows 机器访问的 Ubuntu Server 机器来操作 Windows 机器上的文件。我一直在通过 FTP 将文件移动到 Ubuntu 机器上,处理它们然后下载它们。请告诉我有更有效的解决方案。谢谢你的帮助!

Egi*_*gil 6

要在 Ubuntu 机器上安装您的 ftp 服务器而不是来回复制,您可以使用curlftpfs. 它允许您将 ftp 服务器直接挂载到机器的文件系统上。

一个例子(来自网页):

$ mkdir sunet
$ curlftpfs ftp://ftp.sunet.se/ sunet/
$ cd sunet/
$ ls -l
total 0
Dr-xr-xr-x   3 root root        96 Feb 23  2004 bin
dr-xr-xr-x   2 root root        72 Mar  2  2004 dev
dr-xr-xr-x   2 root root        48 Feb 23  2004 etc
dr-xr-xr-x   2 root root       120 Feb 23  2004 lib
-rw-r--r--   1 root root 622187310 Mar 11 06:13 ls-lR
-rw-r--r--   1 root root  76389037 Mar 11 06:15 ls-lR.gz
drwxrwxr-x  37 root root      1272 Feb 27 14:17 pub
dr-xr-xr-x   3 root root        72 Feb 23  2004 usr
$ cd ..
$ fusermount -u sunet/
Run Code Online (Sandbox Code Playgroud)

  • 让我们不要忘记它的 SSH 表亲,SFTP!工作方式相同,但通过 SSH 除外。 (2认同)