A
A
Agatnet2021-08-29 02:24:39
linux
Agatnet, 2021-08-29 02:24:39

How to transfer SSH keys from a client machine correctly?

Set up access via keys to a remote server (Ubuntu 18.04). The client machine at the time of setup is Linux (Debian 10). At the same time, I will constantly rush between different computers - Linux, Windows. And still a lot of time only with Android.

How to import the keys that are currently on the client computer to these devices? Or a banal transfer?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Alexander Karabanov, 2021-08-29
@Agatnet

Never do that.
The private key must not leave the machine on which it was generated.
Generate a key pair on another device and add the public key to the server, each device must connect with its own keys.

A
Alexey Dmitriev, 2021-08-29
@SignFinder

Banal transfer and conversion of a private key into a format understandable to the application.

G
Griboks, 2021-08-29
@Griboks

As a fallback: copy from the server on first connection and check the hash.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question