2023년 October 29일
  1. 클라우드
  2. Permission denied (publickey) 해결 방법

Permission denied (publickey) 해결 방법

Plesk에서 생성된 system user로 ftp 접속 시 다음과 같은 에러 메시지가 발생하면서 접속이 되지 않습니다.

상태:	152.67.193.32:49152에 연결...
응답:	fzSftp started, protocol_version=11
명령:	open "bctcloud.kr_8dp2t8ee95w@152.67.193.32" 49152
오류:	Connection timed out after 20 seconds of inactivity
오류:	서버에 연결하지 못함

혹시 해서 console 환경에서 다음과 같이 접속을 해 봅니다.

sftp bctcloud.kr
ubuntu@bctcloud.kr: Permission denied (publickey)

이 문제를 해결하는 방법은 다음과 같습니다.

1. ssh 접속

2. Create a backup of the /etc/ssh/sshd_config file:

$ sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.back

3. Open the /etc/ssh/sshd_config file

$ sudo vi /etc/ssh/sshd_config

4. Enable password authentication for SSH connections:

PasswordAuthentication yes

5. 저장

6. SSH 재시작

$ sudo service sshd restart

sftp로 로그인해 보면 다음과 같이 정상 접속되는 것을 확인할 수 있습니다.

Leave a Reply

Your email address will not be published. Required fields are marked *

연관 글
BCT NEWS
인기 글
AI 컨설팅AI 트레이닝 센터
클라우드
BCT AI Chatbot