summaryrefslogtreecommitdiffstats
path: root/debian/patches/17-ssh-pubacceptedalgorithms.patch
blob: 7cb62e5b2870006d5a802402e8486e674f9bf7ce (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
commit 7c0084e0f4d82a9b4d76f72e28b8afe773146de7
Author: Gabriel F. T. Gomes <gabriel@inconstante.net.br>
Date:   Sun Apr 9 22:34:28 2023 -0700

    fix(ssh): deprecated option PubkeyAcceptedKeyTypes
    
    As reported by a Debian user in https://bugs.debian.org/1033642, ssh
    changed the option name from PubkeyAcceptedKeyTypes to
    PubkeyAcceptedAlgorithms. The old name still works, but no longer
    presented in the manpages.

diff --git a/completions/ssh b/completions/ssh
index 907c039..4f83c48 100644
--- a/completions/ssh
+++ b/completions/ssh
@@ -53,7 +53,7 @@ _ssh_options()
         NoHostAuthenticationForLocalhost NumberOfPasswordPrompts
         PasswordAuthentication PermitLocalCommand PKCS11Provider Port
         PreferredAuthentications ProxyCommand ProxyJump ProxyUseFdpass
-        PubkeyAcceptedKeyTypes PubkeyAuthentication RekeyLimit RemoteCommand
+        PubkeyAcceptedAlgorithms PubkeyAuthentication RekeyLimit RemoteCommand
         RemoteForward RequestTTY RevokedHostKeys SendEnv ServerAliveCountMax
         ServerAliveInterval SmartcardDevice StreamLocalBindMask
         StreamLocalBindUnlink StrictHostKeyChecking SyslogFacility TCPKeepAlive
@@ -172,7 +172,7 @@ _ssh_suboption()
         proxycommand | remotecommand | localcommand)
             COMPREPLY=($(compgen -c -- "$cur"))
             ;;
-        pubkeyacceptedkeytypes)
+        pubkeyacceptedalgorithms | pubkeyacceptedkeytypes)
             COMPREPLY=($(compgen -W '$(_ssh_query "$2" key)' -- "$cur"))
             ;;
         requesttty)