728x90
//apt update
$ sudo apt update -y && sudo apt upgrade -y
// ssh 설치
$ sudoapt install openssh
// 구동명령어
$ service ssh status
$ service ssh stop
$ service ssh start
$ service ssh restart
//config 파일 설정
$ sudo vi /etc/ssh/sshd_config
port 22 주석해제
PasswordAuthentication yes : id/pass로 접근가능한지 여부
PubkeyAuthentication yes : 공개키 인증방식으로 접근가능한지 여부
728x90