Managing Permission of Files and Folders in Linux

If you are a Linux user, you might have seen the following message when you try to install a package or run a command. $ apt install vim E: Could not open lock file /var/lib/dpkg/lock-frontend - open (13: Permission denied) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), are you root? This is because you don’t have the permission to install a package. In this post, I will explain how to manage permission of files and folders in Linux....

January 9, 2024

How to Secure SSH With Keys in Linux

Using passwords to connect to a server is convenient, but not secure. Malicious users can try to brute force your password and gain access to your server. To prevent this, you can use SSH keys to connect to your server. In this post, I will show you how to set up SSH keys on your server with Linux. Generating SSH Keys To generate SSH keys, use the ssh-keygen command. By default, the command generates a Ed25519 key pair, which is more secure than RSA....

January 2, 2024