Re: Calling User Program
- From: David R Green <dgreen49@xxxxxxxxxx>
- Date: Wed, 26 Aug 2009 09:57:03 +0900
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
- References:
- Calling User Program
- From: linux newbie
- Calling User Program
- Prev by Date: Re: Calling User Program
- Next by Date: Re: Calling User Program
- Previous by thread: Fwd: Calling User Program
- Next by thread: Re: Calling User Program
- Index(es):
Relevant Pages
|