본문 바로가기
기타/Windows

[윈도우] Windows SSH 공개키 생성

by makepluscode 2022. 5. 26.
반응형

윈도우10 SSH 공개키 생성

윈도우10에서 ssh 공개키를 생성하고 위치를 확인한다.

윈도우 SSH 공개키 생성

ssh 키 만들기

윈도우10에서 공개키를 생성하는 방법은 리눅스와 매우 유사하다. PowerShell 을 열고 터미널에서 ssh-keygen.exe 를 실행한다.

C:\> ssh-keygen.exe
Generating public/private rsa key pair.
Enter file in which to save the key (C:\Users\user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in C:\Users\user/.ssh/id_rsa.
Your public key has been saved in C:\Users\user/.ssh/id_rsa.pub.
The key fingerprint is:
SHA256:2f1dsnDg4H----------------FHw6t0KI5OBto user@DESKTOP-ULCLBCG
The key's randomart image is:
+---[RSA 3072]----+
|           .     |
|            +    |
|           + +   |
|    .   .o    +  |
|   o . oSo.B.* + |
|  . E ------    +|
|     +   + o .oB+|
|      . +.   ++.=|
|       .o+.  o+oo|
+----[SHA256]-----+

ssh 공개키 (id_rsa.pub) 는 아래 위치에 생성된다.

cat C:\Users\user\.ssh\id_rsa.pub
ssh-rsa AAAA...L4V57CwiUvTM= user@DESKTOP-ULCLBCG

참고자료

https://www.howtogeek.com/762863/how-to-generate-ssh-keys-in-windows-10-and-windows-11/

 

How to Generate SSH keys in Windows 10 and Windows 11

If part of your life includes logging in to a remote server be it for a self-hosted blog, a Nextcloud installation, or sending your latest changes to GitHub, you need SSH keys. In Windows 10 and 11 we are spoiled for choice when it comes to generating new

www.howtogeek.com

 

반응형