beliven-it / hssh

A CLI to easily list, search and connect to SSH hosts. Sync down hosts from providers in order to get a centralized hosts configuration.
MIT License
2 stars 1 forks source link

Status of connection #13

Closed CasvalDOT closed 2 years ago

CasvalDOT commented 3 years ago

Can you make sense to set up a flag to apply a control over the connection status? I have a lot of hosts I don't have access, it would be nice to know what I can connect and to what not, what do you think?

An example could be:

hssh l --status-ok

The functions for each host perform a test connection and print the only available host.

valentinocossar commented 3 years ago

Mmm, idk! What happens if you try to connect outside of a VPN? You have a non-realistic result. I'm not sure about this implementation. Keep in mind that with the new JumpCloud provider we can sync only user-related hosts.