$
학습 Linux 안내서
ko
XP:0
퀘스트 142Key Master
+220 XP

SSH Key Authentication (ssh-keygen & ssh-copy-id)

이 퀘스트를 위한 인터랙티브 터미널 시작→설치 불필요 • 브라우저에서 바로 실행

개념 및 개요

Password authentication on remote SSH servers is vulnerable to brute-force attacks and credential stuffing. Production infrastructure relies on asymmetric SSH keypair authentication.

- ssh-keygen -t ed25519: Generates a high-security Ed25519 public/private keypair (~/.ssh/id_ed25519 and ~/.ssh/id_ed25519.pub).
- ssh-copy-id deployer@192.168.1.50: Automatically appends your local public key to the remote user's ~/.ssh/authorized_keys file, enabling passwordless login.

Let's set up key-based authentication. Generate an Ed25519 SSH keypair by running ssh-keygen -t ed25519, then install your public key onto the remote host using ssh-copy-id deployer@192.168.1.50.

명령어 구문 참조

Command / SyntaxDescription
ssh-keygen -t ed25519Generate Ed25519 SSH cryptographic keypair
ssh-copy-id user@hostCopy public key to remote host authorized_keys

검증 목표

  • ○
    Generate SSH keypair with ssh-keygen
  • ○
    Install public key with ssh-copy-id

퀘스트를 완료할 준비가 되셨나요? 142?