如何将 emacs tramp 与 ssh 远程连接到服务器

how to use emacs tramp with ssh remote to server

我想使用 emacs 远程服务器(freebsd 使用 sftp 和 ssh)。 我已经阅读 this 并在我的 .emacs 中写入 (require 'tramp) (setq tramp-default-method "ssh")。我使用 C-c C-f RET /sftp:ganluo-home-vm-freebsd-user@192.168.1.104/。 但是不行

看Here:I使用emacs windows所以不能直接使用tramp.Have下载plink.exe(我用它可能有其他方式)并做一些其他的经验值:

  1. 先下载here(也可以在本站找到一些windowsconntionunix\linux软件)。找到plink.exe下载(提供发布和开发以及源码)代码)
  2. 你可以在 emacs\bin 目录中剪切 plink.exe。
  3. 找到您的环境变量 Edit/New "PATH" 添加您的 emacs\bin 完整目录,最后路径必须带有 ';'

    C:\Emacs\bin;

  4. then sign out use cmd test plink command is useful.if doesn't restart you PC.
  5. C-c C-f /pink:YouName@HOST[IP,HOSTName]:/
  6. it had some problem,I will post new status right here.