I would like my Terminal windows in OS X to display the security settings of any ssh tabs I have open, i.e. RSA/DSA, etc.
You can set the title of your terminal with the following command:
MYTITLE="Something Witty" echo -n -e "\033]0;$MYTITLE\007"
You could place that in the .bashrc file of the hosts you are connecting to, and it would set the title when you log in.
Determining the security settings might be a bit more difficult. You might determine if you connected with Kerberos by inspecting $KRB5CCNAME. You can determine some things about the security of your X forwarding with the xauth program.
Also, this has the caveat of requiring you to implement this on every server you connect to.
You could wrap the ssh command on your computer with a script that sets the window title before connecting to the server. Pseudo-code would be:
- Inspect the command line parameters to determine what security-related arguments were given
- Set the title to something that describes the security mode
- Pass the arguments to the real ssh program