Joined: Feb. 2005
||Posted: Sep. 17 2008,04:33
I want to add a login script for my ssh sessions. I have tried to create /etc/ssh/sshrc and also ~/.ssh/rc but neither of them are getting called. I have tried direct commands as the contents of the script eg:
alias l="ls -al"
as well as trying a "source" command which I read as a suggestion somewhere eg
(where the file startupcommands is the one that contains my real commands) but no luck so far.
Can anyone tell me if they have seen either /etc/ssh/sshrc or ~/.ssh/rc being called, and if so, what I should check on my box. (I have tried lots of different file permissions but still nothing).