Re: Calling User Program



Hi Linux Newbie,

Theres a few ways of doing this.

- You can run a command by adding it to the command line when calling ssh.
ie. ssh <host> "command"
- If you're using keys instead of password authentication you can force
the server to invoke a command by adding "command=<command>" before the
user's key in the .ssh/authorized_keys file
- In sshd_config you can add the line "ForceCommand <command>". You can
wrap this in a "Match" conditional block
- Alter the server-side user's profile or the system-wide profile to
invoke a command upon logging in.

Regards,
David

listbounce@xxxxxxxxxxxxxxxxx wrote on 26/08/2009 07:11:11 AM:

linux newbie <linux.newbie79@xxxxxxxxx>
Sent by: listbounce@xxxxxxxxxxxxxxxxx

26/08/2009 07:11 AM

To

secureshell@xxxxxxxxxxxxxxxxx

cc

Subject

Calling User Program

Hi,

I am running sshd (version 5.2.p1) in my embedded platform and I can
succesfully login
from ssh client in remote host.

I like to do some modifications. i.e. After typing username and
password, I want to run a application program directly instead of
prompt. I like to know, which file has to be modified?

Thanks in Advance



Relevant Pages

  • bringing ee up to date
    ... -is a simple screen oriented text editor. ... +.\" To format this reference page, use the command: ... -Turn off display of information window at top of terminal. ... -.Ss "Control keys" ...
    (freebsd-hackers)
  • Re: Great SWT Program
    ... the keys standard with those keyboards are; ... I've had occasion to use xfig to make diagrams for inclusion in LaTeX ... Yours I assume includes a command name at least as long as ...
    (comp.lang.java.programmer)
  • Re: When will MS fix the WinCE USB Mass Storage Problems?
    ... In SCSIGetSenseData under SENSE_UNIT_ATTENTION, some keys reported ... I think the spec does not say that this is a valid response to this command, ... In the mean time I got about 50% of my non-working USB keys working. ... Attachdevice fails, the sequence of state-transitions there, fails. ...
    (microsoft.public.windowsce.platbuilder)
  • Re: PST Seek and Destroy
    ... Reg will only export into unicode. ... Regedit via command line also only ... I did verify that SMSI is acting how you wrote in your post with files ... these keys, or use the call dll command in SMSI to enumerate the registry ...
    (microsoft.public.sms.installer)
  • Re: Changing Query Search Criteria
    ... > List Box control and two command button controls. ... > keys and one for the name values. ... Dirk Goldgar, MS Access MVP ...
    (microsoft.public.access.modulesdaovba)