ssh host key 초기화 host 정보가 변경되어 아래와 같이 ssh key changed 메시지가 발생되면 두가지 방법으로 키를 초기화 할 수 있다. 1. 첫번째 방법 ssh-keyget 명령으로 known_hosts 파일 내의 해당 호스트 정보를 초기화 [root@myserver-m01 playbook]# ssh 192.215.2.30 @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@ @ WARNING:
python 2.7 and pip install on CentOS 6
CentOS 6의 기본 python은 2.6 버전이다. 버전이 낮아서 여러가지 제약 사항이 있어 python 2.7 소스를 컴파일해서 설치하는 방법을 알아본다. 추가로 pip install 및 pip 를 통해 requests, pyinstaller, pycrupto, pyarmor를 설치 후 파이썬 코드를 난독화 및 바이너리화 하는 것을 진행해
openssl failed decryption
CentOS 7.4 이상에서 openssl로 암호화한 문장을 복호화할 때 아래와 같은 문제가 발생하는 경우가 있다. [CentOS6 x64 ~ ]# # echo 'U2FsdGVkX1+68waqZjI25X/iK5UWU8ek7FAfLstQXxZgOksolYMZKmb1mWcjKIoSD/QIq8DmAYFzWWVFi/WcxUs9BZ8+KzritZinp+noiq52l95Ei12xWYNNeZgtIbBs' | openssl aes-256-cbc -md md5 -d -k mykey -base64 error reading input file 문제가가 발생하는 openssl 버전을 포함하는
디렉토리, 파일 tar와 openssl로 암호화 하기
How to Encrypt and Decrypt Files and Directories Using Tar and OpenSSL (tecmint.com)
CentOS 6, Yum repository
CentOS 6 작년 언젠가부터 CentOS 6의 Vault repository가 제대로 동작하지 않는다. repo 설정은 아래와 같이 되어 있는데,, baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/ baseurl=https://vault.centos.org/centos/$releasever/os/$basearch/ repo list를 확인하면 증명서 체크에 실패하는 메시지가 발생하면서 repo의 패키지 리스트가 0으로 출력된다. [root@centos6 ~]# yum repolist Loaded plugins: fastestmirror,
wget –no-check-certificate
리눅스에서 wget(또는 curl)을 사용하여 https 사이트에 접근 시, [root@c78-test ~]# wget https://test.com/down/abc.tar.gz –2022-02-03 21:26:19– https://test.com/down/abc.tar.gz Resolving test.com (test.com)… 113.211.235.125 Connecting to test.com (test.com)|113.211.235.125|:443… connected. ERROR: cannot verify test.com's certificate, issued by ‘/C=US/O=Let's Encrypt/CN=R3’: Issued certificate has expired. To connect to
CentOS / RHEL 7 Booting Kernel 순서 변경
CentOS7 / RHEL7 이후 버전에서 아래와 같이 부트로더(grub2)의 커널 우선 순위(부팅 시점에 커널 선택 메뉴에서)를 변경 가능 – 현재 커널 확인 # uname -r 3.10.0-957.el7.x86_64 – 현재 적용중인 부팅 1순위 커널 버전 확인 # grub2-editenv list saved_entry=Red Hat Enterprise Linux
CentOS 7, 8 grub2 설정 변경
– 설정 변경 # vim /etc/default/grub – 설정사항 반영 BIOS: # grub2-mkconfig -o /boot/grub2/grub.cfg EFI: # grub2-mkconfig -o /boot/efi/EFI/centos/grub.cfg (RHEL : grub2-mkconfig -o /boot/efi/EFI/redhat/grub.cfg) * 아래 'EFI 사용 여부 확인'을 통해 확인 – 반영된것 확인 # ls -la
Program to eat CPU and Memory on Linux
CPU, 메모리 부하 테스트 프로그램 eat_cpu_mem.c 코드 내용 #include #include #include #include #include // This program can be used for simple CPU and MEM load tests // This program puts almost 100% load on one cpu core and consumes specified
Install AWX on CentOS 7
AWX를 CentOS 7에 Docker Container 기반으로 설치하는 방법을 기술한 문서임 설치 정보 서버 구성 위치 vmware esxi 상의 VM VM OS CentOS 7.9 AWX 구성 형태 docker container 구성 과정 AWX 구성 과정 CentOS 7.9 에서 아래와 같이