On Tuesday 28 Oct 2003 03:36, Patrick M Geahan wrote: > On Tue, 28 Oct 2003, Peter Ruskin wrote: > > Yes I did. Now as a normal user I can ssh to another host > > passwordless, then sudo passwordless and have the script do stuff > > as root that way - but that's silly. But as root I'm always asked > > for password. > > Are your home directories NFS mounted between those machines? ypbind > or something for authentication?
NFS mounted on demand, not by default. I don't use ypbind. > > If you are, then your authorized_keys on the server end and your > personal key on the client end are the same thing. So you can ssh > around no problem. I can as peter but not as root (without providing a password). This is with or without NFS connections. > > In order for you to ssh to a user account on a server, your public > key must be in that account's authorized keys file. So, take the > client account's id_rsa.pub file(located in .ssh/) and put the > contents in the server root's authorized_keys file. > Done that. peter's public key is in remotehost:/home/peter/.ssh/ and root's is in remotehost:/root/.ssh/ Peter -- ====================================================================== Portage 2.0.49-r15 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1, 2.4.23_pre8-gss) i686 AMD Athlon(tm) XP 3200+ ====================================================================== -- [EMAIL PROTECTED] mailing list