From 998462a05c1d5af997d4ae59ad52d1ab69265071 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 18 May 2011 15:07:19 +0200 Subject: Release v1.0 --- Changelog | 7 +++++++ bin/ssh-forcecommand | 6 +++++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 Changelog diff --git a/Changelog b/Changelog new file mode 100644 index 0000000..b8c0b8b --- /dev/null +++ b/Changelog @@ -0,0 +1,7 @@ +ssh-forcecommand 1.0 - Wed May 18 2011 + + * Initial release + * Put "key = value" pairs in config + * command="/usr/local/bin/ssh-forcecommand /etc/forcecommand/config" in + ssh/authorized_keys + * static operation, no variables, appending or anything diff --git a/bin/ssh-forcecommand b/bin/ssh-forcecommand index 70f9366..5443920 100755 --- a/bin/ssh-forcecommand +++ b/bin/ssh-forcecommand @@ -6,7 +6,7 @@ my $conffile = shift or die("Usage: $0 \n"); my $input = $ENV{SSH_ORIGINAL_COMMAND} or die("No command\n");; my %command; -my $VERSION = '0.0'; +my $VERSION = '1.0'; open(my $conf, '<', $conffile) or die("Can't open $conffile: $!\n"); @@ -40,6 +40,10 @@ In .ssh/authorized_keys: command="/usr/local/lib/ssh-forcecommand /etc/forcecommand/backup",no-agent-forwarding,no-port- forwarding,no-pty,no-X11-forwarding $key +=head1 VERSION + +This is B version 1.0 + =head1 DESCRIPTION B is a trivial script to safely execute remote commands via -- cgit v1.2.3