본문 바로가기
Mac

SSH Permission denied

by GOOROOM 2021. 9. 23.

SSH접속시 SSH Permission denied 에러가 나면 터미널에서 아래 명령어를 입력하여 sshd_config를 수정하자.

 

sudo vim /etc/ssh/sshd_config 

 

vim을 이용하여 sshd_config 파일을 열어서 아래와 같이 편집

 

PermitRootLogin prohibit-password -> PermitRootLogin yes
PasswordAuthentication no -> PasswordAuthentication yes

 

 

ssh 서비스 다시 시작하기

sudo launchctl stop com.openssh.sshd
sudo launchctl start com.openssh.sshd

댓글