how to fix "Incorrect Padding" error while creating a linux vm.

07904355 0 Reputation points
2024-01-12T02:03:07.0866667+00:00

I tried to create a linux both Ubuntu and debian using Azure cli and i got the error "Incorrect padding" command: $ az vm create --resource-group tier3GrpPrdPrd --name appnode2 --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys ERROR: Incorrect padding how do i correct this.

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,013 questions
{count} votes

1 answer

Sort by: Most helpful
  1. TP 124.7K Reputation points Volunteer Moderator
    2024-01-13T11:12:41.7433333+00:00

    Hi,

    Please test below commands and see if it helps:

    ssh-keygen -t rsa -b 4096 -f ~/.ssh/appnode2 -N ""
    az vm create --resource-group tier3GrpPrdPrd --name appnode2 --image Ubuntu2204 --admin-username azureuser --ssh-key-value ~/.ssh/appnode2.pub
    
    

    Please click Accept Answer and upvote if above was helpful.

    Thanks.

    -TP

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.