|
|
SSH to multiple boxes via tab completion
I don't see why you don't use aliases really? I have a bunch of aliases in my .bashrc along the lines of
and so on. I can have a username/boxname combination for any of these, a myriad of other options for tunnelling and the like, and they all tab complete just fine thanks, plus I don't have a folder full of scripts - they're all tidied away in the one hidden file.PS - ssh to root?? tutut ;-)
SSH to multiple boxes via tab completion
To have the commands work in the terminal without executing bash, you can create a copy of your .bashrc called .profile or make .profile linked to the .bashrc file.
SSH to multiple boxes via tab completion
I suspect it works ok for me as I have the following in a .bash_profile file
I honestly can't remember where I picked that one up from though.
SSH to multiple boxes via tab completion
iTerm makes it even easier. You can set up profile bookmarks and open up a new ssh session with a simple shorcut key combo. You can open up the sessions in tabs or in separate windows. Not to mention, you can fully cusomize the profiles to use different terminal emulations and and key mappings, etc. I use iTerm just for this reason (and the tabs, of course).
If you're set on using the OSX Terminal, though. You can use a recent feature in Quicksilver called triggers that allows you to bind keystrokes to any QS command or AppleScript. You could write an AppleScript that opens a terminal window and a specific ssh session and bind it to a keystroke. I still prefer iTerm. I haven't used the OSX Terminal in over a year.
SSH to multiple boxes via tab completion
JellyfiSSH is also handy if you prefer a bookmark manager in your dock. I used to use it but now just go for the alias option.
|
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.14 seconds |
|