SSH PasswordLess 로그인

  1. SSH Passwordless 로그인을 위해선 SSH 공개키 배포가 필요하다.
    • 테스트 OS RHEL7
    • 서버 구성 sshServer - sshClient
    • sshServer -> sshClinet로 ssh 비밀번호 없어 접속
  2. 절차
    1. ssh keygen
      [sshServer]$ ssh-keygen -t rsa
      # 아래에 나오는 추가 설정들은 알맞게 해 주자, 따로 요구사항이 없다면 그냥 enter해도 무방
      # 꼭 permission 을 설정해주자
      # user명에 맞는 chown도 필수
      [sshServer]$ chmod 700 ~/.ssh
      [sshServer]$ chmod 600 ~/.ssh/id_rsa
      [sshServer]$ chmod 600 ~/.ssh/id_rsa.pub  
      [sshServer]$ chmod 600 ~/.ssh/authorized_keys
      [sshServer]$ chmod 600 ~/.ssh/known_host
      
    2. ssh copy
      #옵션1
      [sshServer]$ ssh-copy-id -i ~/.ssh/id_rsa.pub userid@sshServer
      #옵션2
      #SCP 혹은 직접 copy 를 통해 sshClient쪽에 authorized_keys를 추가해준다.
      [sshClient]$ vi ~/.ssh/authorized_keys
      
    3. ssh Client쪽 permission 설정
# 꼭 permission 을 설정해주자
# user명에 맞는 chown도 필수
[sshClient]$ chmod 700 ~/.ssh
[sshClient]$ chmod 600 ~/.ssh/authorized_keys
4. ssh test ```bash #옵션1 [sshServer]$ ssh userid@sshclinet ```  

2021

Openshift Gitlab Helm 설치

1 minute read

Openshift Gitlab Install Openshift Gitlab Helm Install Helm Repo Add 레퍼런스는 여기 확인 https://docs.gitlab.com/cha...

리눅스 CR/LF 변환 파이썬 & 끝에 라인개행 들어간 파일 제거

less than 1 minute read

##개요 리눅스의 라인개행은 윈도우의 라인개행과 다르다. 고객의 요청으로 많은 건수의 파일을 이동할 일이 있었는데, 파일 리스트를 윈도우에서 작성해서 넘어오는 바람에 원치않은 라인개행 문자가 파일 끝에 들어가게 되어 해결방법을 남긴다. 파일 리스트 라인개...

Back to Top ↑

2020

Back to Top ↑

2019

Linux(RHEL) raw-device 생성

less than 1 minute read

raw-device OS의 캐싱없이 DB나 다른 시스템에서 직접 캐싱을 사용하려고 할 때 쓰인다.

SSH PasswordLess 로그인

less than 1 minute read

SSH Passwordless 로그인을 위해선 SSH 공개키 배포가 필요하다. 테스트 OS RHEL7 서버 구성 sshServer - sshClient sshServer -> sshClinet로 ssh 비밀번호 없어 접속 ...

Openshift 4.2 설치

1 minute read

레퍼런스. https://docs.openshift.com/container-platform/4.2/installing/installing_vsphere/installing-vsphere.html?extIdCarryOver=true&sc_cid=701f2000001OH74A...

Parted 사용법

less than 1 minute read

Parted 명령어 2TB 이상부터는 Fdisk 파티션 분할이 어렵다. Parted를 사용하자

Back to Top ↑