ssh completion

complete -W "$(( cat .ssh/known_hosts | cut -d' ' -f1 | cut -d, -f1 ; cat .ssh/config | awk '/^[Hh]ost/{print $2}' ) | sort -u)" ssh

(Source: commandlinefu.com)

man syslog

man syslog

ip toy

Just added an ip toy to http://th.issh.it

http://th.issh.it/ip will return the client ip (actually the X-Forwarded-For if it exists, remote address if not )

http://th.issh.it/ip.json will return it as json with the X-Forwarded-For