From f14dae7bc9ef0db6f6b25e605dc6c963d9417e17 Mon Sep 17 00:00:00 2001 From: Sergey Ponomarev Date: Sat, 3 Jun 2023 13:23:35 +0300 Subject: [PATCH] sshtunnel: Use -i $IdentityFile instead of -o IdentityFile=$IdentityFile This makes the sshtunnel compatible with Dropbear. Signed-off-by: Sergey Ponomarev --- net/sshtunnel/files/sshtunnel.init | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/net/sshtunnel/files/sshtunnel.init b/net/sshtunnel/files/sshtunnel.init index 4a23c9fbe7..480933edee 100644 --- a/net/sshtunnel/files/sshtunnel.init +++ b/net/sshtunnel/files/sshtunnel.init @@ -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" -- 2.30.2