patch - forceshell

Damien Miller djm at mindrot.org
Thu Oct 4 12:49:33 EST 2001


On Wed, 3 Oct 2001, Don Mahurin wrote:

> Attached is a simple patch which allows an auth param 'shell=' like
> 'command='
> When specified, sshd will use this shell instead of the one in
> /etc/passwd or the default shell.
> 
> This patch allows you can have some chrooted shell (actually any shell)
> associated with a specific key.
> You could do this with command=, but then the command given to ssh will
> be ignored, and scp will not work.

You can get around this by using the $SSH_ORIGINAL_COMMAND env var. 

-d

-- 
| Damien Miller <djm at mindrot.org> \ ``E-mail attachments are the poor man's 
| http://www.mindrot.org          /   distributed filesystem'' - Dan Geer




More information about the openssh-unix-dev mailing list