LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-09-2004, 11:26 AM   #1
phil1076
Member
 
Registered: Oct 2001
Location: Grand Cayman
Distribution: RH 9.0
Posts: 96

Rep: Reputation: 16
Suse 9.1 cannot ssh as root


When I try to ssh in using the root account, I get access denied. I know you're not supposed to do it but I am just testing it out. I have uncommented the PermitRootLogin line in sshd_config and set it to "yes" and I have restarted the daemon. Still get access denied...any ideas?
 
Old 07-09-2004, 11:44 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
If this is an 'out-of-the-box' install, ssh is not the problem.

The PermitRootLogin option defaults to "yes".
/etc/sysconfig/ssh => The Suse ssh 'config' file (default: No options set).

Did you change any of the settings yourself?
Also, you do not mention if normal users can ssh to the Suse box, if not: Is there a firewall active?
 
Old 07-09-2004, 12:02 PM   #3
phil1076
Member
 
Registered: Oct 2001
Location: Grand Cayman
Distribution: RH 9.0
Posts: 96

Original Poster
Rep: Reputation: 16
.

Thanks for replying...sorry for the lack of details; I was in a hurry. Not even normal users can ssh in. IT's not a firewall issue as I get get the login prompt. I type my login (phil) and then my password and get an "access denied". I'm sure its something simple but I'm new to suse. This is out of box.
 
Old 07-09-2004, 01:18 PM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393Reputation: 2393
You could try the -v option to see what's going on.

But, because of the login prompt, I guess you are using a windows box (putty?) as client. I don't know how to do this using windows.

Also, try ssh-ing from Suse to Suse. Login as phil on the Suse box and ssh to the same box:
ssh -l phil <ip/name-suse-box>

If that doesn't work also, try the -v (or more -v -v / -v -v -v) option:
ssh -v -l phil <ip/name-suse-box>

If the Suse to Suse does work: can you setup any other kind of network connection to it?
ping/telnet/ftp

Last edited by druuna; 07-09-2004 at 01:19 PM.
 
Old 07-10-2004, 12:29 PM   #5
phil1076
Member
 
Registered: Oct 2001
Location: Grand Cayman
Distribution: RH 9.0
Posts: 96

Original Poster
Rep: Reputation: 16
I set "EnablePasswordAuthentication Yes" and it works now.
 
Old 08-06-2004, 03:05 AM   #6
terchris
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
Hi
I have the same problem. It's fine that you solved the problem. Can you tell what file you put the parameter.
Thanks
 
Old 08-06-2004, 03:22 AM   #7
terchris
LQ Newbie
 
Registered: Aug 2004
Posts: 2

Rep: Reputation: 0
I found a solution to connection from a windows pc running putty.
I set "Preferred SHH protocol version" to "2" in putty. Then I was able to connect whiteout changing any config files on the linux box.
 
Old 08-25-2004, 10:08 AM   #8
rainercz
LQ Newbie
 
Registered: Aug 2004
Posts: 1

Rep: Reputation: 0
RE: Suse 9.1 cannot ssh as root

Hello,

i tested Putty-Version 0.52 which crashes with ssh protocol version 2. Putty-Version 0.55 works well. So, sometimes change a running system :-)
Greetings

Rainer
 
  


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
SSH with root Cottsay Linux - Software 12 01-18-2006 05:11 PM
Only can ssh as root in FC 3 aetherane Fedora 8 01-25-2005 08:48 PM
I have to ssh -l root to run root processes!? paul.nel Red Hat 3 11-15-2004 11:55 AM
root using ssh juanb Linux - Security 1 08-05-2004 05:49 AM
SSH as root? DasVenn Solaris / OpenSolaris 4 04-25-2004 12:48 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:47 AM.

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