macOS Ventura changed SSH algorithm, you need to update your SSH config file ~/.ssh/config to make it work.

Host *
    UseKeychain yes
    IdentitiesOnly yes
    HostkeyAlgorithms +ssh-rsa
    PubkeyAcceptedKeyTypes +ssh-rsa
    PubkeyAcceptedAlgorithms +ssh-rsa