Enable/Disable password-based authentication | E2E Networks documentation (2024)

This article will provide you with the steps to enable/disable password-based authentication while logging in to your server through SSH encryption keys. A password authentication against SSH isn’t bad but creating a long and complicated password may also encourage you to store it an unsecured manner. Using encryption keys to authenticate SSH connection is a more secure alternative.

Enable Password Authentication

Before enabling password-based authentication, make sure that you already have the password. If you want to change it before enabling password-based authentication, log in as root user and then run the following command in the terminal

passwd

You will be prompted to enter the new password. Enter your new password and finish the setup process.

After logging into your server as root user, open the sshd_config file in editing mode. You can do this by running the following command in the terminal. We will use vim editor for this article. Press I to edit the file

Look for the line PasswordAuthentication no and replace no with yes.

PasswordAuthentication yes

Press ESC key and save the changes to the file and exit the editor by typing: wq! and then hit Enter.

Now restart the server by running the following command.

Password authentication is now enabled for SSH access to your server.

Disable Password Authentication

This step will explain you with the steps of disabling a password-based authentication while logging in to your server through SSH. Before disabling password-based authentication, please make sure that you have copied your public key into the server and your private key matches with the public key. If you lose your private key and disable password authentication then your server will become inaccessible.

From your server open the sshd_config file in editing mode. You can do this by running the following command in the terminal. We will use vim editor for this article. Press I to edit the file

vim /etc/ssh/sshd_config

Look for the line PasswordAuthentication yes and replace yes with no.

PasswordAuthentication no

Press ESC key and save the changes to the file and exit the editor by typing: wq! and then hit Enter.

Now restart the server by running the following command.

service sshd restart

Password authentication is now removed from SSH access to your server.

Enable/Disable password-based authentication | E2E Networks  documentation (2024)
Top Articles
Robert Kiyosaki, 'Rich Dad, Poor Dad' Author, Says: 'Rich Don't Work For Money – The People Getting Screwed Today Are The Poor Middle Class'
AARP Help
Ffxiv Act Plugin
Davita Internet
Skyward Houston County
Washu Parking
Brady Hughes Justified
Polyhaven Hdri
The Best Classes in WoW War Within - Best Class in 11.0.2 | Dving Guides
Waive Upgrade Fee
Tugboat Information
Over70Dating Login
Student Rating Of Teaching Umn
Oriellys St James Mn
Detroit Lions 50 50
Miami Valley Hospital Central Scheduling
Flights To Frankfort Kentucky
Sivir Urf Runes
Lake Nockamixon Fishing Report
Epro Warrant Search
Urban Dictionary: hungolomghononoloughongous
Craigslist Red Wing Mn
St Maries Idaho Craigslist
Long Island Jobs Craigslist
Forest Biome
Pokemon Unbound Shiny Stone Location
Allybearloves
Clare Briggs Guzman
Bennington County Criminal Court Calendar
Craigslistodessa
Project Reeducation Gamcore
Scripchat Gratis
Pawn Shop Moline Il
Kabob-House-Spokane Photos
Mikayla Campinos: Unveiling The Truth Behind The Leaked Content
Pacman Video Guatemala
TJ Maxx‘s Top 12 Competitors: An Expert Analysis - Marketing Scoop
Uky Linkblue Login
Haunted Mansion Showtimes Near Cinemark Tinseltown Usa And Imax
Reading Craigslist Pa
AsROck Q1900B ITX und Ramverträglichkeit
Page 5662 – Christianity Today
SF bay area cars & trucks "chevrolet 50" - craigslist
Pain Out Maxx Kratom
فیلم گارد ساحلی زیرنویس فارسی بدون سانسور تاینی موویز
The Complete Uber Eats Delivery Driver Guide:
Anonib New
Assignation en paiement ou injonction de payer ?
Tamilblasters.wu
Ippa 番号
How to Choose Where to Study Abroad
Latest Posts
Article information

Author: Fredrick Kertzmann

Last Updated:

Views: 6209

Rating: 4.6 / 5 (66 voted)

Reviews: 89% of readers found this page helpful

Author information

Name: Fredrick Kertzmann

Birthday: 2000-04-29

Address: Apt. 203 613 Huels Gateway, Ralphtown, LA 40204

Phone: +2135150832870

Job: Regional Design Producer

Hobby: Nordic skating, Lacemaking, Mountain biking, Rowing, Gardening, Water sports, role-playing games

Introduction: My name is Fredrick Kertzmann, I am a gleaming, encouraging, inexpensive, thankful, tender, quaint, precious person who loves writing and wants to share my knowledge and understanding with you.