luci-app-sshtunnel: extract a public key from a key if no .pub
authorSergey Ponomarev <stokito@gmail.com>
Sun, 17 Dec 2023 14:52:58 +0000 (16:52 +0200)
committerPaul Donald <newtwen@gmail.com>
Wed, 27 Dec 2023 20:29:19 +0000 (20:29 +0000)
commit8b09b07f93ec1e56b949af9715d583fd2a1c77d6
treee73d073f5fa35076a3fe50b5770f290b1712ab4a
parent6e7c4527813b14e1a246c0acb67c9aef679288f4
luci-app-sshtunnel: extract a public key from a key if no .pub

For the Dropbear keys without a .pub we need to fall back and execute the -y command to extract a pubkey from a private.

Signed-off-by: Sergey Ponomarev <stokito@gmail.com>
(cherry picked from commit 8755aa3a71bf47ba65706a39c72cd294923d9285)
applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_keys.js
applications/luci-app-sshtunnel/htdocs/luci-static/resources/view/sshtunnel/ssh_servers.js