Giter Club home page Giter Club logo

remotebashrc's Introduction

RemoteBashRC

What is it?

As per justyns:

I work doing tech support for a dedicated server hosting company. So naturally, we deal with lots of servers every day, and one of the guys I work with said something like “I wish all my aliases would follow me to other servers”. That sounded like a cool idea to me, and basically explains what the script does.

Usage

/path/to/script user@host [port]

Why fork?

I originally thought this could be accomplished more simply by reading the local bashrc into the ssh process's stdin, then catting it out to the temp location before starting the shell.

After numerous attempts, I've learned that this is very hard. Utilizing stdin for the data renders ssh unable to give you a shell. I'm still hoping to get this route working; but for now, I've just slimmed down the script a little so things are more straight forward and less chatty.

Anyone who wants to solve this puzzle given the following (arbitrary) restraints is more than welcome:

  1. Don't call ssh more than once.
  2. Don't call scp or sftp or any other networking tool to send the file separately.
  3. Accept and use any and all valid ssh options.
  4. Don't change the behavior of ssh (i.e. adding Control files).
  5. Don't setup any ad-hoc shared network storage.
  6. Keep is short and simple.

remotebashrc's People

Contributors

pbrisbin avatar justyns avatar

Stargazers

Warpcode avatar Daniel Schep avatar

Watchers

 avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.