0

I'm finding I run C-x C-f and then:

/ssh:$user@$host|sudo:$host:/

Where $host is a device IP.

I'm relatively new to emacs, I want to create a custom function that accepts values for $host and $user.

How can I do this?

  • 2
    This should prove helpful. – Caterpillar Nov 22 '17 at 15:30
  • If you access the same locations over ssh from time to time, you may wish to set up an .authinfo or .netrc to login automatically. stackoverflow.com/a/22974359/2112489 – lawlist Nov 22 '17 at 18:11
  • I didn't realize at first but I can actually just hit up after C-x C-f to use my last used connection. – Philip Kirkbride Nov 22 '17 at 18:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.