i couldnt find answer althougth there many similar questions.i wanted change colour of linux command prompt based on remote host have ssh to.since bash environment variables not preserved on ssh,so how this.there hundreds of server login everyday.so changing /.bashrc of each remote host not possible.is there way can pullout script can called each time ssh done.can please give in detail of file , how should edited.gnome,openssh etc not supprted.
"since bash environment variables not preserved on ssh..."
man ssh
additionally, ssh reads ~/.ssh/environment, , adds lines of format “varname=value” environment if file exists , users allowed change environment. more information, see permituserenvironment option in sshd_config(5).
Comments
Post a Comment