Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

At my work, I ssh into a lot of Linux boxes (using MTPuTTY on win 7, though I can use anything if need be, up to and including dual booting Linux).

We are not set up so that people's home directories are stored in a centralized network location. Each box gets its own home directory with its own bash profile. Naturally, this makes any sort of bash customization impractical.

Is there a way to get SSH to send the profile instead? Or any other way for me to store the profile in a centralized location so that it is used by all of my logins on all of the boxes? I have full admin rights on my workstation, but I can't make configuration changes on the remote boxes.

share|improve this question
1  
Do you have the option, as a one-time thing, of going through and inserting a source statement, sourcing a common profile from the network location, in each of the various individual profiles? –  Nicole Hamilton Dec 17 '12 at 21:48

1 Answer 1

Try this one to source a profile from another host, that way you only need one host with your profile, wich in turn could be your workstation.

source <(ssh name@yourhost cat .bashrc)

share|improve this answer
    
This executes without complaint and without apparent effect. –  Ryan Ballantyne Dec 17 '12 at 22:17

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.