Giter Club home page Giter Club logo

Comments (5)

maryisdead avatar maryisdead commented on June 25, 2024

+1

I have some hosts in my config that I don't access that often or not with the terminal. I'd like to get rid of those.

from shuttle.

fitztrev avatar fitztrev commented on June 25, 2024

It's not documented yet, but if you prefix the Host in your .ssh/config with a dot, it will be ignored when building the menu.

Also, you can group menu items in your .ssh/config with a "/".

I acknowledge the other issue you mentioned of having multiple hosts per line, though. I'll have to figure out the best way to handle that.

from shuttle.

maryisdead avatar maryisdead commented on June 25, 2024

Might be a dumb question, but: Are there no side-effects when prefixing hosts with a dot?

I have something like this in my config:

Host coolhostname.com
HostName coolhostname.com
Port 50008

Prefixing the Host value with a dot makes ssh [email protected] not acknowledge that section anymore.

Do I have a fundamentally wrong understanding of the whole SSH config thing?

from shuttle.

mafredri avatar mafredri commented on June 25, 2024

Ah, thanks, interesting hidden features, however one limitation I can easily think of with the dot prefix is the following:

Host server1 server2
    HostName %h.website.com

Prefixing server1 with a dot would make it ".server1.website.com" which should not work? Or is the dot prefix something part of the ssh_config and does something special?

Update: Realized I could just work around this by adding e.g. ".disabled" in front of server1 :)

from shuttle.

fitztrev avatar fitztrev commented on June 25, 2024

Closing this issue for now. Please open a new one if the issue has not been resolved.

from shuttle.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.