I use a specific PS1 prompt that I like. I share a few logins with other other people on a few different servers. I was wondering if there was a way to specify in my local bash profile a remote prompt or any other way other then copy and pasting each time I remote in.
|
feedback
|
|
Upload a file on each remote machine, say
You can easily use a | ||||
|
feedback
|
|
If you just want to send the
The local There are ways to transmit environment variables over ssh, but they're typically disabled in the server configuration. If the If you'd like to keep your own configuration on a shared user account, you can create your own configuration file directory and set the
Create symbolic links in the Then, log in with
If you're willing to modify the remote (Of course shared accounts are a bad idea, but I realize you may not be in a position to change that situation.) | ||||
|
feedback
|
|
you can specify environment variables on the client side and if the ssh-server allows it (check man sshd-config), these variables are copied to the session when you log into the machine. so, you would have to configure the .bashrc on the server to check an existing PS1 (or whatever variable) and only set PS1 if it is not set already. or, which make things simpler, you bundle your settings into a function .. and deploy that function either as a special file your source on demand ( | |||
|
feedback
|
Then, at the prompt:
| |||||||
feedback
|
|
Put your PS1 prompt in ~/.ssh/environment and ssh session will carry it to every host you login. It works for me with openssh 4.3p2 . | |||
|
feedback
|
|
You could do stuff like mounting your home over sshfs/nfs, but the easiest solution is to scp your bashrc across to the new machine. This also brings aliases and stuff. | |||||||
feedback
|
|
Do not share logins. SSH as yourself, then do Make
| |||
feedback
|