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. in Your Virtual Machine Page, Go to “Run Command” in...
Contents
How do I get an ssh key for my Azure VM?
You can use a new “Run Command” feature of Azure Portal.
- In your Virtual Machine page, go to “Run command” in “Operations” section of VM menu.
- Select “RunShellScript” command.
- Paste the following command: for f in /etc/ssh/ssh_host_*_key; do ssh-keygen -l -f “$f”; done.
Must Read
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.