E
E
ettaluni2021-05-14 21:51:29
linux
ettaluni, 2021-05-14 21:51:29

Command to create a key and immediately upload it to the server?

Good day! One person showed me the command to create a key. In order not to enter the password constantly. But he did it somehow cunningly with one command. I remember only ssh: -[some parameter] 192.168.1.1 [something further].
And all I could enter without a password, it did not generate anything.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin B., 2021-05-14
@Kostik_1993

Apparently the key has already been created. It doesn't take much to do what you've described.
First, generate a key with the ssh-keygen command . This must be done once if such a key has not yet been made. If it is, then you don't need to do it.
Next , ssh-copy-id [email protected] will transfer your key to the server. After that, you can connect without a password with the command ssh [email protected]

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question