0120-4578842 info@netforchoice.com FAQs Blog Contact Us Become Our Partner
logo logo
  • Dedicated Servers 
    Dedicated Server
    Dedicated Server in Noida Dedicated Server in Bangalore Dedicated Server in Mumbai
    Web Hosting
    Cloud Hosting cPanel Hosting Plesk Hosting CRM Hosting
    Public
    Public Cloud Solution Amazon Web Services (AWS) Microsoft Azure Google Cloud (GCP) Oracle Cloud IBM Cloud
    ERP on Cloud
    SAP S/4HANA Tally Busy Marg Navision Customized ERP
  • Enterprise 
    NFC Solutions
    NFC Vault (DMS) SdWan WAF SAP BASIS Services SAP S/4 HANA
    Email Solutions
    Google Workspace Microsoft 365 Business Email Zimbra Email Hybrid Email Email Archival Spamhunter Antispam
    Backup & Disaster Solutions
    Acronis Backup Vaultize Server Backup HA (High Availability) DR as a Service
    Products
    Email Migration Tool Email Backup Tool Data Recovery Tool Data Wipe Tool Carbino Zextrax
  • Service 
    Security
    Security Operation Center (SOC) Netword Operation Center (NOC) Cyber Security Digital Forensics Cyber Protection VAPT
    Security
    Cloud DLP Acronis Advanced Security
    Management
    Cloud Migration Services Server Migration Services Email Migration Services Cross Platform Migration
  • Support 
    Server Management
    Server Management Server Monitoring 3rd Party Software Backup Management Data Migration Scripting Service
    Security Management
    Server Hardening Security Audits PCI DSS Scan Resolution Server Forensics and Hack Recovery Abuse Handling Per Incident Support
    Dedicated Support
    Technical Support Teams Sales/Billing Support Teams Live Chat Support Teams
    Hire an Expert
    Server Administrator Dedicated Staff
  • About Us 
    • About Us
    • Why NFC
    • Life at NFC
    • Reviews
    • Terms of Service
Home » Blog » Data Center » How to Setup SSH Passwordless Login in Linux – A Detailed Guide
Data Center, how-to, Informative, Technology

How to Setup SSH Passwordless Login in Linux – A Detailed Guide

setup-passwordless-ssh-login-in-linux
author
Published By Priyanka Chauhan
Sameer Yadav
Approved By Sameer Yadav
Published On November 6th, 2023
Reading Time 4 Minutes Reading

You can configure or setup Passwordless SSH login by following 3 simple steps. Here’s how.

SSH is an acronym used for Secure Shell. The SSH is an open-source network protocol that allows users, system administrators, a highly secure remote connection to access a computer over an unprotected network. SSH makes it easy to manage servers, copy, or transfer files on a remote server through encrypted channels.

There are two modes to login onto a remote system over SSH

Method 1 – Password Authentication

Method 2 – Public Key Authentication (Passwordless SSH Login)

Do you know?

Implementing passwordless SSH login ensures a resilient trust between two Linux servers for streamline file transfer or synchronization.

Therefore, here, you will know how to setup passwordless login. It includes RedHat Enterprise Linux-based distributions Rocky Linux, AlmaLinux, CentOS, Fedora, Oracle Linux, Clear OS, and Debian-based Linux Mint & Ubuntu. Using the below-discussed method helps you to connect Linux servers without typing a password.

Let’s begin!

Prerequisites to Configure Passwordless SSH Login

  1. You must have Command line / Terminal window.
  2. User should have sudo or root privileges.
  3. Local Server & Remote Server. Here we take two servers – 192.xx8.0.x5 (Local Server with user netforchoice) & 192.xx8.0.x4 (Remote Host with user zoopdesk).
  4. SSH access to a remote server through a command line or terminal window

Before Jump Into Steps – Check For Existing Keys

It might be possible that your machine already has SSH key pair. First, run the command to see whether you have SSH keys on the system or not.

ls -al ~/.ssh/id_*.pub

In case the result shows no files, jump to the passwordless ssh login configuration steps. Although if the results show you have the keys, save a copy of it and create a new pair or overwrite it.

How to Setup SSH Passwordless Login in RedHat Enterprise Linux – 3 Simple Steps

The configuration of passwordless SSH in linux broadly requires three steps. Thus, understand each step in detail

Step 1 – Key Generation on 192.xx8.0.x5

Run command – ssh-keygen to create a key pair. Opt the defaults at all prompts.

$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/netforchoice/.ssh/id_rsa): 
Created directory '/home/netforchoice/.ssh'.
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/netforchoice/.ssh/id_rsa.
Your public key has been saved in /home/netforchoice/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:qOoqJFfbfnBFMZ6JEdZQZfy6WXTfcknQEd0B+quTwJh netforchoice@netforchoice.com
The key's randomart image is:
+---[RSA xxxx]----+
|        .+*+o.o+*|
|         oo*o. .o|
|         .*. ..  |
|    .  . o. . o..|
|   . o. S.   +..+|
|... ..o .   . +.+|
|o.  .. o. o .= o |
|.  .  . .o E+    |
|ooo    .  ...    |
+----[xxAxx6]-----+

The default key location is ~/.ssh directory. It will create automatically if it doesn’t exist.

Step 2 – Upload SSH Key to – 192.xx8.0.x4

Time to utilize the SSH from server 192.xx8.0.x5 and upload a new resultant public key on server 192.xx8.0.x4 under zoopdesk .ssh directory under the file name authorized_keys.

$ssh-copy-id zoopdesk@192.xx8.0.x4

Step 3: Test SSH Passwordless Login from 192.xx8.0.x5

Now, you can log into 192.xx8.0.x4 as a zoopdesk user from the server 192.xx8.0.x5 as a netforchoice user without a password.

$ ssh zoopdesk@192.xx8.0.x4

Final Say On Setup Passwordless SSH Login!!

The SSH plays a key role while accessing the computers over the unsecured network. Therefore, in this write-up, we have discussed the best way to set up SSH password login in Linux using ssh key command.

Moreover, if you face problems in managing your Linux server, you can connect with NetForChoice engineers. They are the best consultant who can give you the proper guidance on managing your server by outsourcing the IT department while keeping your cost budget intact. To know more click the link below.

Ask From Experts



author

By Priyanka Chauhan

Priyanka Chauhan is a proficient Datacenter Specialist and accomplished Content Curator. Her expertise extends to the intricacies of data management and data center operations, ensuring the smooth and secure handling of critical information. As a skilled content curator, Priyanka possesses a talent for crafting engaging narratives that captivate and inform her audience.

View all of Priyanka Chauhan's posts.
← Previous Post
Next Post →

Related Articles

business email for startups

Affordable Business Email Services for Startups

May 12, 2021
Dedicated_Serve_ for_Video_Streaming

#1 Dedicated Server for Video Streaming – Buy it Today!

Nov 12, 2021
Best hosting for heavy traffic sites

Best Hosting Services For Heavy Traffic Sites – NetForChoice is the Place

Sep 17, 2022

Search Articles

Contact Us

Have questions? Get in touch with us!

Categories

  • Informative (126)
  • Cloud Hosting (84)
  • Technology (80)
  • News (66)
  • mail archiving (40)
  • Mailing Solution (38)

Recent Posts

  • Top 20 listed data center companies in indiaDec 18, 2025
  • How Tally on Cloud Transforms Accounting for Multi-Branch BusinessesDec 9, 2025
  • Stop Wasting Money on Email Licenses—Switch to Hybrid MailDec 1, 2025
  • Upgrade Smart, Save Big on Hybrid Mail This Black Friday 2025Nov 15, 2025
  • How does Acronis Backup Work?Nov 13, 2025

Popular Tags

cloud hostingcybersecurityemail solutionsTally on Clouddedicated serverBackup SolutionsHybrid MailTally on Cloud benefitsVPS Hostinghybrid email solutiondata centerAcronis Backup
logo

NetForChoice Solutions Pvt. Ltd.
We are a Tier III Data center & Managed hosting provider company

0120-4578842
+91-9958319290

info@netforchoice.com

SERVICES

  • Datacenter Services
  • Bare Metal Server
  • Dedicated Server
  • Virtual Private Server
  • Public Cloud
  • Cloud Telephony
  • Backup Service
  • Cloud DLP

COMPANY

  • About Us
  • Why NFC
  • Contact Us
  • Privacy Policy
  • SLA
  • Blog
  • Partners
  • Ticket

ADDRESS

  • Uttar Pradesh
    A-86, Block A, Sector 57 Noida Uttar Pradesh - 201301 India
  • Delhi Office
    528, City Centre Sector-12, Dwarka New Delhi - 110075, India
  • Pune Office
    502 - P4, Pentagon Magarpatta Cyber City Pune - 411028, India
Follow Us
  • facebook
  • Twitter
  • linkedin
  • YouTube

NetForChoice is a Registered Trademark. © Copyright 2025. All Trademarks Acknowledged.

WhatsApp Call Now