Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6555141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T12:47:00+00:00 2026-05-25T12:47:00+00:00

I am attempting to edit a remote file in Emacs, and I’m having trouble

  • 0

I am attempting to edit a remote file in Emacs, and I’m having trouble getting from the documentation and previous SO questions to doing the thing I want.

I’m working remotely, from a variety of locations, and I want to edit files on server Foo. Server Foo isn’t directly reachable from the Internet, but server Bar is, and Foo accepts connections from Bar. I can count on reaching Bar, and Bar can count on reaching Foo.

The Tramp documentation tells me that I need to add to Tramp’s proxy list to do this, and that it should look like the following:

(add-to-list 'tramp-default-proxies-alist
    ("foo_host" "seanm" "/ssh:seanm@bar_host"))

However, when I try that, it doesn’t work, and I get inscrutable error messages.

  • How can I unambiguously refer to Foo? There is no DNS server that knows how to find Foo from its hostname, and Foo’s IP address is in the 10.0.0.0/8 private space. I don’t want to refer to Foo by that IP address, because that risks colliding with hosts in other 10.0.0.0/8 networks I may visit. As a kludge, I added Foo to Bar’s /etc/hosts file, but that didn’t seem to work. Is there a better solution?

  • What quoting rules do I need to adhere to? The examples that I’m seeing use both “double quotes” and `tick-and-single’ quotes, the latter apparently requiring double-backslash escaping. I don’t understand what’s going on there – it seems like there are multiple layers of parsing that this string is going to be shoved through.

  • While trying variations on this, I’ve gotten error messages that amount to “you can’t use that remote-access method for that scenario.” How can I set up a second proxy method that will let me do the equivalent of C-x C-f /su::/path/to/file ?

It all seems very painful compared to the previous multi-hop syntax.

Later: I was able to get the many layers of escaping right so that emacs correctly ‘hears’ the names of hosts. However, I can’t get any hops beyond a second to work correctly, which is a very disappointing lapse in functionality.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T12:47:01+00:00Added an answer on May 25, 2026 at 12:47 pm

    The correct answer turned out to be modifying my SSH config with Host, HostAlias, and ProxyCommand directives.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am attempting to edit the default file located at .. /etc/apache2/sites-available/default on my
I am having a spot of trouble with Codeigniter and getting files to rename
I'm getting a failure when attempting to validate required content for a Multiline Edit
I'm attempting to edit the registry with C++ and this is my first time
I've got a ASP.NET website which I'm attempting to edit, however my Visual Studio
Attempting to use the data series from this example no longer passes the JSONLint
I am attempting to edit certain MP3 files ID3 tags through Python. I have
EDIT: I am attempting to encapsulate a 3rd party com object in .net classes
I am attempting to create an application which has a edit text view and
I am attempting to use modal as a simple means for users to edit

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.