Stop SSH and SFTP timeout

Just add the following line to @/etc/ssh_config@ (on the machine you’re SSHing from) : ServerAliveInterval 60 Next time you SSH of SFTP you’ll be sending ‘keepalive’ packets every 60 seconds. No more Connection reset by peer! If you have root access on the remote server, you can also set ClientAliveInterval 60 in @/etc/sshd_config@ to achieve the same effect.

August 17, 2006 · 1 min · Dave Perrett

Opening a port on linux

Check if the port is being used or not (testing port 3000 in this example): bash$ netstat -na | grep 3000 If the port is in use, then most likely it will be the software firewall blocking you. You can check by running: bash$ sudo /sbin/iptables -L Check for the port. If it isn’t listed, you will need to add it: bash$ sudo vi /etc/sysconfig/iptables Copy one of the other lines that is allowing a connection to (–dport) a port, and edit to allow access to your new port. Save the file Restart iptables: bash$ sudo /sbin/service iptables restart ...

August 16, 2006 · 2 min · Dave Perrett

Subversion Commands

...

August 15, 2006 · 2 min · Dave Perrett