Frotz

@frotz@grenzland.club

RPG account for a boring old man
homepage: https://grenzland.club/~frotz/
general-purpose Mastodon: https://mastodon.sdf.org/@frotz
English, Deutsch, 简体中文, 日本語
Blog: https://grenzland.club/~frotz
0 ★ 0 ↺

Frotz »
@frotz@grenzland.club

@blitter@catgirl.cloud I happened to see this post, so apologies if I don't understand what you need.

ssh works with the association of public and private keys along with a username. when you "ssh user@some.host", your ssh client pulls the public key for the account "user@some.host" from your known_hosts file. as far as I know you can only have one "user@some.host" entry in known_hosts. you might be to get around this by using "user@ip.address.of.host" associated with a different key but I've never tried it.

if I understand what you're trying to do in the last part of your message, you want to ssh to another account on a different machine from your server, using the private key from your client? if that is true, you need to copy your private key to the server and give it a name so you remember what it is. make sure the permissions are set to octal 600 or r--, and then specify the key in your ssh command you run from the server session (ssh -I /path/to/your/other.key personal@different.server).

if I completely misunderstood, I apologize but would be happy to help. I'm no ssh wizard but I have done some fairly complicated setups.

    ...
    0 ★ 0 ↺

    Frotz »
    @frotz@grenzland.club

    @blitter@catgirl.cloud @blitter@catgirl.cloud apologies, my autocorrect messed up the ssh -i and capitalized it. it should be "-i".

      0 ★ 0 ↺

      Frotz »
      @frotz@grenzland.club

      @blitter@catgirl.cloud Ugh, sorry for the multiple posts - I need to do a better proofreading job.

      ssh reads the public key stored for a particular server from known_hosts and compares it with the public key the server sends when initiating the ssh connection.

        History