MacBook系统升级到Sequoia15.1 SSH密钥无权限解决

2024-11-09 62 0

zsp@zspdeAir ~ % ssh user@192.168.10.21 -p 24770
Warning: Permanently added '[192.168.10.21]:24770' (ED25519) to the list of known hosts.

解决:
ubuntu server

 ssh -o PubkeyAcceptedKeyTypes=+ssh-rsa user@192.168.23.21

openwrt

ssh -o HostKeyAlgorithms=+ssh-rsa -o PubkeyAcceptedKeyTypes=+ssh-rsa root@192.168.23.1

一劳永逸 配置~/.ssh/config

Host * # 配置全局
    ServerAliveInterval 120
    TCPKeepAlive no
    IPQoS=throughput
    StrictHostKeyChecking no
    HostKeyAlgorithms +ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-rsa
    UserKnownHostsFile=/dev/null

Host github.com
        IdentityFile ~/.ssh/github

Host op 192.168.23.1 # 指定局部
        HostName 192.168.23.1
        User root
        HostKeyAlgorithms +ssh-rsa
        PubkeyAcceptedKeyTypes +ssh-rsa
        IdentityFile ~/.ssh/id_rsa

相关文章

haproxy 负载rabbitmq集群 报client unexpectedly closed TCP connection
Nginx Apache CORS OPTIONS预检请求配置
windows 2012 命令行批量修改文件权限 删除
CICD持续部署 Jenkins 部署
CICD持续集成 SonarQube 代码检测部署
win11 Microsoft Store 微软账户无法登陆 0x80190001 解决

发布评论