Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

millwalll

macrumors newbie
Original poster
Nov 15, 2010
3
0
Hi all,

Need some help I always need to connect to a server using ssh and typing it is a pain. Is there a way to create a shorthand version so all I need to do is type Jim and it will run the full ssh -l blar blar blar I have tried to find this out but got confused as seen so many ways to do it. I am using mac os x 10.6.5

Thanks in advance, Sorry if this is really newbie question :p
 
Hi all,

Need some help I always need to connect to a server using ssh and typing it is a pain. Is there a way to create a shorthand version so all I need to do is type Jim and it will run the full ssh -l blar blar blar I have tried to find this out but got confused as seen so many ways to do it. I am using mac os x 10.6.5

Thanks in advance, Sorry if this is really newbie question :p

I would add the following line to the hidden file named .bashrc in your home folder:

alias Jim="ssh -l blar blar blar"

(You may need to first create this file.)
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.