I would like to be able to launch command as root on distant machines using
ssh. As those machines do not allow root login directly, the idea is to use
"su", but here is what I got :
$ ssh foo.bar "su root -c \"ls -l\""
user1@xxxxxxx's password: <= I entered the distant machine's root password
su: Sorry
Re: Things Linux Can Do Without ...root password, for example h1b32pp2m33, disable logon of root vis SSH... already knows the username.... (comp.os.linux.misc)
Re: help needed after intrusion from a ssh dictionary attack ... He used a simple ssh dictionary attack but unfortunately our ... >> root is enabled through ssh and the root password was not strong ... >> Now we are going to reset the root password but for some other reasons ... >> we don't want to disable root login through ssh. ... (comp.os.linux.security)
Re: Things Linux Can Do Without ...root password, for example h1b32pp2m33, disable logon of root vis SSH... already knows the username.... (comp.os.linux.misc)
Re: SSH as root ... authorized_keys file (not root itself). ... People use their own authentication but ssh -l ... doesn't have to use the root password.... > I don't think that it is a security risk,... (SSH)
Re: ssh and su ... As those machines do not allow root login directly,... Assuming the bit where you said you entered the root password where it ... Adding "-t" to the ssh command line ought to help. ... (comp.security.ssh)