Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ssh/knownhosts: fix bracket normalisation #268

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Aug 23, 2023

  1. ssh/knownhosts: fix bracket normalisation

    1. When using the bracketed syntax, the port is mandatory, even if
       it's the default one. Otherwise, OpenSSH rejects it with:
       "address [abcd:abcd:abcd:abcd]: missing port in address".
       See sshd(8): SSH_KNOWN_HOSTS FILE FORMAT.
    
    2. Brackets are not necessary when using the default port,
       even for IPv6 addresses.
    
    Fixes golang/go#53463
    pacien committed Aug 23, 2023
    Configuration menu
    Copy the full SHA
    71680b0 View commit details
    Browse the repository at this point in the history