Coder Social home page Coder Social logo

Comments (5)

emre avatar emre commented on July 30, 2024

Let's see if we remove that behavior without breaking anything.

from storm.

terrywang avatar terrywang commented on July 30, 2024

Experienced the same issue on 0.7.0 on both Linux (installed via pip) and macOS (via homebrew).

Lucky that keywords in per-user ssh_config are not case-sensitive (arguments are), it's bad behaviour and should be fixed (also bad for the eyes).

from storm.

StephenBrown2 avatar StephenBrown2 commented on July 30, 2024

I've wondered if storm could keep a reference of all SSH config keys and their canonical capitalization, then fix them on write. Keeping them all lowercase internally makes it easier to lookup/sort/etc. This man page looks to be the latest, most complete listing of config options: https://man.openbsd.org/ssh_config

from storm.

StephenBrown2 avatar StephenBrown2 commented on July 30, 2024

Scraping the page gives this list of config options:

['Host',
 'Match',
 'AddKeysToAgent',
 'AddressFamily',
 'BatchMode',
 'BindAddress',
 'BindInterface',
 'CanonicalDomains',
 'CanonicalizeFallbackLocal',
 'CanonicalizeHostname',
 'CanonicalizeMaxDots',
 'CanonicalizePermittedCNAMEs',
 'CASignatureAlgorithms',
 'CertificateFile',
 'ChallengeResponseAuthentication',
 'CheckHostIP',
 'Ciphers',
 'ClearAllForwardings',
 'Compression',
 'ConnectionAttempts',
 'ConnectTimeout',
 'ControlMaster',
 'ControlPath',
 'ControlPersist',
 'DynamicForward',
 'EnableSSHKeysign',
 'EscapeChar',
 'ExitOnForwardFailure',
 'FingerprintHash',
 'ForwardAgent',
 'ForwardX11',
 'ForwardX11Timeout',
 'ForwardX11Trusted',
 'GatewayPorts',
 'GlobalKnownHostsFile',
 'GSSAPIAuthentication',
 'GSSAPIDelegateCredentials',
 'HashKnownHosts',
 'HostbasedAuthentication',
 'HostbasedKeyTypes',
 'HostKeyAlgorithms',
 'HostKeyAlias',
 'Hostname',
 'IdentitiesOnly',
 'IdentityAgent',
 'IdentityFile',
 'IgnoreUnknown',
 'Include',
 'IPQoS',
 'KbdInteractiveAuthentication',
 'KbdInteractiveDevices',
 'KexAlgorithms',
 'LocalCommand',
 'LocalForward',
 'LogLevel',
 'MACs',
 'NoHostAuthenticationForLocalhost',
 'NumberOfPasswordPrompts',
 'PasswordAuthentication',
 'PermitLocalCommand',
 'Port',
 'PreferredAuthentications',
 'ProxyCommand',
 'ProxyJump',
 'ProxyUseFdpass',
 'PubkeyAcceptedKeyTypes',
 'PubkeyAuthentication',
 'RekeyLimit',
 'RemoteCommand',
 'RemoteForward',
 'RequestTTY',
 'RevokedHostKeys',
 'SecurityKeyProvider',
 'SendEnv',
 'ServerAliveCountMax',
 'ServerAliveInterval',
 'SetEnv',
 'StreamLocalBindMask',
 'StreamLocalBindUnlink',
 'StrictHostKeyChecking',
 'SyslogFacility',
 'TCPKeepAlive',
 'Tunnel',
 'TunnelDevice',
 'UpdateHostKeys',
 'User',
 'UserKnownHostsFile',
 'VerifyHostKeyDNS',
 'VisualHostKey',
 'XAuthLocation']

And to play along at home:

import re
import httpx
from bs4 import BeautifulSoup

ssh_config_man = httpx.get("https://man.openbsd.org/ssh_config")
soup = BeautifulSoup(ssh_config_man.text)
headers = soup.find_all("a", class_="permalink")

config_keys = [c.text for c in headers if re.match(r"[A-Z]+[a-z]+", c.text)]

from storm.

StephenBrown2 avatar StephenBrown2 commented on July 30, 2024

Also, a PR similar to this has been open for a long time: #130
I've submitted #174 to implement my fix above.

from storm.

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.