nhnacademy-aiot1-5 / study

공부한 내용을 기록하는 저장소입니다.
MIT License
0 stars 0 forks source link

git actions - ssh: handshake failed: ssh: unable to authenticate 해결법 #28

Open siddltkfkd opened 3 months ago

siddltkfkd commented 3 months ago

Image

키 만들때 키 생성할때 passphrase는 엔터로 넘겨야합니다. 여기에 비밀번호를 입력하면 이 키로 로그인 할 때는 그 비밀번호를 입력해야 접속 가능해요

이외에 봐야할 사항들

  1. git actions 설정 잘했는지 확인
    1. ssh-id : 로그인한 계정 이름(ubuntu, nhnacademy…)
    2. ssh-ip : nhncloud ip 주소 (133.186.134.189)
    3. ssh-key : 시크릿키 전부 다 복붙해야함 (키 이름만 적는거 X, —-start—-, —-begin—- 이렇게 된거까지 다 붙여넣어야함)
    4. ssh-port : 22
  2. 개인키로 서버에 로그인 되는지 확인
  3. [start.sh](http://start.sh/) 파일 작성했는지 확인
  4. 자바는 깔려있나 확인
caboooom commented 3 months ago

Image

저도 같은 문제가 있었는데 무조건 nhnacademy 계정 ~/.ssh 하위에 authorized_keys 있어야 하네여

permission denied 이유: nhnacademy 계정으로 로그인해서 nhnacademy의 홈디렉토리 아래 잇는 startup.sh 돌리려고 했는데 super 권한 가진 ubuntu 계정의 /.ssh/authorized_keys 에는 공개키가 등록되어 있엇ㅆ고 super 권한 없는 nhnacademy 계정의 ~/.ssh/authorized_keys 에는 공개키가 등록되지 않았어서