시스템 구성 ubuntudebiancentos beginner

SSH 포트 변경

SSH 서버 포트(기본 22) 변경

Overview

SSH 서버 포트(기본 22) 변경

Commands

SSH 포트를 {port}(으)로 변경합니다. 방화벽에서 허용하세요. 계속할까요?

sudo sed -i 's/^#\?Port .*/Port {port}/' /etc/ssh/sshd_config
sudo systemctl restart sshd