--- Dimitri Maziuk <[EMAIL PROTECTED]> wrote: > * Matthew H. Ray ([EMAIL PROTECTED]) spake thusly: > > I have a small cluster of Woody machines (fresh install) and I've > run > > into problems running apt-get with SSH. While trying to install > > packages on all the machines with dsh, I started getting apt-get > > problems, so I tried it with just ssh on the individual machines. > It > > appears that SSH is losing it's knowledge of the PATH while > executing. > > I used ssh-keygen so I wouldn't have to do logins (thus no password > > request). > > > > [EMAIL PROTECTED] # ssh larry "echo $PATH; apt-get install rdate" > > [snip]
> Try adding "PATH=/bin:/sbin:/usr/bin:/usr/sbin" to > /root/.ssh/environment. > > Dima That solves the problem. Looking at the man page for ssh and the output of the echo $PATH, it seems like it shouldn't have been losing the PATH information like that. It's just odd that some commands worked but apt-get install didn't (apt-get update did). Thanks, Matthew H. Ray __________________________________________________ Do You Yahoo!? Yahoo! Sports - sign up for Fantasy Baseball http://sports.yahoo.com

