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 <itsascambutmailmeanyway@gmail.com>
Wed, 27 Dec 2023 20:24:25 +0000 (20:24 +0000)
commit8755aa3a71bf47ba65706a39c72cd294923d9285
treed4186ac2baf100fc74d69e2f11c3e0d7b686d4a8
parent949e7cbcb33cc457bfcdd27aaf4da487bab89f30
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>
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