problem about executing a command without remote shell



Hi, all

I want to execute a command on the remote machine with ssh client,
like:
ssh root@xxxxxxxxxxx wifi off
But it gives me the following errors:
/sbin/wifi: eval: 34: brctl: not found
/sbin/wifi: eval: 1: brctl: not found
....
But if I first login into the remote machine and then execute the same
command, it succeeds, like:
ssh root@xxxxxxxxxxx
wifi off
I use public-key authentication, it works, I do not need to enter the
password.

Can somebody help me how to execute this command without logining into
the remote machine?

Thanks
.



Relevant Pages

  • Re: OT: Hard disk mirror with Paragon on USB stick?
    ... at least two pages of intricate command line stuff. ... The password is only used when you want to backup to a remote machine ... via the network, using the ssh protocol. ... (e.g. with linux, ...
    (sci.electronics.design)
  • Executing remote commands via ssh causes zombie process
    ... I tried to execute the command "ls -l" using the ssh executable on the ... it's not relevant whether I use plink or ssh. ...
    (Debian-User)
  • Re: How to detach from remote command?
    ... until the command finishes. ... Suppose I write a program vfork on the remote machine. ... is execute those arguments via execlp. ...
    (comp.os.linux)
  • Re: Win32_Process.create fails to achieve aim
    ... remote machine it will terminate without notification to this method. ... > the graphic card to go in clone mode. ... > This command works when I execute it manually on the computer. ...
    (microsoft.public.scripting.wsh)
  • Re: Ssh/Rsh problems
    ... > I am encountering problems with both ssh and rsh, ... > When I attempt to run a command on a remote machine via ssh, ...
    (comp.os.linux.security)