How To Set Up SSH Keys

About SSH Keys SSH keys provide a more secure way of logging into a virtual private server with SSH than using a password alone. While a password can eventually be cracked with a brute force attack, SSH keys are nearly impossible to decipher by brute force alone. Generating a key pair provides you with two long string of characters: a public and a private key. You can place the public key on any server, and…

shell prompt image

Quick tip: Add a user to the sudoers group

Situation: A new user on your server needs to have admin, or ‘root’ user access. Rather than enabling the root account, or giving out the¬†password details to your elevated account, add the new user to the sudoers group, and hey presto – they will get sudo access with their own account and password: usermod -aG sudo <username_of_person_you_want_to_give_root_to>

How to mount a USB stick as a non-root user with write permission

So you want to use a USB stick or a USB hard drive, and you don’t want to mount it as root every time? Why would you want to do this? It’s a hassle to mount the USB stick using sudo every time – you have to type the root password, and you have to specify all the mount options each time you ¬†mount it. The permissions on a FAT32 USB stick or drive don’t…

How to read and write to Windows NTFS drives as any user

So you have a Windows hard drive using the NTFS partition type. The good news is that most Linux distributions these days can read and write to it automatically without as much as a config change. It automatically sees the partition and mounts it That’s great, but what if you have a one-user Linux box and you want every app on your Linux box to be able to use the files on that partition, not…