sshs icon indicating copy to clipboard operation
sshs copied to clipboard

Add the ability to ignore certain entries in the config file

Open kells64000 opened this issue 2 years ago • 2 comments

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 ?

kells64000 avatar Oct 06 '22 09:10 kells64000

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

DeltaLima avatar Feb 27 '24 12:02 DeltaLima

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.

quantumsheep avatar Feb 29 '24 16:02 quantumsheep

Thank you, it's exactly what I needed!

kells64000 avatar May 19 '24 16:05 kells64000