summaryrefslogtreecommitdiff
path: root/README
blob: 396db3d5e08e43ea4048ed6d72d97578f3d0b4d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
ssh-forcecommand - Whitelist remote commands via ssh config
-----------------------------------------------------------

* <http://derf.homelinux.org/projects/ssh-forcecommand/>


Dependencies
------------

 * perl version 5.10 or newer


Installation
------------

$ perl Build.PL
$ perl Build
$ sudo perl Build install

By default, ssh-forcecommand is installed as /usr/local/bin/ssh-forcecommand.
In most cases, this does not make sense.  For example, if you are using the
forcecommand for nagios checks, you might want to do this instead:

$ sudo perl Build install --install_path script=/usr/local/lib/nagios

Usage
-----

The documentation is available via "perldoc bin/ssh-forcecommand" or (after
installation) "man ssh-forcecommand".

Testing
-------

$ perl Build test

Requires the perl modules Test::Command, Test::Compile and Test::More.