by Devin Yang
(This article was automatically translated.)

Published - 7 years ago ( Updated - 7 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

ubuntu cannot find add-apt-repository command

ubuntu cannot find add-apt-repository command

linux,cli

How to use the date command to display yesterday's date

The instructions are different on MacOS or Linux, but achieve the same effect. Let's see how to display yesterday's date with the date command.

linux,config

Ubuntu ppp0 renamed eth0

Not sure who will use it, but I encountered it myself, because my home is a floating IP. A software I installed cannot detect that the ppp0 network card is an external network, so changing the name can trick him into successfully installing it.