Monthly Archives: March 2013

Useful netstat commands

To show which IP addresses are currently connected to your server: netstat -nt

Posted in Linux | Comments Off on Useful netstat commands

Connecting to an external MySQL server through an SSH tunnel

Scenario: You’re at home, and you want to connect to a mysql server on the other side of a firewall. There is a machine with ssh open on it that you can use as a gateway. On your home machine: … Continue reading

Posted in Linux, SSH | Comments Off on Connecting to an external MySQL server through an SSH tunnel

Rsync Commands

rsync -avnh source target #Use rsync to sync to remote system as user over remote shell compressing transfer and without crossing filesystem boundaries rsync -avzx -e ssh /var/www/ user@remote_host:/var/www/ #Use rsync to sync to remote system as user over remote … Continue reading

Posted in Linux | Comments Off on Rsync Commands