user1629366
user1629366

Reputation: 2011

Opening a file over ssh in emacs

I am on Mac (Lion), using GNU/Emacs version 24.1. I have created a VM, and assigned it a static IP. I want to open/edit files using emacs. AFAI figured out, above version 23, the tramp-mode comes pre-installed. So i tried the following C-x C-f /ssh:[email protected]:/path_to_file.rb but what it does is creates a file with name ssh:...rb.

How do i resolve this?

Upvotes: 2

Views: 4667

Answers (2)

apcelent
apcelent

Reputation: 1651

Emacs 24 comes enabled with tramp-mode. In case you have put anything in your ~/.emacs.d directory or some init.el files to customize tramp mode, please remove them.

All you need to do is C-x C-f ~//username@ip_address. You will be asked for a password, provide it and enjoy!

Upvotes: 3

David Miller
David Miller

Reputation: 2219

Haven't upgraded to 24.1 yet, but prior to that the path would have been:

C-x C-f /scp:[email protected]:/path_to_file.rb

Upvotes: 1

Related Questions