You can also leverage webauthn for ssh authentication from your browser.
If you are interested i can recommend my ssheasy project on github https://github.com/hullarb/ssheasy This is a webassembly based ssh client running in the browser and this way it can make use of Web Authentication API.
On the server side you only need a fairly recent version of OpenSSH server V8.4 or greater and enabling the [email protected]
public key algorithm in its config as described here.