ced23456 wrote:
>
> Hi,
>
> I'm trying to connect with rsync on a remote Slug. My slug is running
> SlugOS.
>
> When i execute the rsync command, it says sh: rsync not found.
>
> This relates to a problem in my PATH variable. The command ssh myslug
> 'echo $PATH' returns '/usr/bin:/bin:/usr/sbin:/sbin'.
>
> I'm clearly missing the /opt/bin but i have no clue on how to add it.
>
> WHen i connect myself on the slug the PATH variable is correctly set:
>
> PATH=/usr/local/bin:/usr/bin:/bin:/opt/bin
>
>
> WHat is the difference between : Me executing an ssh then env command AND
> ssh executing the command directly. WHy is the PATH different ?
>
> Thanks
>
>
>
I've never use
ssh <server> '<command>'
before. However my guess is that command is run by the user running sshd,
instead of your own user account on the slug.
By the way, you mentioned that you tried to connect to a remote slug by
rsync, then I think it will make it more clear if you provide information
about both of the rsync client and the server.
--
View this message in context: http://old.nabble.com/rsync-and-ssh-command-tp28940924p28967665.html
Sent from the Nslu2 - Linux mailing list archive at Nabble.com.
Tuesday, June 22, 2010
Re: [nslu2-linux] rsync and ssh command
__._,_.___
MARKETPLACE
.
__,_._,___
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment