[Labs-l] SSH to labs instances with less typing
Aaron Halfaker
aaron.halfaker at gmail.com
Wed Mar 9 18:47:24 UTC 2016
Hey folks,
I have spent a little time today working out a cute little bash alias trick
for reducing my typing when connecting to various instances in labs.
Adding the following code to your *.bash_alias* (or just *.bashrc*) file
will change $ ssh <your instance>.eqiad.wmflabs to $ labs <your instance>.
labs_ssh() {
> ssh $1.eqiad.wmflabs
> }
> alias labs=labs_ssh
And there you have it. It's not much, but this helped my sanity a little
bit and I wanted to share.
-Aaron
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.wikimedia.org/pipermail/labs-l/attachments/20160309/542ae5cd/attachment.html>
More information about the Labs-l
mailing list