Skip to content

SSH connections to macOS Ventura with ssh key #715

@Jbrev3

Description

@Jbrev3

I am able to SSH from my iPad to my Mac with a username and password, but I haven't been able to figure out how to SSH using key authentication.

I successfully generate the keys using ssh-keygen in the terminal in the code app on my iPad, but how to I get to key to the ~/.ssh/authorized_keys file on my Mac? ssh-copy-id does not seem to work. I did copy the .pub key, sign on to my Mac with a password, and then paste the key in the authorized_keys file. However, when I try to sign on, I get "Authorization failed" in the app. This is perhaps similar to issue #688.

Note: I am able to ssh to my Mac using another key on another device, so I think the Mac side is set up correctly.

I have very little experience with SSH, and this is my first post, so let me know if you need additional information.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions