👌 IMPROVE: add SSH port as possible parameter

Signed-off-by: Jonas Sulzer <jonas@violoncello.ch>
This commit is contained in:
Jonas Sulzer
2019-05-22 20:49:00 +02:00
parent 07fddff440
commit 8e1261004c
2 changed files with 8 additions and 6 deletions

View File

@@ -156,14 +156,14 @@ SSH
Authenticates users via SSH. You can use any SSH2 server, but it must accept password authentication.
### Configuration
The only supported parameter is the hostname of the remote machine.
The supported parameters are the hostname and the port (default `22`) of the remote machine.
Add the following to your `config.php`:
'user_backends' => array(
array(
'class' => 'OC_User_SSH',
'arguments' => array('127.0.0.1'),
'arguments' => array('127.0.0.1', '22'),
),
),