LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-29-2016, 06:16 PM   #1
sanjaydhanuk
LQ Newbie
 
Registered: Mar 2016
Posts: 1

Rep: Reputation: Disabled
Exclamation how to get root password of linux via ssh client or putty


i am new on this forum and i really want to know that how can i get root password of my linux server via ssh client or putty. This was the first question which i was asked in my exam. anyone can tell me this step bt step........

Last edited by sanjaydhanuk; 03-29-2016 at 06:17 PM.
 
Old 03-29-2016, 06:33 PM   #2
Keith Hedger
Senior Member
 
Registered: Jun 2010
Location: Wiltshire, UK
Distribution: Linux From Scratch, Slackware64, Partedmagic
Posts: 2,253

Rep: Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559Reputation: 559
Short answer, you can't, if you could get root's password or anyone elses there would be no point in having a password, the system just stores hash of the password and checks what you enter as a password against the stored hash and if they match you get permission to do stuff as that user.
 
Old 03-29-2016, 06:37 PM   #3
hydrurga
Senior Member
 
Registered: Nov 2008
Distribution: Linux Mint 18 MATE
Posts: 1,212

Rep: Reputation: 341Reputation: 341Reputation: 341Reputation: 341
I'd be very interested to see the second question too.
 
Old 03-29-2016, 10:56 PM   #4
jefro
Moderator
 
Registered: Mar 2008
Posts: 15,374

Rep: Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198Reputation: 2198
You'd leave a mail message to admin and tell them to send you the password.
 
Old 03-30-2016, 01:55 AM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 9,252

Rep: Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684Reputation: 2684
Yes I would be keen to know what test this was?
 
Old 03-30-2016, 09:00 AM   #6
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 7,158

Rep: Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205Reputation: 2205
"ssh" is simply ... a shell. ("Putty" is the Windows version of the same thing.)

Therefore: "nevermind that this shell encrypts the traffic that it sends along the wire" ... how could you get the root password if all that you had to work with was a "login:" prompt? The short answer is that you would have to be a very good guesser.

(And the Linux admin in question would have to have been stupid enough to allow "root" logins via ssh, which can be excluded and normally are.)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] bitvise and/or putty client with SSH server mtdew3q Linux - Server 2 02-23-2014 10:24 AM
Need Opinions on a SSH client for windows (besides putty) cK` Linux - Server 6 04-07-2010 07:54 AM
Is there a way to know and drop ssh connection originating from Putty client? smbhat Linux - Networking 1 03-09-2009 10:55 PM
ssh-client gui similar to putty? matiasar Linux - Software 3 11-23-2006 11:33 AM
ssh and using putty from the client ashley75 Linux - General 12 09-11-2003 02:21 PM


All times are GMT -5. The time now is 12:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration