Skip to content

Commit

Permalink
Merge pull request #4 from thinktandem/master
Browse files Browse the repository at this point in the history
Add the ability to inject SSH options
  • Loading branch information
bubba-h57 authored Apr 24, 2017
2 parents 0d52ffc + 43b9188 commit a24b331
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ TUNNELER_CONN_WAIT=500000

; Do you want to ensure you have the Tunnel in place for each bootstrap of the framework?
TUNNELER_ON_BOOT=false

; Do you want to use additional SSH options when the tunnel is created?
TUNNELER_SSH_OPTIONS="-o StrictHostKeyChecking=no"
```

## Quickstart
Expand Down
1 change: 1 addition & 0 deletions config/tunneler.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@

'on_boot' => filter_var(env('TUNNELER_ON_BOOT', false), FILTER_VALIDATE_BOOLEAN),
'ssh_verbosity' => env('SSH_VERBOSITY',''),
'ssh_options' => env('TUNNELER_SSH_OPTIONS', ''),
'nohup_log' => env('NOHUP_LOG', '/dev/null'),
];
3 changes: 2 additions & 1 deletion src/Jobs/CreateTunnel.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ public function __construct()
config('tunneler.local_port')
);

$this->sshCommand = sprintf('%s %s -N -i %s -L %d:%s:%d -p %d %s@%s',
$this->sshCommand = sprintf('%s %s %s -N -i %s -L %d:%s:%d -p %d %s@%s',
config('tunneler.ssh_path'),
config('tunneler.ssh_options'),
config('tunneler.ssh_verbosity'),
config('tunneler.identity_file'),
config('tunneler.local_port'),
Expand Down

0 comments on commit a24b331

Please sign in to comment.