mirror of
https://github.com/openwrt/packages.git
synced 2025-03-16 11:50:35 +00:00
sshtunnel: Use -i $IdentityFile instead of -o IdentityFile=$IdentityFile
This makes the sshtunnel compatible with Dropbear. Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
This commit is contained in:
committed by
Nuno Goncalves
parent
714c97b012
commit
f14dae7bc9
@ -174,10 +174,12 @@ load_server() {
|
||||
config_foreach validate_tunnelW_section "tunnelW" load_tunnelW
|
||||
[ "$count" -eq 0 ] && { _err "tunnels to $server not started - no tunnels defined"; return 1; }
|
||||
|
||||
append_params CheckHostIP Compression CompressionLevel IdentityFile \
|
||||
append_params CheckHostIP Compression CompressionLevel \
|
||||
LogLevel PKCS11Provider ServerAliveCountMax ServerAliveInterval \
|
||||
StrictHostKeyChecking TCPKeepAlive VerifyHostKeyDNS
|
||||
|
||||
# dropbear doesn't support -o IdentityFile so use -i instead
|
||||
[ -n "$IdentityFile" ] && ARGS_options="$ARGS_options -i $IdentityFile"
|
||||
ARGS="$ARGS_options -o ExitOnForwardFailure=yes -o BatchMode=yes -nN $ARGS_tunnels -p $port $user@$hostname"
|
||||
|
||||
procd_open_instance "$server"
|
||||
|
Reference in New Issue
Block a user