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

2024-11-09 482 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

相关文章

dify smtp邮箱配置
vcenter 7 克隆虚拟机 ubuntu dhcp ip一样
prometheus 报错 “Out of order sample from remote write” err=”out of bounds”
ubuntu proxychains4 命令全局代理
OpenResty ModSecurity 编译
vCenter 7.0 禁用 vSphere 集群服务 (vCLS)

发布评论