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.
[ Parent
| on HN ]
HISTIGNORE=ssh
It won't strip existing lines, but will prevent them from being recorded in the future.