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 8567099
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T17:48:20+00:00 2026-06-11T17:48:20+00:00

I am trying to build (or find if it exists) something that will let

  • 0

I am trying to build (or find if it exists) something that will let me take my dotfiles to servers that I visit like ssh-agent does for my keys.

I spend a lot of time working with EC2 for work and when I spin up a new instance I dislike not having my dotfiles with me (.vimrc, .gitconfig and my aliases mostly).

I keep all my dotfiles under git and are publicly available but this isn’t enough of a solution for few reasons:

  1. I ssh to production hosts which I cannot install git and cannot easily access the internet.
  2. I do not control the AMI’s we run from so I cant bake my dotfiles in and also I usually share the ubuntu or root user and rarely have a dedicated username on a host (so I cannot just clone and leave my dotfiles there).

For now I am happy to build this to work with only one level of ssh. that is A -> B -> C (its ok if only B has access to the dotfiles and C loses them).

I am thinking of something like:

ssh -t -R 1234:localhost:1234 user@server 'export USE_DOTFILES_AGENT=1 ; exec $SHELL'

with something serving the dotfiles on 1234 on my localhost so my question is:

What is the best way to make the programs on the remove side read their dotfiles from a socket (happy to put anything thats necessary on the other side).

EDIT: While apmasell’s answer is helpful I was not thinking of such a high tech solution. Possibly something more along the lines of wget from that port into /tmp/_vimrc then getting vim to load that somehow (by running alias vim=vim <flag for where to find vimrc>).

  • 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-06-11T17:48:21+00:00Added an answer on June 11, 2026 at 5:48 pm

    SSH does nothing special when it comes to any files. The SSH Agent is able to work from that dot file because the ssh binary know to attempt to open a connection to the agent via the the named pipe set in $SSH_AUTH_SOCK and because the SSH client and server can agree to proxy that request.

    Other programs that don’t have any logic built in to do this, simply put, can’t. There isn’t a way for them to know that they should not do a standard open on the file.

    If you really, really wanted to, you could create an $LD_PRELOAD‘ed library that overrides open to check if the file is available and attempt to simulate access to the file, much the way that ALSA can pretend to provide OSS support to programs that aren’t aware of ALSA by trapping their attempt to open /dev/dsp and then translating the requests to the ALSA audio layer.

    Writing such a piece of code is extremely tricky, as it will require correctly simulating the behaviour of the local system. For instance, what do you do when a programs writes? What do you do if the connection goes away? What happens when you fork off a daemon? Depending on the design, there may be a lot of latency.

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

Sidebar

Related Questions

I'm trying to build a rake utility that will update my database every so
I am trying to find the way to build complex web pages with MVC3
I am trying to find the best way to build a dynamic linq query
I'm trying to find the best way to build/package an Android app for 6+
I am trying to find a system/platform to build off of to make it
I'm having trouble trying to find the right way to use MSBuild to build
I am trying to get the build working on the build agent in TFS.
I am currently trying to build a small system that read's in a bunch
I have the following code: Tag.find_all_by_company_id(4).each.collect{|tag| tag.name }.join(,) (Essentially I'm trying to build a
I am trying build a jQuery EasyUI datagrid or treegrid out of a large

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.