• Activities
    • Health
    • Education
    • Mobile
    • Sports
    • PSL
  • Economy
    • Auto Industry
    • Crypto Currency
    • Economy
    • Smart Devices
  • Tech
    • Startups
    • Social
    • Telecom
    • Technology
  • TechX World
+92 323 8324975
Monday, March 20, 2023
TechX Pakistan | Startups | FinTech | Crypto | EdTech | Reviews
Advertisement
  • Home
  • News
  • Premium Content
  • How To
  • Advertisement
  • Contact
  • About
No Result
View All Result
  • Home
  • News
  • Premium Content
  • How To
  • Advertisement
  • Contact
  • About
No Result
View All Result
TechX Pakistan | Startups | FinTech | Crypto | EdTech | Reviews
No Result
View All Result
  • Home
  • News
  • Premium Content
  • How To
  • Advertisement
  • Contact
  • About
Home How To

How To disable root login via SSH on Linux

Muhammad Kamal by Muhammad Kamal
September 28, 2022
in How To
Reading Time: 3 mins read
A A
Buy author a coffee
How To disable root login via SSH on Linux

Logging in as the Linux root user is not recommended. Logging in as root via an SSH connection is even more dangerous. We explain why and show you how to avoid it.

The Sword with Two Edges

You’ll need someone with authority to own and manage the parts of your operating system that are too important or too sensitive for regular users to handle.

This is where root comes into play. The all-powerful super user of Unix and Linux operating systems is root.

The root user account, like all other accounts, is password protected. No one else can access that account without the root user’s password. That means no one else can use root’s privileges and powers.

On the other hand, that password is the only line of defence between a malicious user and root’s powers. Passwords can, of course, be guessed, deduced, discovered written somewhere, or brute-forced.

If a malicious attacker learns root’s password, they can log in and do whatever they want with the entire system.

There are no limitations to what root can do because of their elevated privileges. It would be the same as if the root user left a terminal without logging out, allowing opportunistic access to their account.

Because of these risks, many modern Linux distributions do not allow root to log in locally, let alone over SSH.

The root user exists, but no password has been assigned to them. However, someone must be able to manage the system. The root user command is the answer to that riddle.

Nominated users can use sudo to temporarily use root-level privileges from within their own user account.

To use sudo, you must first authenticate by entering your own password. This temporarily grants you access to root’s capabilities. When you close the terminal window in which you were using your root powers, they expire.

If you leave the terminal window open, it will time out, reverting you to regular user status. This adds another layer of security. It safeguards you against yourself.

If you log in as root instead of a regular account on a regular basis, any mistakes you make on the command line could be disastrous.

You’re more likely to be focused and careful about what you type if you have to use sudo to perform administration.

Allowing root login via SSH raises the risks because attackers do not need to be local to try to brute-force your system remotely.

SSH Access and the root User

This issue is more likely to occur when you administer systems for others. Someone may have decided to set a root password in order to log in. Other settings must be altered to allow root to log in via SSH.

This will not happen by chance. However, it is possible for people who are unaware of the risks to do so.

If you take over the administration of a computer in that state, you must explain why it’s a bad idea and then restore the system to safe mode. If it was set up by the previous system administrator, the owners may be unaware of it.

To read our blog on “With this BIOS upgrade, you may play Doom directly from your motherboard,” click here

Share48Tweet30Share8Send
Muhammad Kamal

Muhammad Kamal

Related Posts

How-to-use-smartboard-in-a-classroom-to-make-it-playful
How To

How to use Smartboard in a classroom to make it playful

by Huma Gull
March 16, 2023
how-to-use-ChatGPT-with-ease-in-an-effective-way
Technology

How to use ChatGPT with ease in an effective way

by Huma Gull
March 16, 2023
MS-Word-page-numbering;-How-to-do-it
How To

MS Word page numbering; How to do it

by Huma Gull
March 16, 2023
how-pakistan-can-avoid-the-risk-of-being-default
How To

How Pakistan can avoid the risk of being default

by Asad Hassan
March 2, 2023
how-to-recover-deleted-data-from-tecno-phones
How To

How to recover deleted Data from Tecno phones?

by Asad Hassan
January 30, 2023

Follow Us

Promoted

hostingwalay-participating-in-cxo-global-summit-expo-in-islamabad

HostingWalay participating in CXO Global Summit in Islamabad

by Asad Hassan
January 18, 2023
0

Everyday living involves the use of technology, and our Pakistani IT entrepreneurs are using their expertise to make their communities...

Gitex makes its debut in Africa, holding its first exhibition in Morocco in May 2023

Gitex makes its debut in Africa, holding its first exhibition

by Bilquees Anwar
November 28, 2022
0

Gitex, Dubai's premier technology exhibition, said on Tuesday that it was expanding into Africa. The first Gitex Africa will be...

Welcome to GITEX GLOBAL

Are you ready for the biggest tech event? GITEX Global

by Bilquees Anwar
September 2, 2022
0

As the year started with the global tech rout, ongoing inflationary concerns, and the recent rebound, yet the tech industry...

TechX Pakistan, the official coverage partner of 21st ITCN Asia Karachi

TechX Pakistan, the official coverage partner of 21st ITCN

by Asad Hassan
August 19, 2022
0

The 21st ITCN Asia Karachi is a three-day technology exhibition and event with the goal of using technology to create...

Recent News

for-digital-census-federal-govt-released-rs-10-bn-more

For digital census, Federal Govt. released Rs. 10 bn more

March 20, 2023
nz-will-prohibit-tiktok-on-devices-used-by-govt-officials

NZ will prohibit TikTok on devices used by govt. officials

March 20, 2023
germany-unveil-garmi-robot-to-take-care-of-elderly-people

Germany unveils Garmi robot to take care of elderly people

March 20, 2023
psl-8-had-more-digital-platforms-rating-than-ipl-sethi

PSL 8 had more digital platform rating than IPL, Najam Sethi

March 20, 2023
pia-introduced-whatsapp-chatbot-to-book-tickets

PIA introduced WhatsApp Chatbot to book tickets

March 20, 2023
rs-50-liter-subsidy-on-petrol-will-be-given-to-poor-govt

Rs. 50/liter subsidy on petrol will be given to poor, Govt.

March 20, 2023
Currently Playing

Presence of Pakistan, Connexion Lounge sponsored by @MinistryofITTelecomPakistan @GitexTechWeek

Presence of Pakistan, Connexion Lounge sponsored by @MinistryofITTelecomPakistan @GitexTechWeek

00:01:40

#ITCN Asia ’22 | 21st International IT and Telecom Show | Curtains Opened | TechX Pakistan

00:05:28

London Tech Week 2022 Highlights | #Pakistan #Software

00:02:58

#Zindigi Future Fest ’22 Curtains Opened | Day 01 Glimpses | Tour | TechX Pakistan

00:03:13

Wait is Over, ITCN Asia Pakistan Tech Fest 2022 is live now!

00:01:44

CXO Meetup Dubai by Tech Destination Pakistan - P@SHA x PSEX x MoITT

00:02:41

Workshop on IT Investment Opportunities by Tech Destination Pakistan

00:00:56

Pakistan Pavilion at GITEX Dubai 2021

00:01:39

#GITEX 2021 Curtains Opened | Day 01 Glimpses | 5G | Technology | Tour | TechX Pakistan

00:01:33

GITEX Technology Week 2020 by TechX Pakistan - Official Media Partner

00:01:27
TechX Pakistan | Startups | FinTech | Crypto | EdTech | Reviews

In 2019, Mohammad Owais took the initiative of launching the TechX Pakistan. It is a blog project by assessing the gap in Local Technology & Social blogging. It has one simple goal of creating awareness about latest technological development in the world and especially in Pakistan. We break news, cover interviews, seminars and exhibitions locally and internationally both, related to IT Startups, IT best practices, Businesses, Automobiles, Smartphone Technology and Social Media.

© 2022 TechX.PK - All Rights Reserved

No Result
View All Result
  • Home
  • News
  • Premium Content
  • How To
  • Advertisement
  • Contact
  • About

© 2022 TechX.PK - All Rights Reserved

Welcome Back!

Login to your account below

Forgotten Password?

Retrieve your password

Please enter your username or email address to reset your password.

Log In

Add New Playlist

Are you sure want to unlock this post?
Unlock left : 0
Are you sure want to cancel subscription?
Go to mobile version