Like other commentators have already mentioned but the openssl suite already solves these problems and even more complex ones
For example:
Specifying different keys different servers
Host github.com
User git
IdentityFile ~/.ssh/id_rsa_github
Host myserver User username
IdentityFile ~/.ssh/id_rsa_myserver
Reuse SSH connections for multiple sessionshttps://blog.scottlowe.org/2015/12/11/using-ssh-multiplexing...
https://blog.poespas.me/posts/2024/04/27-optimizing-ssh-conn...
Host *
ControlMaster auto
ControlPath ~/.ssh/sockets/%r@%h-%p
ControlPersist 600
Other than that, you can also do ssh agent forwarding, port forwarding etc. These are all crucial functions that user like me need when we access remote machines.I hope you take this as constructive criticism and not a knockdown on your work. You've created and released something that's great but this site usually brings more advanced users.