Azure Cloud Shell : Permission denied (public key)

Azure Cloud Shell : Permission denied (public key)


generate new public key

ssh-keygen        

writing key to file

Generating public/private rsa key pair
Enter file in which to save the key (/c/Users/username/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /c/Users/username/.ssh/id_rsa
Your public key has been saved in /c/Users/username/.ssh/id_rsa.pub
The key fingerprint is:
SHA256:iCBS3ygINtWJPahAYh3QZDh8Y6joyrlgA6bjBGXerW8 username@LAPTOP-MNE6JNE7
The key's randomart image is:
+---[RSA 3072]----+
|=*X=* .          |
|*BoX B           |
|B X + o          |
|+* + o .         |
|+.. o o S        |
|=.   .           |
|*+. .            |
|*+.  .E          |
| o.  ..          |
+----[SHA256]-----+.        

above you can observe key is written to file "id_rsa"

You can cat this file and check for key and got azure website vm page

cat the public key stored in file

paste this key in reset password section--> Reset SSH Public key -> under support and troubleshoot section

you can paste the above key in the "public ssh key"

No alt text provided for this image

Now you can use command

ssh azureuser@your_public_ipaddres

        

Which takes you to inside VM :-)

thanks for reading this article.

要查看或添加评论,请登录

Matam Kirankumar的更多文章

  • Multi-tenant Architecture

    Multi-tenant Architecture

    Building a multi-tenant application has become an increasingly important concept in today’s application development…

    1 条评论
  • Lets Explore ConcurrentSkipListMap

    Lets Explore ConcurrentSkipListMap

    A ConcurrentSkipListMap is a part of the Java Collections Framework and is available in the java.util.

  • Lets understand Go 1.21 new release

    Lets understand Go 1.21 new release

    The Go programming language has released its first Release Candidate (RC) for version 1.21, which is packed with new…

  • Functional index in database

    Functional index in database

    ?? Database Tip Most developers are puzzled that indexes are not used for e.g.

  • Mastering Sprint Planning: Key Steps for Successful Agile Development

    Mastering Sprint Planning: Key Steps for Successful Agile Development

    Introduction Sprint planning is a meeting that takes place at the beginning of a sprint in the Agile software…

  • REST API Naming Conventions and Best Practices

    REST API Naming Conventions and Best Practices

    Lets us know the best practices/Standards in REST API Full form of REST API is Representational State Transfer…

    5 条评论
  • Java 19 arriving!

    Java 19 arriving!

    Good news for Java Developer’s Community . Java 19 is Arriving in Sep-2022.

  • Collection vs Collections in Java.

    Collection vs Collections in Java.

    Differentiate between Collection and collections in the context of Java. Collection : In the java.

  • public static void main(String[] args)

    public static void main(String[] args)

    psvm in Java psvm in Java stands for public static void main(String[] args). It is the most important Java method.

  • Constructor Injection vs Field Injection

    Constructor Injection vs Field Injection

    Repeat after me: field injection is a dumb idea Let’s discuss this stuff with a bit of (quite generic) context: we want…

    2 条评论

社区洞察

其他会员也浏览了