<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Divyanshu Tiwari</title>
    <description>The latest articles on DEV Community by Divyanshu Tiwari (@divyanshutiwari_13).</description>
    <link>https://dev.to/divyanshutiwari_13</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2553160%2F3f3d5b56-cbc3-4620-9384-dcdeb01176ed.png</url>
      <title>DEV Community: Divyanshu Tiwari</title>
      <link>https://dev.to/divyanshutiwari_13</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/divyanshutiwari_13"/>
    <language>en</language>
    <item>
      <title>Setup and Configure SSH on Ubuntu 22.04</title>
      <dc:creator>Divyanshu Tiwari</dc:creator>
      <pubDate>Mon, 01 Sep 2025 16:58:38 +0000</pubDate>
      <link>https://dev.to/divyanshutiwari_13/setup-and-configure-ssh-on-ubuntu-2204-5d6e</link>
      <guid>https://dev.to/divyanshutiwari_13/setup-and-configure-ssh-on-ubuntu-2204-5d6e</guid>
      <description>&lt;p&gt;Steps to set up SSH on Ubuntu 22:&lt;br&gt;
🛠️ Step 1: Prepare Your System&lt;br&gt;
Before installing SSH, ensure your system is up-to-date:&lt;br&gt;
&lt;strong&gt;sudo apt update &amp;amp;&amp;amp; sudo apt upgrade&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🔐 Step 2: Install OpenSSH Server&lt;br&gt;
To install the OpenSSH server package:&lt;br&gt;
&lt;strong&gt;sudo apt install openssh-server&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🚀 Step 3: Start and Enable SSH Service&lt;br&gt;
Enable and start the SSH service:&lt;br&gt;
&lt;strong&gt;sudo systemctl enable --now ssh&lt;/strong&gt;&lt;br&gt;
Verify that the SSH service is running:&lt;br&gt;
sudo systemctl status ssh&lt;/p&gt;

&lt;p&gt;🔥 Step 4: Configure the Firewall&lt;br&gt;
If you're using UFW (Uncomplicated Firewall), allow SSH connections:&lt;br&gt;
&lt;strong&gt;sudo ufw allow ssh&lt;/strong&gt;&lt;br&gt;
Check the status of UFW to ensure SSH is allowed:&lt;br&gt;
&lt;strong&gt;sudo ufw status&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;🌐 Step 5: Connect to the Server&lt;br&gt;
To connect to your server via SSH, use the following command:&lt;br&gt;
&lt;strong&gt;ssh username@server_ip&lt;/strong&gt;&lt;br&gt;
Replace username with your actual username and server_ip with your server's IP address.&lt;/p&gt;

&lt;p&gt;⚙️ Optional: Configure SSH for Enhanced Security&lt;br&gt;
To enhance security, consider editing the SSH configuration file:&lt;br&gt;
&lt;strong&gt;sudo nano /etc/ssh/sshd_config&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx3dvr32rcnhisnmohxeb.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fx3dvr32rcnhisnmohxeb.png" alt=" " width="603" height="688"&gt;&lt;/a&gt;&lt;br&gt;
Some recommended changes:&lt;br&gt;
• Disable root login:&lt;br&gt;
• PermitRootLogin no&lt;br&gt;
• Change the default port (e.g., to 2222):&lt;br&gt;
Port 2222&lt;br&gt;
After making changes, restart the SSH service:&lt;br&gt;
&lt;strong&gt;sudo systemctl restart ssh&lt;/strong&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
