This repository has been archived by the owner on Dec 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 172
StormConfig converting uppercase keys to lowercase #157
Comments
Let's see if we remove that behavior without breaking anything. |
Experienced the same issue on Lucky that keywords in per-user |
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 |
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)] |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
the key part in above peice of code from
ssh_config_parser.StormConfig
is converting config keys to lowercase. e.g. keys likeRSAAuthentication
are becomingrsaauthentication
.The text was updated successfully, but these errors were encountered: