Sunday, February 10, 2013

my ssh fast path

This is a collection of past week digging and mocking SSH things. Here's what I have:

1. a neat Gnome Terminal alternative is quake-[ohhhh that Quake !]-like terminal

have handy the terminal sliding down from the screen, clearing my panel to sometimes 5 to 10 terminals [sorry, didn't get to switch tabs in Gnome Terminal]

2. very useful article about tweaking local ~/.ssh/config, several things I applied from it:

3. another very useful script which you can use to perform auto-complete to hosts you regularly use.

Managing SSH connections: this is a topic I've been attempted to get my life easier from some time ago.
First I got on different SSH managers. That sucks, I'm already on linux, c'mon !

Second I got to manage ssh connections in simple .sh scripts. With my limited scripting shell abilities, I soon got bored :) Then I had to have different users/hosts combination, I'd needed to duplicate them, eventually.

Enter hosts autocomplete: you define your own hosts on ~/.ssh/config, then enter ssh followed by usual bash Alt key, all hosts found will get displayed.

At the end, here's my current  ~/.ssh/config

tada@tada:~/.ssh$ cat config
ControlMaster auto
ControlPath /tmp/ssh_mux_%h_%p_%r
ControlPersist 2h
TCPKeepAlive no
ServerAliveInterval 60
ServerAliveCountMax 10

#add hosts here, not /etc/hosts :) nice difference to NOT mix them

Post a Comment

Disclaimer: The information in this weblog is provided "AS IS" with no warranties whatsoever, and confers no rights to any institution/person/organization. These are my personal thoughts and ideas. When I am inspired by others I give credit, I do not assume other's work and efforts. This site is NOT supported, approved, blessed etc. by Lotus Software and/or IBM Corporation.

Creative Commons License

This work is licensed under a Creative Commons Attribution 3.0 License.