root can't run ssh commands on other server

From: dc (dwcasey@yahoo.com)
Date: 05/24/02


From: dwcasey@yahoo.com (dc)
Date: 24 May 2002 07:46:49 -0700

OpenSSH 3.1p1

I am trying to run a simple:

# ssh server01 uptime

And it's asking for a password?

root@server01's password:
Permission denied, please try again.
root@server01's password:
Permission denied, please try again.
root@server01's password:
Permission denied (publickey,password,keyboard-interactive,hostbased).

The server I am trying to ssh to, server01, has these two entries for
root access in the sshd_config:

# root will no be permitted to log in interactively, but can run
# commands remotely ...
PermitRootLogin forced-commands-only
.
.
#PermitRootLogin yes

So I should be able to run commands only, just not login, right?
That's all I'm trying to do.



Relevant Pages