Guest tslugmo Posted June 17, 2003 Share Posted June 17, 2003 I want to alias my ssh command at startup so all I have to type is "sshh" or something, instead of "ssh -l username site.domain.com" every time. Is this possible? I've added the alias line to my .xinitrc shell script, but it has no effect even though other commands are running at startup. What am I missing? TIA, tslug Link to comment Share on other sites More sharing options...
tyme Posted June 17, 2003 Share Posted June 17, 2003 you would be better off putting the alias in .bashrc. it would then get loaded whenever you open up a terminal i.e. (to make sure you have the right syntax :-) ): alias sshh='ssh -l username site.domain.com' Link to comment Share on other sites More sharing options...
Guest tslugmo Posted June 17, 2003 Share Posted June 17, 2003 Awsome, worked beautifully, thanks! :D -tslug Link to comment Share on other sites More sharing options...
Cannonfodder Posted June 18, 2003 Share Posted June 18, 2003 if you want them to be available for everyone, you can put them in /etc/profile.d as well.. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now