Alerts This Week
Warning Icon 1 540
Alerts This Week
Warning Icon 1 540

Stay Ahead With Linux Security HOWTOs

Filter Icon Refine HOWTOs
X Clear Filters
X Clear Filters
View More

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Community Poll

What got you started with Linux?

No answer selected. Please try again.
Please select either existing option or enter your own, however not both.
Please select minimum {0} answer(s).
Please select maximum {0} answer(s).
/main-polls/150-what-got-you-started-with-linux?task=poll.vote&format=json
150
radio
0
[{"id":483,"title":"Self-taught through trial and error","votes":545,"type":"x","order":1,"pct":78.42,"resources":[]},{"id":484,"title":"Formal training or courses","votes":30,"type":"x","order":2,"pct":4.32,"resources":[]},{"id":485,"title":"A job that required it","votes":34,"type":"x","order":3,"pct":4.89,"resources":[]},{"id":486,"title":"Other","votes":86,"type":"x","order":4,"pct":12.37,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350
bottom 200
Loading...

Explore Latest Linux Security HOWTOs

We found -2 articles for you...
166

Ensuring Safe Remote Access with SSH Key Authentication on UNIX Servers

You will most likely use a Secure Shell (SSH). to perform remote work with Linux servers or containers . Although the name of the software includes "secure," you shouldn't assume it is locked down by default. It's certainly more secure than telnet, but you still need to do extra to ensure your data and systems are safe. . Secure Shell is ready to use out of the box. It requires a username and a password. You issue the command "ssh" ralph@example.com, and you will be asked for the password of the user ralph. This is a much safer way to do it and one that's less likely to result in server hacking. This method is SSH-key authentication. SSH key authentication uses an SSH pair generated locally. The key pair consists of a public and private key. The private key stays on your machine, while the public key goes to the remote server. Once the pair of keys are in place, every time you log in, they will do a handshake and verify that they match. You will be granted access to the server if these keys match. You're outta luck if the keys do not match. This is a much more secure method than the traditional username/password setup and should be used on every Linux server. I will show you how SSH key authentication can be made a reality. Let's get started! What You Need You'll need two Linux machines for this demonstration -- one local and one remote. This is done through the command line, so you do not need to configure a desktop. You'll also need to know the IP address of the remote machine and its domain. How Can I Create an SSH Key Pair? You will need to generate your SSH key pair first. This is done locally. Log in to the machine you want to create the key pair on and use the command: ssh-keygen The key pair will be asked for a password. You will be asked to enter and confirm the password. Use a unique/strong password. The command above will create two files: id_rsa (the private key) & id_rsa.pub (the public key). You Can Copy Your Key to the RemoteMachine Next, you will need to copy your public keys to the remote computer. SSH includes a built-in feature that makes this process easy. Run the following command to copy the key: ssh-copy-id USER@SERVER> The SERVER address is the domain or IP address of the remote server. The remote user's SSH passphrase will be requested first. The public key is saved in the /.ssh on the remote server upon successful authentication. Then, you can test SSH key verification by trying to log in again with the following: ssh User@SERVER> The SERVER can be either the IP or domain address of the remote server. You'll now be asked for your SSH key password and not the user password. SSH key Authentication is now working. We can improve security further. Configure the SSH Server to Heighten Security Be sure to create key pairs before you proceed. Copy the public keys to the server and any client machines that need access to the remote servers. You'll have to take this step if you want the machines you need to log in with (even if they use valid user accounts). The only way around this would be to manually copy/paste the contents of the SSH public key from the client machine to the ~/.ssh/authorized_keys file on the server. We're now going to make sure that public key authentication and password authentication are disabled on both the local server and the remote server. Use the following command to edit the SSH daemon configuration (on the remote server). sudo nano /etc/ssh/sshd_config Look for the following line: #PubkeyAuthentication yes Replace that line with: PubkeyAuthentication Yes Then, find the following line: #PasswordAuthentication yes Replace that line with: PasswordAuthentication no Close the file and save it. Start SSH by using the following command: sudo systemctl restart sshd Open another terminal (on the machine where you copied the public keys to the server), and log in using SSH. You've now successfully made sure that theonly way you can log in to SSH using key authentication is if you have access. Anyone attempting to login to your Linux Server without the matching key pair is denied. Have additional questions about securing remote Linux server logins with SSH key authentication? Connect with us on X @lnxsec - we're here to help! . Establish reliable remote connectivity to your Linux server using SSH key verification by generating key pairs and adjusting server configurations.. SSH Authentication, Secure Shell, Key Pair Setup, Remote Server Login. . Dave Wreski

Calendar 2 Feb 04, 2024 User Avatar Dave Wreski How to Learn Tips and Tricks
163

How To Setup Passwordless SSH Login For Multiple Linux Servers

Learn how to setup passwordless SSH key-based authentication for multiple remote Linux servers simultaneously using a shell script in this TecMint tutorial. . SSH Key-based authentication (also known as public-key authentication) allows for password-less authentication and it is a more secure and a much better solution than password authentication. One major advantage of SSH password-less login , let alone security is that it allows for automation of various kinds of cross-server processes. In this article, we will demonstrate how to create an SSH key pair and copy the public key to multiple remote Linux hosts at once, with a shell script. . Setup SSH key-based authentication across multiple remote servers with ease. Generate keys if missing and copy public keys efficiently.. SSH Authentication, Passwordless Login, Key-based Access. . Brittany Day

Calendar 2 Oct 08, 2020 User Avatar Brittany Day How to Secure My Webserver
160

How to Secure Your Data With gocryptfs on Linux Servers

Looking for a user-friendly encryption tool to secure data on your Linux servers? If so, you'll want to check our gocryptfs. In this tutorial, Jack Wallen demonstrates how to install and use gocryptfs. . Your Linux servers probably hold very precious company and/or client data. If that's the case, what do you do to protect it? Yes, you've probably spent an inordinate amount of time hardening your network and maybe you've had a good amount of success at keeping intruders away. But, eventually someone will get in. When they do, is that data protected? Why not give that data a layer of encryption? With Linux powering your data center servers, there are a number of tools that can help you achieve this. One such tool is gocryptfs. The gocryptfs tool allows you to encrypt only the directories you need. It's lightweight, user-friendly, and secure. Better still, gocryptfs allows you to move those encrypted directories from one system to another. As long as you have the encryption passphrase, those encrypted directories can be seen as portable vaults of data. . Safeguard your Linux server files using encfs, a straightforward encryption solution designed to shield essential data.. Encryption Tool, Data Protection, gocryptfs. . Brittany Day

Calendar 2 Sep 21, 2020 User Avatar Brittany Day How to Harden My Filesystem
News Add Esm H240

Get the latest News and Insights

Get the latest Linux and open source security news straight to your inbox.

Community Poll

What got you started with Linux?

No answer selected. Please try again.
Please select either existing option or enter your own, however not both.
Please select minimum {0} answer(s).
Please select maximum {0} answer(s).
/main-polls/150-what-got-you-started-with-linux?task=poll.vote&format=json
150
radio
0
[{"id":483,"title":"Self-taught through trial and error","votes":545,"type":"x","order":1,"pct":78.42,"resources":[]},{"id":484,"title":"Formal training or courses","votes":30,"type":"x","order":2,"pct":4.32,"resources":[]},{"id":485,"title":"A job that required it","votes":34,"type":"x","order":3,"pct":4.89,"resources":[]},{"id":486,"title":"Other","votes":86,"type":"x","order":4,"pct":12.37,"resources":[]}] ["#ff5b00","#4ac0f2","#b80028","#eef66c","#60bb22","#b96a9a","#62c2cc"] ["rgba(255,91,0,0.7)","rgba(74,192,242,0.7)","rgba(184,0,40,0.7)","rgba(238,246,108,0.7)","rgba(96,187,34,0.7)","rgba(185,106,154,0.7)","rgba(98,194,204,0.7)"] 350
bottom 200
Your message here