by Devin Yang
(This article was automatically translated.)

Published - 6 years ago ( Updated - 6 years ago )

Sometimes it is necessary to generate a ssh key pair for automatic configuration.

There is no password query in the command line, and an ssh key pair is generated.
ssh-keygen -b 2048 -t rsa -f /tmp/id_rsa -q -N "" -C "comment"

 

Tags: linux

Devin Yang

Feel free to ask me, if you don't get it.:)

No Comment

Post your comment

Login is required to leave comments

Similar Stories


linux

Load the environment variables of .env to the system

Load the environment variables of .env to the system

linux, mac, terminal, tips

How to clear the input of the current command line on the terminal of Linux or Mac?

How to clear the current command line in Linux or Mac terminal? For example, if you typed a bunch of instructions wrongly, and you want to clear them, Be sure to do the same as I used to, use the reverse key to kill slowly, we can use...

linux

Raspberry Pi 3 Raspberry Pi operating system installation

In this article, share the use of built-in instructions on MacOS to install the operating system of Raspberry Pi. Regarding the dd command during this installation process, please carefully specify the parameter of your of, which is the location of the write output to the file, If you make a mistake, your system will be destroyed.