Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | RE: remote ssh for root |
|---|---|
| Date: | Mon, 9 May 2005 08:45:31 -0700 |
I was playing around with that, but I really don't want to limit the
commands that may be run as root from this trusted host. Is there a way to
say ALL commands like there is in sudo?
Thanks,
Dan
Mark Senior
<Mark.Senior@gov.ab.ca> To: Daniel
Engelsen/PCSHS@PCSHS
cc:
secureshell@securityfocus.com
05/09/2005 08:32 AM Subject: RE: remote ssh
for root
OK, I see what you mean. How about this - don't know if it exactly
meets what you need, but it should get you close:
If you're using the openssh 4 ssh server (and this is likely present in
earlier versions, I haven't checked), set PermitRootLogin to
"forced-commands-only". This allows root login with public key
authentication only, and only when a specific command has been specified
for execution.
Then, make a keypair for root, and put the private key only on the one
trusted admin box (with appropriate. Add to the start of the relevant
line in .ssh/authorized_keys2 file the limitation:
from="trustedhost.my.domain"
Optionally, you can apply other limits to the use of the key you've
created. For example, limit the command(s) that can be run with that
key, by adding
command="/path/to/command"
to the start of the relevant line of root's .ssh/authorized_keys2 file
see the section AUTHORIZED_KEYS FILE FORMAT in the sshd manpage for the
list of possibilities.
Hope that helps
Mark
-----Original Message----- From: daniel.engelsen Sent: May 9, 2005 08:51 To: Mark Senior Subject: RE: remote ssh for root I want to have one host that is trusted by the many hosts. From this host, I want to be able to perform a remote ssh to the many boxes as root; however, I do not want to allow direct root login on any of the servers. If you want to be root, I want the user to have to su to the root id. Also, I do not want to limit what comamnds I can run as root on these boxes from this trusted host. Thanks, Dan Mark Senior To: Daniel Engelsen Subject: RE: remote ssh for root I'm sorry, could you clarify what you mean exactly? I'm not sure what you mean, to ssh as root, without logging in as root via ssh. I suppose just using su or sudo wouldn't cut it? Thanks Mark-----Original Message----- From: daniel.engelsen Sent: May 6, 2005 10:22 To: secureshell@securityfocus.com Subject: remote ssh for root I would like to setup a trusted host that utilizes ssh;however, I donot want root to be loginable. If I set PermitRootLogin tono, thenthe remote ssh function stops as well. Does anyone know ofa way tobe able to do remote ssh's as root without allowing root tobe able tologin? I am using AIX versions 5.1, 5.2, and 5.3, and we are running ssh versions 3.6 and 3.8. Any ideas would be greatly appreciated. Thanks,
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Weird results, Abraham, Suraj |
|---|---|
| Next by Date: | Re: Bothersome public key SCP implementations.., theta |
| Previous by Thread: | RE: remote ssh for root, Mark Senior |
| Next by Thread: | RE: remote ssh for root, daniel . engelsen |
| Indexes: | [Date] [Thread] [Top] [All Lists] |