Question: How Do I Generate an Ssh Key for Azure Linux Vm?
Contents

How do I get an ssh key for my Azure VM?

You can use a new “Run Command” feature of Azure Portal.

  1. In your Virtual Machine page, go to “Run command” in “Operations” section of VM menu.
  2. Select “RunShellScript” command.
  3. Paste the following command: for f in /etc/ssh/ssh_host_*_key; do ssh-keygen -l -f “$f”; done.

How do I generate an ssh key in Linux?

Open the terminal application (command line) by clicking on the corresponding icon: 2 . Type the following command ssh-keygen -o -b 4096 and press Enter to generate the new key: The -o option was added in 2014; if this command fails for you, simply remove the -o flag.

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest