summaryrefslogtreecommitdiff
path: root/README
blob: cfe07c58305a6827f28e147cdff8ce141c7cc8b4 (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/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.