diff options
author | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-01 01:45:37 +0200 |
---|---|---|
committer | Guillaume Mazoyer <respawneral@gmail.com> | 2014-06-01 01:45:37 +0200 |
commit | bc5bb6c2d43592cc51ce743090122897b6197969 (patch) | |
tree | 7bcf0dabfee07f2a3109e4ec4944515db43ef547 /config.php.example | |
parent | c805f575bf01028722271b420e1a18a53d85985f (diff) |
Update configuration example to add ssh-key and telnet auth.
Diffstat (limited to 'config.php.example')
-rw-r--r-- | config.php.example | 39 |
1 files changed, 36 insertions, 3 deletions
diff --git a/config.php.example b/config.php.example index be03e54..2a9d364 100644 --- a/config.php.example +++ b/config.php.example @@ -24,19 +24,52 @@ $config['misc']['logs'] = '/var/log/looking-glass.log'; $config['filters'][0] = '/(client1|client2)/'; $config['filters'][1] = '/^NotToShow/'; -// Router definition +// Routers definitions +// Authentication based on SSH with password // The hostname or the IP address $config['routers']['router1']['host'] = 'r1.example.net'; // The user to use to connect to the router $config['routers']['router1']['user'] = 'readonlyuser'; // The password of the given user $config['routers']['router1']['pass'] = 'readonlypassword'; -// The authentication mecanism to use (ssh-password only for now) +// The authentication mecanism to use (ssh-password, ssh-key or telnet) $config['routers']['router1']['auth'] = 'ssh-password'; // The router type (juniper/junos only supported for now) -$config['routers']['router1']['type'] = 'junos'; +$config['routers']['router1']['type'] = 'juniper'; // The router description to be displayed in the router list $config['routers']['router1']['desc'] = 'Example\'s Router 1'; +// Authentication based on SSH with key +// The hostname or the IP address +$config['routers']['router2']['host'] = 'r2.example.net'; +// The user to use to connect to the router +$config['routers']['router2']['user'] = 'readonlyuser'; +// The public key of the given user +$config['routers']['router2']['public_key'] = '/home/user/.ssh/key.pub'; +// The private key of the given user +$config['routers']['router2']['private_key'] = '/home/user/.ssh/key.pub'; +// The passphrase of the key (optional if the key has no passphrase) +$config['routers']['router2']['pass'] = 'mypassphrase'; +// The authentication mecanism to use (ssh-password, ssh-key or telnet) +$config['routers']['router2']['auth'] = 'ssh-key'; +// The router type (juniper/junos only supported for now) +$config['routers']['router2']['type'] = 'juniper'; +// The router description to be displayed in the router list +$config['routers']['router2']['desc'] = 'Example\'s Router 2'; + +// Authentication based on Telnet +// The hostname or the IP address +$config['routers']['router3']['host'] = 'r3.example.net'; +// The user to use to connect to the router +$config['routers']['router3']['user'] = 'readonlyuser'; +// The password of the given user +$config['routers']['router3']['pass'] = 'readonlypassword'; +// The authentication mecanism to use (ssh-password, ssh-key or telnet) +$config['routers']['router3']['auth'] = 'telnet'; +// The router type (juniper/junos only supported for now) +$config['routers']['router3']['type'] = 'juniper'; +// The router description to be displayed in the router list +$config['routers']['router3']['desc'] = 'Example\'s Router 3'; + // End of config.php |