LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
LinkBack Search this Thread
Old 02-26-2006, 04:57 PM   #1
rogee
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Rep: Reputation: 0
Cant login with root using pass xyz


Hi ,

Iam noob to linux so please bear with me I was trying to get Horde working thorugh plesk and when i rebooted from there i tried logging back in via ssh2 using my root credentials, but everytime i try to log in via root it gives me the following error :

Authentication log (see session log for details):
Using username "root".
Access denied
No supported authentication methods left to try!

Connection has been unexpectedly closed. Server sent command exit status 0.

I got my root pass reset by the copmany where my rootserver is located and i still cant login via root.The funny thing is i can login via "user" but i cant make any changes and i can login to my plesk with no problems aswell.Its completly baffled me and i would deepy appreciate youer assistance.
 
Old 02-26-2006, 05:59 PM   #2
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,697

Rep: Reputation: 61
On the remote ssh server in /etc/sshd.conf it more than likely has root access disabled. You can login as a user then use the command ' su - ' to gain root access.

Brian1
 
Old 02-27-2006, 06:14 AM   #3
rogee
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Original Poster
Rep: Reputation: 0
thanks

What can i say , you da maaan!! thanks for that i was able to change On the same note what do i need to change in the sshd_config for to be able to login as root the following is what is current Thanks in advance :

Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 600
PermitRootLogin no
StrictModes yes

RSAAuthentication yes
PubkeyAuthentication yes
#AuthorizedKeysFile %h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to no to disable s/key passwords
#ChallengeResponseAuthentication yes

# Change to yes to enable tunnelled clear text passwords
PasswordAuthentication no


# To change Kerberos options
#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#AFSTokenPassing no
#KerberosTicketCleanup no

# Kerberos TGT Passing does only work with the AFS kaserver
#KerberosTgtPassing yes

X11Forwarding no
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

Subsystem sftp /usr/lib/sftp-server

UsePAM yes
IgnoreUserKnownHosts no
 
Old 02-27-2006, 07:55 AM   #4
dracae
Member
 
Registered: Feb 2006
Location: Oklahoma
Distribution: Debian Sid and Etch
Posts: 423

Rep: Reputation: 30
PermitRootLogin no to PermitRootLogin yes
 
Old 02-27-2006, 08:16 AM   #5
rogee
LQ Newbie
 
Registered: Feb 2006
Posts: 19

Original Poster
Rep: Reputation: 0
thanks

man iam so stupid sometimes, many thanks to yOu bothe for teh fantastic help.
 
Old 02-27-2006, 08:30 AM   #6
vharishankar
Senior Member
 
Registered: Dec 2003
Distribution: Debian wheezy/sid, PC-BSD
Posts: 3,000
Blog Entries: 4

Rep: Reputation: 88
A general advice is to always disable root login via SSH. It could be a security risk...
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Planning to change root pass and oracle system pass sathyguy Red Hat 1 12-20-2005 09:53 PM
phpnuke pass login to apache basic ? michael_util Linux - Newbie 1 03-20-2004 10:15 AM
wont pass the login screen ziggis-soft Red Hat 2 02-24-2004 09:51 AM
MySQL root pass tommytomato Linux - Newbie 0 02-02-2004 06:34 AM
X login for KDE needs user+pass twice! svar Linux - General 0 01-12-2004 09:16 AM


All times are GMT -5. The time now is 06:52 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration