Koozali.org: home of the SME Server

SSH as root

Richard Whitney

SSH as root
« on: November 03, 2001, 05:48:27 AM »
Howdy folks!

I have just upgraded from 4.1.1 to SME v.5.
Everything seemed to go really smoothly and I applied the update via the blade.
Now, when I try to login as root via SSH I get a different login prompt, i.e login:
instead of login as:

At the login: prompt I can login as admin but it won't accept my old password as root.  Any suggestions would be most helpful, as I am trying to setup a MySql database and cannot without logging in as root.

Many thanks.

RW

Luckydog

Re: SSH as root
« Reply #1 on: November 03, 2001, 06:36:57 AM »
Using the admin website have you gone to remote-access tab
and set the following?

Secure shell (ssh) access:  PRIVATE
Allow administrative command line access over ssh:  YES
Allow ssh access using standard passwords  YES

Richard Whitney

Re: SSH as root
« Reply #2 on: November 03, 2001, 06:41:02 AM »
Nothing has changed in the configuration between this morning (4.1.1) and now (v.5)

Actually I read something in the manual about a private key, but it was beyond the scope of the manual.  If anyone could enlighten me, please?

Thanks

RW

Luckydog

Re: SSH as root
« Reply #3 on: November 03, 2001, 08:28:42 AM »
I don't know how 'login as' got turned into 'login'....

but can't you either:

a) enable private telnet and try logging in as root that way?
b)  login as root directly using the keyboard and screen attached to e-smith?

I wonder if something in your /etc/ssh/sshd_config file no longer looks like:

PasswordAuthentication yes
PermitEmptyPasswords no
PermitRootLogin yes
RSAAuthentication yes
RhostsAuthentication no

RhostsRSAAuthentication no

Richard Whitney

Re: SSH as root
« Reply #4 on: November 04, 2001, 01:40:34 AM »
I have discovered a few things.

Let me start from the beginning...

About 10 days ago I decided I was going to abandon my Win2k OS and adopt Mandrake 8.1 - I was able to connect to all of the e-smith shares - no problem.
I installed VMware so I could author Flash inside of Linux, but the sound was just terrible.  So I decided to relent and go back to Win2k.  Poor me.

Everything was fine (however I am not sure if I tried to ssh as root into my server between then and yesterday, so my information is incomplete) until I upgraded to SME 5 yesterday and tried to login as root on the server.  No dice.  so I tried a fresh install.  Still couldn't login as root - admin was ok.  So I then decided to bag SME 5 and go back to 4.1.1 (I never did 4.1.2).  I had a nice backup sitting on my wife's machine.  I attempted to restore the backup, but nothing happens and I didn't wait long enough - I corrupted the server - new fresh install of 4.1.1 -
tried to login as root - no dice, admin - ok.  Then I got an idea!  I wonder if there is something weird about going back and forth between two OSes (and I may have done this twice - not dual-boot, mind you - fresh installs of Win2k and Mandrake a couple of times).  So I started up Putty on my wife's machine - Voila!  I can login as root.  Well that was relief.  So I upgraded to SME 5 again, which is where I am now - haven't apllied the blade, however.  

I got to thinking a little more and enabled public ssh.
Changed the Ip from 192.168.1.1 to my external IP and what do you know?  I can login as root!

Sorry about the book, but I hope it made for some interesting reading.  At least it proves that I CAN'T MAKE UP MY FRIGGIN MIND!