Dan’s View

2009/04/09

Use ssh ControlMaster to improve speed of connection time

Filed under: Geek,Server,linux — Tags: , — dan @ 18:02

I often work on many machines and end up with multiple sessions to each. Therefore I finally got around to checking out the ControlMaster and ControlPath configuration of ssh. I added the following to my ~/.ssh/config which is for a virtual machine I use on my laptop, so no network issues in play.

Host vm
 Hostname 192.168.100.101
 User dan
 ControlMaster auto
 ControlPath /Users/dan/.ssh/master-vm

Then in a terminal I ran the following, twice. Once on its own then with an ssh session running in another terminal.

for X in `seq 1 5`; do time ssh vm "pwd; uptime; hostname;" >/dev/null; done;

Without avg.: 0.268s
With avg.: 0.035s

I think that is quite impressive.

For the raw terminal output, please see here.

Update

Of course you can do this dynamically.

Host *
   ControlMaster auto
   ControlPath ~/.ssh/master-%r@%h:%p

Then each socket will be used only when the user, host and port are the same.

2009/02/13

Migrations…

Filed under: Geek,Hardware,Server,linux — Tags: , , — dan @ 13:15

Well would be apart from hosing the box within 3 hours.

Once Xen is up an running, mini boxes will be doing it all.

Update: An image I took a while back.

Chinatown Lanterns Jan 2009

Chinatown Lanterns Jan 2009

2008/07/27

Test ImageShack

Filed under: Server — Tags: , — dan @ 08:27

ImageShack

2008/07/22

Migrating…

Filed under: Server — Tags: — dan @ 12:25

Since I am going to change company, I am loosing my company server.

Therefore over the next week I am hopefully migrating all fine!

This site. Done!

2008/01/03

HDD Fscked

Filed under: Hardware,Server — Tags: — dan @ 07:22

Bugger. The disk’s head has virtually died.

Managed to recover some data so far, but not much…

(Serves me right for having crap backups, it’s been an issue with me for a few months, first a laptop now a server.)

Happy new year!

Cheers,

Dan.

Powered by WordPress