quantumsheep / sshs

Terminal user interface for SSH
MIT License
612 stars 17 forks source link

Add the ability to ignore certain entries in the config file #43

Closed kells64000 closed 1 month ago

kells64000 commented 1 year ago

If i have a file config with two entries like this :

Host gitlab
  HostName gitlab.com
  IdentityFile ~/.ssh/id_rsa
  User bob

Host server
  HostName server.com
  IdentityFile ~/.ssh/id_rsa
  User bob

When i execute sshs i want display only server. Is this possible ?

DeltaLima commented 4 months ago

I guess splitting your servers into multiple config files and specifying the config for sshs wiht --config would do the trick.

quantumsheep commented 4 months ago

Like @DeltaLima said or you can use the search option:

sshs -s "server"

CEL could be implemented in search but I think that's a bit overkill.

kells64000 commented 1 month ago

Thank you, it's exactly what I needed!