SSH Notes

~/.bashrc

#alias for ssh tunnels
alias tun="ssh -f -N "

# add tun to bash completion
complete -F _ssh tun

~/.ssh/config

Host tntop
      User username
      Hostname hostname.com
      LocalForward 3000 127.0.0.1:3000

Run the command

tun tntop
 
linux/ssh.txt · Last modified: 14:16 21/07/2007 by rharding