Subject: Re: [vserver] call method of host in guest os
From: "Michael S. Zick" <mszick@morethan.org>
Date: Thu, 18 Dec 2008 14:18:17 -0600

On Thu December 18 2008, Michael S. Zick wrote:

Sorry, I forgot to mention - 

If running a binary distribution, you will probably have
to build ssh/sshd from source, most distributions started
to disable this remote shell feature in their stock binaries
several years ago (it is a build configuration option).

Also, there may be something you have to do in the runtime
config file to enable the feature also.

Be certain to have a good firewall between your host
with the sshd remote execution enabled and the dirty world.
Anyone that cracks your sshd can run: "rm -fr /" for you. ;)

You would probably be better off with tipc:
http://tipc.sourceforge.net

Mike
> On Thu December 18 2008, Herbert Poetzl wrote:
> > On Sun, Dec 14, 2008 at 07:15:28AM +0800, LynnOS wrote:
> > > Yes,you see my request
> > > 
> > > But why is that impossible?
> > 
> > actually it is quite simple in a secure manner
> > (well as secure as accessing the host can get :)
> > 
> > just setup an sshd server on the host, generate
> > a key for the guest, add that (preferably with
> > a specific command) to the allowed keys on the
> > host, and you can execute (predefined) commands
> > on the host 
> >
> 
> ssh also has the provision to pass a shell command
> string to the shell invoked by sshd -
> similar to the <command string> in: bash -c <command string>
> 
> The caller need not have a login account name on the remote 
> machine (although they do have to be known to sshd - not 
> the same thing. See: man ssh/sshd for the details).
> 
> In effect, sshd proxies the shell command execution for 
> the user without "logging in" to the remote machine.
> If the command script is expecting input on stdin, ssh/sshd 
> will feed it whatever you stuff in the local end.
> 
> Mike
> > best,
> > Herbert
> > 
> > > I want to read some information through calling method of
> > > host,not change any to host
> > 
> > > Thanks
> > > 
> > > 
> > > On Sat, Dec 13, 2008 at 11:18 PM, Guenther Fuchs <vserver@muh.at> wrote:
> > > > Hi there,
> > > >
> > > > on Saturday, December 13, 2008 at 9:14:29 AM there was posted:
> > > >
> > > > L> Is that possible call method of host  in guest os?
> > > > L> As we know that in host os we can call guest method
> > > >
> > > > As far as I understand your request, you would like (example)
> > > >
> > > > .) to call a command located and in context of host OS out from one
> > > >   of the guests
> > > >
> > > > As far as I understand the design (and I hope I understood this
> > > > correctly): NO. This never should be possible as per my opinion
> > > > anyway.
> > > >
> > > > --
> > > > regards 'n greez,
> > > >
> > > > Guenther Fuchs
> > > > (aka "muh" and "powerfox")
> > > >
> > > >
> > > 
> > > 
> > > 
> > > -- 
> > > OpenEmbedded,Linux vserver,Python
> > 
> > 
> 
> 
> 
>