본문 바로가기

728x90

전체 글

SSH 키를 생성하고 배포하여 원격 서버에 SSH 접속하는 방법 SSH 키를 생성하고 배포하여 원격 서버에 SSH 접속하는 방법 1. SSH 키 생성 [server 작업] 로컬 컴퓨터에서 SSH 키 쌍을 생성해야 합니다. 이를 위해 ssh-keygen 명령을 사용합니다. 터미널에서 다음 명령을 실행하여 SSH 키 쌍을 생성합니다 ssh-keygen -t rsa -b 4096 -C "your_email@example.com" 위 명령을 실행하면 키 쌍 생성을 위해 몇 가지 옵션을 설정하라는 메시지가 표시됩니다. 엔터를 눌러 기본값을 사용하거나 필요한 옵션을 설정합니다. ssh-keygen 사용법 더보기 usage: ssh-keygen [-q] [-b bits] [-t dsa | ecdsa | ed25519 | rsa | rsa1] [-N new_passphrase] [.. 더보기
Ansible 설치 및 업그레이드 Ansible 설치 및 업그레이드 테스트 환경 운영체제 버전 정보 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) Ansible 설치 python 버전 $ python --version Python 2.7.5 앤서블 설치 yum install -y ansible ansible-python3 앤서블 버전 ansible --version $ ansible --version ansible 2.9.27 config file = /etc/ansible/ansible.cfg configured module search path = [u'/root/.ansible/plugins/modules', u'/usr/share/ansible/plugins/mod.. 더보기
CentOS 7에서 python3 업그레이드 CentOS 7에서 python3 업그레이드 테스트 환경 운영체제 버전 $ cat /etc/redhat-release CentOS Linux release 7.9.2009 (Core) python 버전 $ python --version Python 2.7.5 $ python3 --version Python 3.6.8 SCL 유틸리티 설치 yum install -y centos-release-scl python 업그레이드 python3.8 설치 yum install -y rh-python38 rh-python38-python-pip python 버전 $ /opt/rh/rh-python38/root/usr/bin/python --version Python 3.8.11 alternatives 확인 altern.. 더보기
[Mac] parallels desktop command-line mac parallels desktop command-line prlctl - 유틸리티는 가상 머신을 관리하는 데 사용됩니다. 작업에는 가상 머신 생성 및 구성, 스냅샷 관리, 복제 작업, Parallels Tools 설치, 통계 가져오기, 문제 보고서 생성 등이 포함됩니다. prlsrvctl - 이 유틸리티는 Parallels Desktop을 관리하는 데 사용됩니다. 작업에는 Parallels Desktop에 대한 일반 정보 가져오기, Parallels Desktop 기본 설정 수정, 사용자 목록 가져오기, 통계 가져오기, 라이선스 설치 등이 포함됩니다. Parallels Desktop Business and Pro Editions | Command-Line Reference | v17 prlctl l.. 더보기
[Ansible] inventory(인벤토리) 설정 Ansible inventory 설정 Ansible은 인벤토리로 알려진 목록 또는 목록 그룹을 사용하여 인프라의 여러 관리 노드 또는 "호스트"에 대해 동시에 작동합니다. 인벤토리가 정의되면 패턴을 사용하여 Ansible을 실행할 호스트 또는 그룹을 선택합니다.(대상 서버 리스트) 구성 설정(Configuration settings) - ANSIBLE_CONFIG (환경 변수에 지정한 경우) - ansible.cfg (현재 디렉토리) - ~/.ansible.cfg (홈 디렉토리) - /etc/ansible/ansible.cfg (기본) vim ~/.ansible.cfg cat ~/.ansible.cfg [defaults] inventory = ~/inventory/hosts.ini host_key_che.. 더보기
vagrant 설치 및 ubuntu 서버 배포 vagrant 설치 및 ubuntu 서버 배포 원도우 패키지 관리자 설치(CHOCOLATEY) 요구 사항 Windows 7+ / Windows Server 2003+ PowerShell v2+ (minimum is v3 for install from this website due to TLS 1.2 requirement) .NET Framework 4+ Windows PowerShell(오른쪽 마우스 클릭) > 관리자 권한으로 실행 chocolatey 설치 Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::Sec.. 더보기
[Mac] Parallels Desktop에서 Vagrant를 사용하는 방법 Parallels Desktop에서 Vagrant를 사용하는 방법(설치 실패) mac os version(mac m1) $ sw_vers ProductName:macOS ProductVersion:12.5.1 BuildVersion:21G83 vagrent 설치 brew install vagrant $ vagrant --version Vagrant 2.3.0 vagrant-parallels 플러그인 설치 vagrant plugin install vagrant-parallels $ vagrant plugin list vagrant-parallels (2.2.5, global) mkdir vagrant-test cd vagrant-test vagrant 이미지 검색 Discover Vagrant Boxes .. 더보기
Amazon Route 53 Invalid Change Batch 오류(InvalidChangeBatch 400) Amazon Route 53 Invalid Change Batch 오류(InvalidChangeBatch 400) cname_txt_record_txt CNAME 레코드 추가 cname_txt_record_txt TXT 레코드 추가 cname_txt_record_txt CNAME 레코드가 있는 상태에서 cname_txt_record_txt TXT 레코드를 생성하면 아래와 같이 오류가 발생합니다. 오류 발생 잘못된 요청입니다. (InvalidChangeBatch 400: RRSet of type TXT with DNS name cname_txt_record_txt.scbyun.com. is not permitted because a conflicting RRSet of type CNAME with the .. 더보기

728x90