본문 바로가기
LINUX

[linux] ssh 실행시 start condition failed 에러

by Rainbound-IT 2024. 3. 12.
반응형

 

 

sudo service ssh start
sudo systemctl status ssh

● ssh.service - OpenBSD Secure Shell server
   Loaded: loaded (/lib/systemd/system/ssh.service; enabled; vendor preset: enabled)
   Active: inactive (dead)
Condition: start condition failed at Tue 2023-10-06 20:56:14 PDT; 8min ago
           └─ ConditionPathExists=!/etc/ssh/sshd_not_to_be_run was not met
     Docs: man:sshd(8)
           man:sshd_config(5)

Oct 06 20:40:48 penguin systemd[1]: Condition check resulted in OpenBSD Secure Shell server being skipped
Oct 06 20:43:16 penguin systemd[1]: Condition check resulted in OpenBSD Secure Shell server being skipped
Oct 06 20:44:14 penguin systemd[1]: Condition check resulted in OpenBSD Secure Shell server being skipped
Oct 06 20:47:30 penguin systemd[1]: Condition check resulted in OpenBSD Secure Shell server being skipped
Oct 06 20:49:37 penguin systemd[1]: Condition check resulted in OpenBSD Secure Shell server being skipped
Oct 06 20:56:07 penguin systemd[1]: Condition check resulted in OpenBSD Secure Shell server being skipped
Oct 06 20:56:14 penguin systemd[1]: Condition check resulted in OpenBSD Secure Shell server being skipped
lines 1-15/15 (END)

 

 

 

다음 파일 삭제

/etc/ssh/sshd_not_to_be_run

 

 

 

permission denied (publickey) 에러

 

 

그다음엔 보통 ssh permission denied (publickey) 에러가 발생하여 접속이 안될것이다.

 

/etc/ssh/sshd_config 편집 하면 됩니다.

 

아래 옵션을 no에서 yes를 바꿔주시면 됩니다.

 

PubkeyAuthentication yes

 

PasswordAuthentication yes

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

반응형

댓글