Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

RE: Running a user command instead of shell in sshd

From: Anurag Bhatia <Anuragb(at)ami.com>
Date: Mon Jun 16 2003 - 12:46:26 EDT


Hello Greg,
This solution will work but the same command will be executed even if the user tries to login locally on the machine. I want to execute this command only when there's a SSH connection request from a remote client. Regards,
Anurag

-----Original Message-----
From: Greg Wooledge [mailto:wooledg@eeg.ccf.org] Sent: Monday, June 16, 2003 11:51 AM
To: Anurag Bhatia
Cc: SSH list
Subject: Re: Running a user command instead of shell in sshd

On Mon, Jun 16, 2003 at 09:43:41AM -0400, Anurag Bhatia wrote:
> I just want to do "ssh <IP>" and instead of running shell, a command is

Set that user's login shell to the command you want them to run. Received on Mon Jun 16 15:11:30 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 14:02:59 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library