My favorites | Sign in
Project Logo
                
Feeds:
People details
Project owners:
  topher515

Contextual SSH (CSSH) was created because I always have a crap-ton of Terminals open and SSHed into many different machines--they live on LANs,WANs,VMs and any other acronym you can think of. I figure I can be much more productive if there is a simple (and automated) visual cohesiveness between the same machine.

That means taking the hostname of the machine you are SSHing into and using that to create a unique combination of background and foreground colors (and hopefully some other visual indicators eventually) for that Terminal window.

Currently CSSH only works for Mac OS X, but its expressly designed to be extended for use with Linux, so hopefully that will happen soon.

Mac OS X Leopard only for now

It's Still Broke

The terminal colors work right now, but it doesn't properly start SSH.

Using

  1. Checkout the source code
  2. chmod +x cssh.py
  3. mv cssh.py /usr/bin/

Now you can just use 'cssh.py' anywhere you would normally use 'ssh'

Alternate Usage

You might also want to rename your real 'ssh' to something like 'ssh.real' and move cssh.py to 'ssh' (it will still work without the '.py') Important: If you do move the real 'ssh' go into 'cssh.py' and change the 'real_ssh' variable to point to the location of the real 'ssh' binary.

TODO:

Linux! Make the terminal colors chosen, always look pretty. Save hostname/ip/color combos so that if DNS points to different IPs it stay consistent Add title updating based on hostname?

Maybe TODO:

Red Background for 'root' logins? Regex for words like 'prod' or 'production' in hostname and indicate the danger?









Hosted by Google Code