SSH equivalent of .profile/.bashrc

Posted by Ramon on Server Fault See other posts from Server Fault or by Ramon
Published on 2012-07-06T15:00:59Z Indexed on 2012/07/06 15:17 UTC
Read the original article Hit count: 310

Filed under:
|

I am looking for a way to automatically define some aliases inside my session on any server I ssh to. I can't put them in the .bashrc files on the server because the user accounts I log in with are shared by other people and besides there are dozens of them and maintaining a script on every machine would be painful. I know I could use expect to type the aliases automatically but I was just wondering if OpenSSH has anything built-in that could conceivably be used to achieve this?

© Server Fault or respective owner

Related posts about ssh

Related posts about bash