sshtunnel: StrictHostKeyChecking for Dropbear
authorSergey Ponomarev <stokito@gmail.com>
Sat, 3 Jun 2023 11:23:33 +0000 (14:23 +0300)
committerNuno Goncalves <nunojpg@gmail.com>
Sun, 8 Oct 2023 09:29:37 +0000 (10:29 +0100)
commit1d9f10a1356df1862bfff4f3031011403ddfe0bd
tree356f9a32b66a3df1191bfc8aac09344affddbd8c
parentf14dae7bc9ef0db6f6b25e605dc6c963d9417e17
sshtunnel: StrictHostKeyChecking for Dropbear

The dbclient doesn't support the -o StrictHostKeyChecking but it has it's own -y option:
-y    Always accept remote host key if unknown
-y -y Don't perform any remote host key checking (caution)

So we can add these options to make the StrictHostKeyChecking working.
The dbclient will ignore -o StrictHostKeyChecking but use the -y or -yy instead.

The only problem is that the -y flag is also used by the openssh-client:

-y Send log information using the syslog(3) system module.  By default this information is sent to stderr.

This is not critical and once the dbclient start to support the StrictHostKeyChecking we can remove the -y flag.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
net/sshtunnel/files/sshtunnel.init