sudo apt update
sudo apt install -y openssh-server
 
sudo passwd 사용자명
sudo adduser 사용자명
 
sudo systemctl start ssh
sudo systemctl enable ssh
 
 
sudo nano /etc/ssh/sshd_config
 
PasswordAuthentication yes
PermitRootLogin no
UsePAM yes
 
 
sudo ufw disable
sudo systemctl restart ssh   sudo systemctl stop ufw
sudo systemctl disable ufw