Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'SSH to multiple boxes via tab completion' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
SSH to multiple boxes via tab completion
Authored by: EddEdmondson on Oct 14, '04 11:37:56AM
I don't see why you don't use aliases really? I have a bunch of aliases in my .bashrc along the lines of

alias box1='ssh user1@box1.com'
alias box2='ssh user1@box2.com'
alias box3='ssh user2@box3.com'
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 ;-)

[ Reply to This | # ]

SSH to multiple boxes via tab completion
Authored by: sidekickr on Oct 14, '04 11:42:09AM

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.



[ Reply to This | # ]
SSH to multiple boxes via tab completion
Authored by: EddEdmondson on Oct 14, '04 11:48:36AM
I suspect it works ok for me as I have the following in a .bash_profile file

if [ -f ~/.bashrc ]; then
    . ~/.bashrc
fi
I honestly can't remember where I picked that one up from though.

[ Reply to This | # ]
SSH to multiple boxes via tab completion
Authored by: neror on Oct 14, '04 11:52:26AM
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.



[ Reply to This | # ]
SSH to multiple boxes via tab completion
Authored by: EddEdmondson on Oct 14, '04 12:03:04PM
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.

[ Reply to This | # ]