
개요chrony는 시간 동기화를 제공하는 프로그램으로 NTP의 대안 중 하나이다.chrony 서버 환경은 Rocky Linux 9.3, chrony 클라이언트 환경은 Rocky Linux 8.9으로 테스트를 진행했다.로컬 레포지토리 설정은 이미 포스팅을 했으니 생략하겠다.설치 및 설정Server1. chrony 설치yum install chrony[root@localhost ~]# yum install chrony마지막 메타자료 만료확인(0:06:22 이전): 2024년 07월 17일 (수) 오전 11시 02분 55초.종속성이 해결되었습니다.================================================================================ 꾸러미 ..

개요 [root@testlocal ~]# yum update Rocky Linux 8 - AppStream 0.0 B/s | 0 B 00:00 Errors during downloading metadata for repository 'appstream': - Curl error (6): Couldn't resolve host name for https://mirrors.rockylinux.org/mirrorlist?arch=x86_64&repo=AppStream-8 [Could not resolve host: mirrors.rockylinux.org] 오류: repo를 위한 메타자료 내려받기에 실패하였습니다 'appstream': Cannot prepare internal mirrorlist: Curl ..

개요 삼바(Samba)는 SMB (Server Message Block) 프로토콜을 이용하여 윈도우와 리눅스 계열 간 프린터 및 공유폴더를 사용하여 자원을 공유할 수 있는 프로그램이다. 삼바를 설치하고 테스트하게 된 계기는 기존 윈도우서버의 이미지 백업을 리눅스 스토리지 서버로 원격지 백업을 할 일이 생겼기 때문이다. 설치 및 설정 1. samba 설치 yum install samba [root@localhost ~]# yum install samba ================================================================================ 꾸러미 구조 버전 저장소 크기 =============================================..

개요 vsftpd는 very secure FTP daemon의 약자로, 직역하면 매우 안전 파일 전송 프로토콜 데몬이다. sftp의 기본 포트 번호는 22번으로 ssh와 동일한 포트 번호를 사용한다. 해서 ssh 포트 번호를 변경하면 sftp도 동일한 포트 번호로 연결하면 된다. 따로 설정하는 방법도 있으나 해당 포스팅에서는 다루지 않는다. 설치 1. vsftpd 설치 yum install vsftpd [root@localhost ~]# yum install vsftpd ================================================================================ 꾸러미 구조 버전 저장소 크기 ==================================..

개요 윈도우 원격 접근을 위한 기본 포트는 RDP, 3389번 포트이다. 앞서 포스팅한 리눅스 ssh 포트 변경의 내용과 같다. 기본 포트는 보안에 취약하기 때문에 임의의 포트로 변경해서 사용하라고 취약점 조치 체크리스트에 나와있다. 해당 내용은 KISA 한국인터넷진흥원 에서 확인 가능하다. 포트 변경 방법 리눅스는 이래저래 변수가 많다. 예전에 구름 쿠버네티스 과정할 때도 ssh 접근때문에 애를 먹는 교육생들도 많았다. 지금이야 어떻게든 방법을 찾겠지만 그때는 가상머신을 얼마나 지웠다 깔았는지 생각도 나지 않는다. 윈도우의 RDP 포트 변경은 리눅스에 비하면 쉽다. 언젠가는 머릿속에 다 있겠지만, 현재는 없기 때문에 언제든 활용하기 위한 RDP 포트 변경 방법이다. 1. 레지스트리 편집기 실행 2. \..

개요 Linux 원격 접근을 위한 기본 포트는 SSH, 22번 포트이다. 기본 포트는 보안에 취약하기 때문에 임의의 포트로 변경해서 사용하라고 취약점 조치 체크리스트에 나와있다. 해당 내용은 KISA 한국인터넷진흥원에서 확인 가능하다. 포트 변경 1. 먼저 Linux에서 root 계정으로 접근을 하여 sshd_config 파일을 수정한다. vi /etc/ssh/sshd_config 2. 해당 파일을 열어보면 내용이 ssh 관련 설정 내용들이 나와있는데 Port 부분을 찾는다. ... # If you want to change the port on a SELinux system, you have to tell # SELinux about this change. # semanage port -a -t ssh..

디스크 장애 얼마 전, 모 업체의 장애디스크 교체를 위해 방문을 했다. 최근에 진행했던 디스크 교체들은 방문해서 서버를 확인했을 때 디스크가 하나만 문제가 있는 경우가 대부분이었다. 하지만 이번에 방문했던 업체는 RAID 1로 구성되어 있는 디스크 두 개가 문제가 있었다. HPE Disk LED 의미 해당 문제를 보기 전까지 LED에 대한 정확한 의미를 몰랐지만 문제에 봉착하게 되면 찾아볼 수밖에 없나 보다. 지금 와서 드는 생각이지만 아무 생각 없이 1번 디스크를 제거했다면... 생각만 해도 아찔하다. LED의 의미를 아는 분이라면 욕을 하실 수 있지만 모르는 분들이라면 LED가 무엇을 의미하는지 알면 좋겠다. 서버마다 다소 차이는 있지만 해당 서버는 HPE 서버로, LED의 의미는 여기나 아래 그림을..

최초 대응 서버를 납품했던 업체에서 연락이 왔다. 'Package temperature above threshold, cpu clock throttled' 라는 오류와 'Core temperature above threshold, cpu clock throttled' 라는 오류가 계속적으로 발생한다는 것이다. [2276289.708207] CPU10: Package temperature above threshold, cpu clock throttled (total events = 5656) [2276289.708208] CPU7: Package temperature above threshold, cpu clock throttled (total events = 5656) [2276289.708209] CP..

Linux 패스워드 정책 기본 비밀번호 항목 지정 /etc/login.defs vi /etc/login.defs # # Please note that the parameters in this configuration file control the # behavior of the tools from the shadow-utils component. None of these # tools uses the PAM mechanism, and the utilities that use PAM (such as the # passwd command) should therefore be configured elsewhere. Refer to # /etc/pam.d/system-auth for more informatio..

한동안 VMware Workstation을 만져보다가, 오랜만에 VirtualBox가 생각나서 실행을 시켰는데 VM이 실행되지 않았다. 발생한 오류는 Failed to open/create the internal network ‘HostInterfaceNetworking-VirtualBox Host-Only Ethernet Adapter’ 라는 문구가 떴다. 여기저기 구글링을 해본 결과 윈도우 업데이트 후에 이런 상황이 발생하는 것 같다. 최근에 윈도우 업데이트를 하는 바람에 이렇게 된 것이 아닌가 생각해 본다. 해결 방법 VirtualBox Uninstall - 기존 VM은 유지되고 프로그램만 지워짐 VirtualBox 재설치 VM 네트워크 확인 VM 실행 해당 과정에서 VM이 실행되지 않았는데 실행에..