SSH2 [Ubuntu] ssh root login 목적 root 계정으로 ssh 접속 허용 " /etx/ssh/sshd_config "에서 아래의 2개 내용 수정 # File: /etx/ssh/sshd_config PermitRootLogin yes PasswordAuthentication yes root 계정 password 설정 $ passwd root ssh service 재시작 $ service ssh restart . 2024. 2. 5. [Ubuntu] ssh 설치 (터미널 원격 접속) - 아래 명령어로 open ssh server 설치 $ sudo apt update $ sudo apt install openssh-server - ssh server 실행 $ sudo systemctl enable ssh $ sudo systemctl start ssh - ssh server 실행상태 확인 $ sudo systemctl status ssh - 'active (running)' 확인되면 실행상태를 뜻함 - 방화벽 상태 확인 $ sudo ufw status - 방화벽에 ssh 사용 규칙 등록 $ sudo ufw allow ssh - 원격에서 아래 명령어로 ssh client 접속 - 명령어 형식은 "ssh 사용자_이름@sserver_ip" $ ssh user_name@192.168.1.2 .. 2024. 2. 4. 이전 1 다음