Mix'n'match between packages an ports?

Matthew Seaman matthew at FreeBSD.org
Sun Jul 5 19:28:29 UTC 2015


On 05/07/2015 19:59, kpneal at pobox.com wrote:
> Is anyone using ssh urls? If so, _exactly_ what command is executed on
> the server side when the client ssh's in? I need to know to setup ssh
> keys that can execute only one command when used.

Try using the forced command feature to run a shell script that logs the
SSH_ORIGINAL_COMMAND variable, and then execs it.  Actually, that's a
good general approach in general: make the forced command a shell script
that can examine SSH_ORIGINAL_COMMAND and decide whether or not to
execute the original command.

	Cheers,

	Matthew


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 971 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20150705/8fe14e28/attachment.bin>


More information about the freebsd-questions mailing list