open a file in the remote server in local emacs


In emacs version GNU 23,  we can use tramp mode (which is contained in emacs package since version 22) to open a file in the remote server in local emacs by 2 steps:

1. Add the setting below in the local .emacs file:

(setq tramp-default-method "ssh")

2. Open emacs locally, and use the cmd of opening a file:
C-x C-f /remoteusername@remotehost:filename  RET
or
C-x C-f /ssh:remoteusername@remotehost:filename)


Reference
http://www.emacswiki.org/emacs/TrampMode

Comments

Popular posts from this blog

install ipython in Cloudera VM using pip

install postgreSQL in ubuntu 16.04

Install MYSQL 5.6 in ubuntu 12.04/14.04 and set password and remote access