반응형
putty 자동로그인
1.서버에 key 생성
상황
root로 서버에 로그인한 상태
(명가지 질문에 모두 엔터)
# ssh-keygen
2. 파일명 변경
경로
# ce /root/.ssh
파일명 변경
id_rsa와 id_rsa.pup두개의 파일잉 있다.
id_rsa.pup > authorized_keys
# mv id_rsa.pup authorized_keys
3. 로컬에 파일 복사 winscp등으로 파일을 가지고 온다.
- 대상파일 id_rsa
4. key 생성 ptty key generator
Download PuTTY: latest release (0.78)
This page contains download links for the latest released version of PuTTY. Currently this is 0.78, released on 2022-10-29. 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
- puttygen.exe실행 > Load클릭 > All Files 선택 > id_rsa 샌택 > 확인 > Save private key클릭 > 확
5. putty설정
로그인할 계정명 설정
- Connection > Data > Auto-login usemame > 사용할 계정명(예 : root)
생성키 설정
- Connection > SSH > Auth > Browse > 생성한키(예 : root2.ppk) 선택
- Session > 아이피, 포트, Saved Sessions명 > Save
반응형