taypo / redial

SSH Session Manager
GNU General Public License v3.0
201 stars 15 forks source link

Add an "import hosts" feature #32

Open antonsoroko opened 5 years ago

antonsoroko commented 5 years ago

It would be nice to have an "import" feature - so instead of creating a bunch of hosts you could just import hosts from let's say .ssh/known_hosts. Thanks.

fatihbaltaci commented 5 years ago

Hi @antonsoroko

~/.ssh/known_hosts file does not contain username and port information. It only stores hostname (ip) for server.

redial config file ~/.config/redial/sessions is compatible with ssh config file ~/.ssh/config. You can copy all the ssh configs for redial configuration.

Thanks!

antonsoroko commented 5 years ago

I see. Just to note: in corporate environment username is username in OS and port is standard. Also mine ~/.ssh/config usually contains wildcards and not particular hosts. Thanks for the answer.

taypo commented 5 years ago

This could be a useful feature. May be more so if we implement moving connections to folders.