Search
💻

linux ssh keygen 사용법

명령어

ssh-keygen -t rsa
Bash
복사
비번을 걸지 않을 거면 엔터엔터로 마무리 하면 된다.

결과

ubuntu@ip-172-31-35-113:~$ ssh-keygen -t rsa Generating public/private rsa key pair. Enter file in which to save the key (/home/ubuntu/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/ubuntu/.ssh/id_rsa Your public key has been saved in /home/ubuntu/.ssh/id_rsa.pub The key fingerprint is: SHA256:8MBHCzkCy/2X2CQCTeP2p9r2gUOAZokCtrCANw5DaAk ubuntu@ip-172-31-35-113 The key's randomart image is: +---[RSA 3072]----+ |Eo++o ... | |X*+Boooo . | |=*B.*.=.+ | |.o.. = X . | | = S | | . = | | + . | | o.. . | | ..... | +----[SHA256]-----+
Bash
복사

확인

cd ~/.ssh cat id_rsa.pub ssh-rsa AAAAB3... ubuntu@ip-172-31-35-11
Bash
복사
Last updated @3/30/2023
Copyright 2023, 실전코딩 All Rights Reserved.