https://shanepark.tistory.com/239

https://ca.ramel.be/74

SSH 기능 켜기

  1. openssh-server를 설치해야 함
$ sudo apt update
$ sudo apt install openssh-server
  1. ssh 서비스 구동 확인
$ sudo systemctl status ssh
  1. ufw 방화벽 열기
$ sudo ufw enable
$ sudo ufw allow ssh
  1. 내부 아이피 확인
ip a
  1. 내부 ssh 접속
$ ssh {계정명}@{ip주소}

ex) ssh [email protected]

외부 SSH 접속

  1. iptime 포트포워드
  1. ufw 포트 열기