본문 바로가기
server/linux

SSH Key 만들기

by "뭉치" 2021. 8. 23.
728x90

참고 : https://opentutorials.org/module/432/3742

SSH Key 만들기

## su - tomcat $ssh-keygen -t rsa $(비밀번호 입력 및 빈값) enter

권한 설정

##이미 권한설정이 생성과 동시에 되어 있긴 함. chmod 700 ~/.ssh chmod 600 ~/.ssh/id_rsa chmod 644 ~/.ssh/id_rsa.pub

authorized_key에 인증키 등록

$ssh-copy-id -i /workspace/was/.ssh/id_rsa.pub 유저명@배포서버IP

그외.

배포서버의 /etc/ssh/sshd_config를 수정한다. PermitRootLogin no PermitEmptyPasswords no PasswordAuthentication yes 수정 후 #service sshd restart

728x90

'server > linux' 카테고리의 다른 글

linux 기본기능 스크롤 업..  (0) 2021.08.25
기본설정  (0) 2021.08.24
linux root password && useradd  (0) 2021.08.22
메모리 확인  (0) 2021.08.21
tar 압축해제  (0) 2021.08.20

댓글