Secure your ssh connection disabling ssh password logins

First off, having to remember a password for each of your clients server it is quite daunting, so it might seem a good idea to store the password to your server access in a very secure spreadsheet file. Well that is not a great idea, in stead you should secure the access to your server using an ssh key, this also will allow you to forget about a password and gaining access straight with a command line. So let’s start. First of all you will have to create a key , if you haven’t already (this is a MAC guide, but …

Read moreSecure your ssh connection disabling ssh password logins

Restrict sftp users to theirs home directory and share folders

I often have to share resources to clients ,  but allowing them to “play” with the entire file system of the web app, might end up in disaster. That’s why i decided to write this little guide on how to restrict sftp users to theirs home directory and share folders. Restrict sftp access to home directory First we need to modify the sshd_config file which contains all the ssh configurations. sudo nano /etc/ssh/sshd_config Make sure the following line is enable, otherwise add it your self. Subsystem sftp internal-sftp  -f AUTH -l VERBOSE On DigitalOcean I had the following line, which …

Read moreRestrict sftp users to theirs home directory and share folders