Skip to content

Commit a24b331

Browse files
authored
Merge pull request #4 from thinktandem/master
Add the ability to inject SSH options
2 parents 0d52ffc + 43b9188 commit a24b331

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ TUNNELER_CONN_WAIT=500000
6363

6464
; Do you want to ensure you have the Tunnel in place for each bootstrap of the framework?
6565
TUNNELER_ON_BOOT=false
66+
67+
; Do you want to use additional SSH options when the tunnel is created?
68+
TUNNELER_SSH_OPTIONS="-o StrictHostKeyChecking=no"
6669
```
6770

6871
## Quickstart

config/tunneler.php

+1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,6 @@
1818

1919
'on_boot' => filter_var(env('TUNNELER_ON_BOOT', false), FILTER_VALIDATE_BOOLEAN),
2020
'ssh_verbosity' => env('SSH_VERBOSITY',''),
21+
'ssh_options' => env('TUNNELER_SSH_OPTIONS', ''),
2122
'nohup_log' => env('NOHUP_LOG', '/dev/null'),
2223
];

src/Jobs/CreateTunnel.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@ public function __construct()
2929
config('tunneler.local_port')
3030
);
3131

32-
$this->sshCommand = sprintf('%s %s -N -i %s -L %d:%s:%d -p %d %s@%s',
32+
$this->sshCommand = sprintf('%s %s %s -N -i %s -L %d:%s:%d -p %d %s@%s',
3333
config('tunneler.ssh_path'),
34+
config('tunneler.ssh_options'),
3435
config('tunneler.ssh_verbosity'),
3536
config('tunneler.identity_file'),
3637
config('tunneler.local_port'),

0 commit comments

Comments
 (0)