Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jul 2015 20:28:17 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-questions@freebsd.org
Subject:   Re: Mix'n'match between packages an ports?
Message-ID:  <55998551.3040100@FreeBSD.org>
In-Reply-To: <20150705185905.GA85635@neutralgood.org>
References:  <20150630115303.GA1331@aurora.oekb.co.at> <20150630132725.e3ab60f2ac8b1d3e4662a535@sohara.org> <86k2ue7cvk.fsf@red.stonehenge.com> <20150705194059.59a973de61df73f4ccf5a415@sohara.org> <20150705185905.GA85635@neutralgood.org>

next in thread | previous in thread | raw e-mail | index | archive | help

[-- Attachment #1 --]
On 05/07/2015 19:59, kpneal@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



[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.20 (Darwin)

iQJ8BAEBCgBmBQJVmYVYXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2NTNBNjhCOTEzQTRFNkNGM0UxRTEzMjZC
QjIzQUY1MThFMUE0MDEzAAoJELsjr1GOGkATRcEP/j9+IJWZAobv4w/8GXnnRqTN
cB79eP1zPlrMVWxNGf5hBcZUz2g4UNI0TWBczjHtY7kf4RhrBwCUjjDbufRVdlpd
B9BMRlkeTnMoaNwtJnYmVr5LQo3/M8Omd+7H2a9kRhTexb23krRx7jCMUiqHXUzO
FcRwS+gpFUlkdqVS0pgBgbkNU6u3Cg2CC98sYgE1ZzEIWrnApDDMIAknwzvRrdxr
F9k9ORQhiE8eOzSuDHLWqiKQ7Ymy7IXtL4dhIzfYyIw0VwDkf1J0xrHumWO6bt+e
shwU9m2zp0cqw44f0wXVbQ28CA4iq1CXDFvGUhTxlajeJVY57mswSLKRtAZ2jmzc
7NzFF/TfElff7EXAppQfg4JurRm3wS1AWF37/82+5hcb64skLXD/oDLtbJHB5LyU
3NuagSH148OjgFPamdffw68AMD7f5a8ubqNO6+Wztt3A9vgGx44byj7nlgPTNSFW
ezDOBPjo740ZC6OGg/OkfUZ6VpWQ5vqB8P6IVyhcS31gMq6kKAHu6dmyBVztiA4e
vTgJlxRLaCY1oXMle35SqknpXqRh0qrAihwN3HqHC2H9rf9zdq3nnnHhbMvNlBQd
QYOcbZMFiMl9r6AXjc/gQ+o7ExgIM1CWT0tn2u6q0YO43zaLdJtAdIyX7Ylc4hFS
ppa/67Dni7xlU2lE78K+
=n9Ck
-----END PGP SIGNATURE-----

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?55998551.3040100>