Emacsからssh経由でリモートホストのファイルを編集する

C-x C-f /ssh:user@example.com:/path/to/file

ubuntu 9.04のemacsでは特に何の設定もせずに使えました。

ubuntu 同士ならもちろんですが、
Windows上のファイルもcygwinsshサーバを立ち上げておけば問題なく編集できました。

これは便利!


参考にさせてもらったページ
Copy/Cut/Paste:Emacs+TRAMP+sshでリモートサーバのファイルを編集する
http://www.gnu.org/software/tramp/tramp_ja.html