Skip to content

Commit 7c0084e

Browse files
inconstantescop
authored andcommitted
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.
1 parent b061c76 commit 7c0084e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

completions/ssh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ _comp_xfunc_ssh_options()
5555
NoHostAuthenticationForLocalhost NumberOfPasswordPrompts
5656
PasswordAuthentication PermitLocalCommand PKCS11Provider Port
5757
PreferredAuthentications ProxyCommand ProxyJump ProxyUseFdpass
58-
PubkeyAcceptedKeyTypes PubkeyAuthentication RekeyLimit RemoteCommand
58+
PubkeyAcceptedAlgorithms PubkeyAuthentication RekeyLimit RemoteCommand
5959
RemoteForward RequestTTY RevokedHostKeys SecurityKeyProvider SendEnv
6060
ServerAliveCountMax ServerAliveInterval SetEnv StreamLocalBindMask
6161
StreamLocalBindUnlink StrictHostKeyChecking SyslogFacility TCPKeepAlive
@@ -65,7 +65,7 @@ _comp_xfunc_ssh_options()
6565
# Selected old ones
6666
opts+=(
6767
GSSAPIKeyExchange GSSAPIRenewalForcesRekey GSSAPIServerIdentity
68-
GSSAPITrustDns SmartcardDevice UsePrivilegedPort
68+
GSSAPITrustDns PubkeyAcceptedKeyTypes SmartcardDevice UsePrivilegedPort
6969
)
7070
local protocols=$(_comp_xfunc_ssh_query "${1:-ssh}" protocol-version)
7171
if [[ ! $protocols || $protocols == *1* ]]; then
@@ -188,7 +188,7 @@ _ssh_suboption()
188188
proxycommand | remotecommand | localcommand)
189189
COMPREPLY=($(compgen -c -- "$cur"))
190190
;;
191-
pubkeyacceptedkeytypes)
191+
pubkeyacceptedalgorithms | pubkeyacceptedkeytypes)
192192
COMPREPLY=($(compgen -W '$(_comp_xfunc_ssh_query "$2" key)' -- "$cur"))
193193
;;
194194
requesttty)

0 commit comments

Comments
 (0)