summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-05-18 15:07:19 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-05-18 15:07:19 +0200
commit998462a05c1d5af997d4ae59ad52d1ab69265071 (patch)
tree514c4cca92c00fc0881063d0920a30a682418c26
parente57359e1d2d81f8c6db157f7320b3d678761e6a9 (diff)
Release v1.01.0
-rw-r--r--Changelog7
-rwxr-xr-xbin/ssh-forcecommand6
2 files changed, 12 insertions, 1 deletions
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 <configfile>\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<ssh-forcecommand> version 1.0
+
=head1 DESCRIPTION
B<ssh-forcecommand> is a trivial script to safely execute remote commands via