Teknologi Informasi Dan Kehidupan

SSH With Local Aliases

As developer oftentimes we need to manage so many servers. Staging servers there, DeploymentServer here, IssueTracking there, WebServer here, DatabaseServer there, FileServer here, putYourFavouriteServersHere. I always use command aliases to boost those task, less type – productive more. Unfortunately the party suddenly over when i logged in to the remote machine. That aliases can’t be used anymore, i have to type the complete command again, and again, and again. What a boring lifes.

Lets automate this problem. This is the scenario : We want our local aliases loaded automagically to the remote machine everytime when we doing ssh. I’m using ubuntu here, my aliases are stored in ~/.bash_aliases by default. Lets the magics begin: