Tramp

Tags :: emacs

Tramp is a built in module for emacs that allows you to work on a remote server with your local emacs. I.e. you can open/edit a file on a remote server with your local editor, thus providing you things like code highlighting, snippets, keybinds, etc.

Connecting

Open a file on a remote server by simply using find-file and providing a path of the form

/ssh:<username>@<server>:/path/to/file

This will prompt you for your password or anyother information needed to login.

Connecting to NCSU Hazel HPC

Useful for accessing files and editing job submission scripts on Hazel. Connecting follows same pattern as above,

/ssh:<username>@login.hpc.ncsu.edu:~/lsf_job.sh

but there will be two prompts, one after the other, just like if you were logging in through the terminal.

  1. Password: unity ID password
  2. Passcode: either 0 or 1, how you want to authenticate. Either text (0) or Duo (1).

References:


No notes link to this note