News for hackers. Stuff that matters.
Re:BASH autocomplete for SSH by jrussbowman on Saturday January 21, 2012 @09:28AM (#3493626)
On the flip side a similar script to use a similar technique in .profile to strip out all SSH lines in your history would be a good security measure. That account gets compromised and you wouldn't have a road map of other hosts to connect to. Could remove known_hosts on systems that don't hash the hostnames too. Maybe I really am turning into a grumpy Sa if these are my first thoughts on reading things like this.
Re:BASH autocomplete for SSH by jacknagel on Saturday January 21, 2012 @12:02PM (#3493945)
HISTIGNORE=ssh

It won't strip existing lines, but will prevent them from being recorded in the future.

Re:BASH autocomplete for SSH by jacknagel on Saturday January 21, 2012 @07:01PM (#3495098)
Sorry, should be

    HISTIGNORE=ssh*
(the pattern has to match the entire line.)

Like many shell variables, this one is a colon-separated list.