Securing SSH

Securing SSH

Coding, Guide
If you are using SSH, you'll want to run down this checklist of to make that ssh server a bit more secure. If any of these settings is absent from the configuration file, you should add them. For Ubuntu this is in the file /etc/ssh/sshd_config Change Port This is more of a security through obscurity approach, but it'll help slow down bot scrapers. Change this value to something else. Port 22 Set Client Timeout ClientAliveInterval configures the server to send null packets to clients each 10 seconds. ClientAliveCountMax configures the server to close the connection if the client has been inactive for 300 seconds. In this case that is 10*300 = 3000 seconds or 50 minutes. ClientAliveInterval 10 ClientAliveCountMax 300 Disable empty passwords PermitEmptyPasswords no Limit Login Attempts MaxAuthTries 3…
Read More
Useful Command Line Scripts

Useful Command Line Scripts

Coding
Below is a list of very common linux commands that any linux person should know by heart. From gzipping files, to running backups this is my personal cheat sheet Compressing Files and Folders Unzip 7z Archive 7za x myfiles.7z gzip File gzip -9 file gzip Folder tar -zcvf archive-name.tar.gz directory-name Uncompress Gzip File gzip -d file.gz Remove Files and Folders Removing a large number of files If you're getting this error: /bin/rm: Argument list too long. Use this command: find . -type f -delete Remove folder from SVN rm -rf `find . -type d -name .svn` Remove ._ files find . -name "._*" -exec rm '{}' \; -print Remove Dreamweaver Notes rm -rf `find . -type d -name _notes` Renaming Multiple Files find . -name "*.jpg" -exec sh -c 'mv…
Read More
Basic Linux Commands For Managing A LAMPP Server

Basic Linux Commands For Managing A LAMPP Server

Coding, Guide
Frequently I am asked by clients for details on how to manage a lampp server. While I do not recommend that clients who are not familiar with systems mess with the core system there are a few simple tasks that anyone can do to back or restart basic systems. Let's get started. First you need an account with SUDO access to the server. By SUDO you are going to SSH into the server. SSH? SUDO? Linux servers typically do not have a windows type interface to them and require that you to everything in a command line system. SSH is how we are going to connect to the server. To do this you need a terminal program, OSX on the Mac includes one out of the box. Windows users will…
Read More