After trying to start ssh on a fresh VPS, I got the following error message: sh-3.2# service sshd start Starting sshd: Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_dsa_key Disabling protocol version 2. Could not load host key sshd: no hostkeys available — exiting. [FAILED] The fix is simple, just run [...]
Continue reading...19. June 2011
Recently, A project that I was working on required that I import a fairly large BCP file containing around 260k entries. I spent quite a while trying to work out the best way to import it directly into my MySQL database with little or no pre-processing required. The answer turned out to be quite simple, [...]
Continue reading...8. June 2011
This is another one of those things that I can never remember off the top of my head, so I’m sticking it here for reference. I believe it was originally posted somewhere on the cPanel forums by the almighty chirpy. lsof /tmp # Umount /tmp and /var/tmp: umount -l /tmp umount -l /var/tmp # Remove [...]
Continue reading...
27. June 2011
0 Comments