- Today
- Total
반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- source endpoint
- AWS
- Index 1 out of bounds for length 1
- 401error
- 이미지오류
- 숲느낌
- Jakarta Persistence
- secrets-manager-config
- 몽고디비 클론
- 수원
- deeplearning4j
- adverising
- 인계동
- unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape
- amozon
- secrets manager example code
- presigned
- Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.
- 구 트위터
- mongo to mysql
- 수원맛집
- python
- secrets manager
- opennlp
- java
- 주차가능
- 데이트코스
- mongodb atlas
- Cannot have overlapping
- Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type.
Archives
DevOps-Life
SSH 공개키와 개인키 본문
반응형
SMALL
공개키 와 개인키
이게 뭐라고 날 힘들게 했다...
su - infull
$ cd /home/infull
$ mkdir .ssh <-- 이미 존재한다면 생략가능
$ cd .ssh
$ ssh-keygen -t rsa -b (포트) -f infull <-- key 생성시 empty password로 생성
$ Enter passphrase (empty for no passphrase):
$ Enter same passphrase again:
여기서 나온 개인키와 공개키
$ cat infull.pub >> authorized_keys //공개키
$ ssh -i /home/infull/.ssh/infull infull@localhost //로그인 방법
외부 서버 경우 공개키를 로그인 할 외부서버의 아이디 밑 ~/.ssh/에 넣어 놓는다.
그 후 개인키로 로그인..
처음 아무것도 모른 상태로 하다가 공개키로 공개키를 로그인하려는 불상사가 생겼다,....
각각의 키 파일들의 사용권한 주의
755 : ~/.ssh
644 : authorized_keys
600 : id_rsa
644 : id_rsa.pub
644 : known_hosts
반응형
LIST
'IT > System' 카테고리의 다른 글
[AWS DMS] MongoDB Atlas To AWS RDS(Mysql) endpoint 생성 (0) | 2023.11.07 |
---|---|
[AWS] Configuration is ambiguously defined. Cannot have overlapping suffixes in two rules if the prefixes are overlapping for the same event type. (1) | 2023.09.14 |
rSyslog 적용방법과 history를 이용한 커멘드 로그출력 (0) | 2018.12.18 |
SSH등 접근제어 hosts.allow, hosts.deny (0) | 2018.11.20 |
Docker network IP 변경 (기존 네트워크 변경) (2) | 2018.11.19 |
Comments