tongzhirongnine
V2EX  ›  macOS

升级 Ventura 后 git ssh 似乎出了问题

  •  
  •   tongzhirongnine · Oct 27, 2022 · 4881 views
    This topic created in 1481 days ago, the information mentioned may be changed or developed.

    像 git push 和 git clone 后提示要输入密码。输三次都过不了, 重新生成上传公钥都试过了,依旧过不了密码关 [email protected].53: Permission denied (publickey,password,keyboard-interactive).

    17 replies  •  2022-10-27 16:45:45 +08:00
    nii
    nii
    Oct 27, 2022
    2
    升级到 macOS Ventura 之后 SSH 可能遇到 rsa key 验证失败,解决方案:编辑 ~/.ssh/config, 新增两行:

    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa
    bugDev
    bugDev
    Oct 27, 2022 via iPhone
    3
    ssh 配置文件~/.ssh/config 中添加下面两行
    HostKeyAlgorithms +ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-rsa
    tongzhirongnine
    tongzhirongnine
    OP
    Oct 27, 2022
    4
    @knktc
    @nii 谢谢大家,我赶紧试试
    cyll
    cyll
    Oct 27, 2022
    5
    建议直接换 ed25519
    tokune
    tokune
    Oct 27, 2022
    6
    更新 ssh key, rsa 有风险
    EthanZC
    EthanZC
    Oct 27, 2022
    7
    建议直接换 ed25519 +1
    tongzhirongnine
    tongzhirongnine
    OP
    Oct 27, 2022
    8
    新增两行就可以了,太感动了!
    tongzhirongnine
    tongzhirongnine
    OP
    Oct 27, 2022
    9
    @cyll 是的是的,苹果系统升级后默认禁用了 用 SHA-1 的哈希算法的 RSA 签名,因为被破解了所以不安全。
    zhangyl
    zhangyl
    Oct 27, 2022
    10
    建议直接换 ed25519 +1
    lopssh
    lopssh
    Oct 27, 2022
    11
    ssh 配置文件~/.ssh/config 中添加下面两行
    HostKeyAlgorithms +ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-rsa

    另外:建议直接换 ed25519 +1
    amorphobia
    amorphobia
    Oct 27, 2022
    12
    @knktc 怪不得我没遇到,原来是早就换 ed25519 了
    haha2022
    haha2022
    Oct 27, 2022
    13
    感谢感谢,升级了新系统遇到了这个问题
    creanme
    creanme
    Oct 27, 2022
    14
    @cyll 用了 ed25519 后,每次操作都让输入 passphrase ,好烦啊
    enenlee
    enenlee
    Oct 27, 2022
    15
    Ventura 抛弃了 sha-1 ssh 密钥 建议用 ed25519
    fds
    fds
    Oct 27, 2022
    16
    @creanme 你生成的时候可以选不用 passphrase 的
    Rin7
    Rin7
    Oct 27, 2022
    17
    @creanme 试试 ssh-agent ,或者用 oh-my-zsh 的话,可以直接用 ssh-agent 插件
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4597 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 03:21 · PVG 11:21 · LAX 19:21 · JFK 22:21
    ♥ Do have faith in what you're doing.