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DQpQYXNzd29yZEF1dGhlbnRpY2F0aW9uIOu2gOu2hCDssL7slYTshJwgeWVz66GcIOuwlOq/lOykgCDtm4QNCnN1ZG8gc2VydmljZSBzc2ggLS1mdWxsLXJlc3RhcnQg66GcIOyerOyLnOyekSDtlbTso7zrqbQg65Cc64ukDQo=
WSL에서 SSH 서버 열기 https://parksb.github.io/article/21.html 이 글에 잘 나와있다 아래 커맨드로 서버를 시작할 수 있다 sudo service ssh --full-restart Could not load host key: /etc/ssh/ssh_host_rsa_key Could not load host key: /etc/ssh/ssh_host_ecdsa_key Could not load host key: /etc/ssh/ssh_host_ed25519_key 이와 같은 문제가 생기면 아래 커맨드를 수행하면 된다 sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_key sudo ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key sudo ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key sudo ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key sudo ssh-keygen -A 접속시도시 Permission denied (publickey) 라는 문제가 발생시에는 sudo vim /etc/ssh/sshd_config 해서 PasswordAuthentication 부분 찾아서 yes로 바꿔준 후 sudo service ssh --full-restart 로 재시작 해주면 된다