DevOps/Linux

Putty 에 Pageant로 proxmox 내에 사설망 접근해보기

kimc 2025. 3. 3. 14:40

 

배워갈 내용

  1. 개요
  2. 실습
  3. 참조

개요

Pageagent는 Putty의 인증 에이전트로, 개인 키를 메모리에 저장하여 서버에 연결할 때 자동으로 사용할 수 있도록 해줍니다. 

 

이를 통해서

서버에 여러 사용자가 있는 경우, 각 계정에 맞는 키를 따로 지정하지 않아도 되고

로그인할 때마다 키의 비밀번호를 입력할 필요가 없게 합니다.

패스프레이즈로 보호된 SSH 키를 이용해 보안성을 유지합니다.

 

이번 실습에서는 Putty를 이용해 Proxmox host에 접속하고 접속한 다음 Pageagent를 활용해 SSH 키를 사용하는 방법으로 내부망에 VM에 접근해 봅니다.

 

실습

먼저 putty를 다운받습니다

https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html

 

Download PuTTY: latest release (0.83)

This page contains download links for the latest released version of PuTTY. Currently this is 0.83, released on 2025-02-08. When new releases come out, this page will update to contain the latest, so this is a good page to bookmark or link to. Alternativel

www.chiark.greenend.org.uk

 

 

putty 프로그램에 포함된 Pagent를 실행합니다.

 

 

Add Key를 눌러서 키를 추가해 줍니다.(ppk 파일입니다)

 

 

키가 추가되었다면

putty에서 Allow Agent Forwarding을 클릭합니다.

 

필요시 Connection > Data에 Auto Login Username 도 세팅해 주고

 

Session을 누르고 저장한 다음 접속합니다

(보안상 스샷 생략)

 

그다음 접속한 proxmox 호스트에서 다음과 같이 입력해서

내부망에 아이피로 node에 접속합니다

ssh -p <vm-ssh-port> user@<vm-private-ip>

 

 

참조

https://www.digitalocean.com/community/tutorials/how-to-use-pageant-to-streamline-ssh-key-authentication-with-putty

 

How To Use Pageant to Streamline SSH Key Authentication with PuTTY | DigitalOcean

Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases. Learn more about our products

www.digitalocean.com

 

 

 

 

728x90