Alerts This Week
Warning Icon 1 637
Alerts This Week
Warning Icon 1 637

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 1 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
162

Setting Up A Secure VPN Connection With OpenVPN, ProtonVPN, NordVPN

This guide explains VPN installation and configuration processes on Linux systems. We demonstrate these processes for OpenVPN, ProtonVPN, and NordVPN. . Using a virtual private network is a smart way to stay safe online. VPNs add a protective layer by encrypting your data, concealing your IP address, and channeling network traffic through secure “tunnels.” Most of us are familiar with using VPN apps on smartphones and Windows or MacOS computers. But what about Linux ? Can you use your favorite VPN? Are there open-source VPN options for Linux? In this article, I will introduce you to the OpenVPN project and explain how to set up its Community Edition using Easy-RSA. Additionally, I will guide you through the steps of installing the ProtonVPN GUI – an easy, fast, and free method to connect to one of the most trusted privacy platforms. . Utilizing a VPN is an intelligent move for enhancing online security. These networks provide an additional shield by encoding your information.. Linux VPN, Secure Connection, VPN Setup Guide, OpenVPN Installation, ProtonVPN Configuration. . Brittany Day

Calendar 2 Aug 23, 2023 User Avatar Brittany Day How to Strengthen My Privacy
166

Securely Connecting to Remote Servers Using SSH Protocols and Techniques

If you ever need to securely connect to a remote machine and reach a command-line interface, SSH is the tool for the job. The Secure Shell Protocol (SSH) has been used for decades as a means to remotely interface with Unix / Linux / BSD machines over insecure connections. . SSH operates on a traditional client - server principle where a remote user (client) can connect to a server and run commands as if they were sitting at the machine. SSH is particularly useful if you have a server or Raspberry Pi you need to control remotely. As these systems primarily use Linux, it’s easy to do things like edit scripts, change key configuration files or even install software remotely. In this how to, we will cover how to create basic SSH connections coming from Windows, macOS and Linux machines. . Discover the process of establishing a secure SSH connection to distant systems using either Windows, Linux, or macOS for efficient administration.. SSH Remote Access, Secure Shell Protocol, Command Line Access. . Brittany Day

Calendar 2 Jul 08, 2022 User Avatar Brittany Day How to Learn Tips and Tricks
162

Installing WireGuard VPN on Ubuntu 20.04 for Enhanced Security

Learn how to set up WireGuard VPN - an innovative VPN (Virtual Private Network) technology that utilizes state-of-the-art cryptography - on Ubuntu 20.04 to act as a VPN server. This setup can be used to surf the web anonymously, bypass Geo-restricted content, allow remote workers to connect to a corpoarte network securely and protect against Man in the Middle attacks. . WireGuard is a modern VPN (Virtual Private Network) technology that utilizes state-of-the-art cryptography. Compared to other popular VPN solutions, such as IPsec and OpenVPN , WireGuard is faster, easier to configure, and has a smaller footprint. It is cross-platform and can run almost anywhere, including Linux, Windows, Android, and macOS. Wireguard is a peer-to-peer VPN; it does not use the client-server model. Depending on its configuration, a peer can act as a traditional server or client. It works by creating a network interface on each peer device that acts as a tunnel. Peers authenticate each other by exchanging and validating public keys, mimicking the SSH model. Public keys are mapped with a list of IP addresses that are allowed in the tunnel. The VPN traffic is encapsulated in UDP. . Discover the process of configuring WireGuard VPN on Ubuntu 20.04 to enhance your online security and maintain your privacy.. WireGuard Setup, Ubuntu 20.04 VPN, Network Security, Secure VPN Connection. . Brittany Day

Calendar 2 Nov 02, 2020 User Avatar Brittany Day How to Strengthen My Privacy
166

Exploring SSH Command for Securing Remote Server Connections

Secure Shell (SSH) is a cryptographic network protocol used for an encrypted connection between a client and a server. The ssh client creates a secure connection to the SSH server on a remote machine. The encrypted connection can be used to execute commands on the server, X11 tunneling, port forwarding, and more. Learn more about SSH command and its role in securely managing a remote server: . There are a number of SSH clients available both free and commercial, with OpenSSH being the most widely used client. It is available on all major platforms, including Linux, OpenBSD, Windows, macOS and others. In this article, we will explain how to use the OpenSSH command-line client ( ssh ) to login to a remote machine and run commands or perform other operations. The link for this article located at Linuxize is no longer available. . Secure Shell (SSH) offers secure access to remote servers, allowing users to manage them securely over unsecured networks without compromising data integrity. SSH Commands, Secure Shell Protocol, Remote Server Access, OpenSSH Client. . Brittany Day

Calendar 2 Dec 25, 2019 User Avatar Brittany Day How to Learn Tips and Tricks
167

Safe Data Transfers: Effective SSH Tunneling Techniques

In this article, we present a few examples on how to use ssh to tunnel data from/to external applications. "VPN (Virtual Private Network) relies on ssh but in a different way, much more elaborate than the one we take up here. Another sophisticated so. . Secure Shell (SSH) facilitates safe communication over unsecured networks through tunneling, enhancing security for data transfer between services.. SSH Tunneling, Data Security, Secure Networking. . Anthony Pell

Calendar 2 Nov 23, 2004 User Avatar Anthony Pell How to Secure My Network
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