I need to set
PermitRootLogin no in Solaris 10 server, while still allowing two "peer" servers to have root access via ssh.
How can I achieve this?
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.Sign up to join this community
Use public/private key.
It is described for many times in internet so I don't think it is userful to repeate it in detail again.
A briefly summary what to do:
Now only these two clients and the users of the commands above have root access to the server and additionally no password is required anymore.
Maybe this is an good entry point to start over (steps #1 and #2)