Useful Bash Commands
Sunday, 3rd October, 2010
ssh-copy-id Copy your SSH ID to a remote system to enable password-less logins. ssh Proxyssh -CD localhost:9911 user@server
-D This binds a socks 5 proxy to port 9911, listening only to itself (no other system on the network can see this.)
-C Compresses the connection, this boosts speed significantly on all connections, I see about 10% boost!
This is a very helpful tool when out and about on untrusted networks, as all your traffic is encrypted by ssh you can check emails etc. without worrying that someone on the network is sniffing your packets. It also serves as a good guard against session hijacking as cookies etc. are encrypted up to your server, then released into the wild and busy internet.
screen
hardstatus alwayslastline
hardstatus string '%{= mK}%-Lw%{= KW}%50>%n%f* %t%{= mK}%+Lw%< %{= kG}%-=%D %d %M %Y %c:%s%{-}'
startup_message off
vbell off
defscrollback 10000
autodetach on
attrcolor b ".I"
^C + a c = create new
^C + a n = go to next
^C +a A = rename current
^C + a [esc] = freeze and scroll