Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Running a user command instead of shell in sshd

From: Greg Wooledge <wooledg(at)eeg.ccf.org>
Date: Mon Jun 16 2003 - 12:43:27 EDT

On Mon, Jun 16, 2003 at 12:46:26PM -0400, Anurag Bhatia wrote:
> This solution will work but the same command will be executed even if the

In that case, you must use RSA/DSA authentication, and place the command in the authorized_keys file. OpenSSH's "man sshd" contains the following section:

 AUTHORIZED_KEYS FILE FORMAT
 [...]

      Each line of the file contains one key (empty lines and lines starting
      with a `#' are ignored as comments).  Each RSA public key consists of
      the following fields, separated by spaces: options, bits, exponent,
      modulus, comment.
 [...]
      command="command"
           Specifies that the command is executed whenever this key is used
           for authentication.  The command supplied by the user (if any) is
           ignored. [...]
Received on Mon Jun 16 15:15:15 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