macbook SourceTree Push 오류 /home/username/.ssh/config: line 5: Bad configuration option: IdentifyFile/home/username/.ssh/config: terminating, 1 bad configuration optionsfatal: The remote end hung up unexpectedly

2022. 1. 4. 23:53·Git

맥 개발환경에서 갑자기 소스트리에서 remote branch로 push되지 않는 현상 발생!

 

처음에는 이런 에러가 떴었다.

 

webview remote: Permission to username/repository.git denied to username. fatal: unable to access 'https://github.com/username/repository.git/': The requested URL returned error: 403 Completed with errors, see above

갑자기 권한 문제로 머 푸쉬가 안된다는 소리인거 같은디..

 

 

이후 소스트리 종료 후 재시작하고, 원격 저장소에서 같은 레포를 클론해봤는데 

 

/home/username/.ssh/config: line 4: Bad configuration option: IdentifyFile/home/username/.ssh/config: terminating, 1 bad configuration optionsfatal: The remote end hung up unexpectedly

 

요런 에러 발생!

 

ssh config 파일 쪽에서 문제가 있는 것 같아서 경로로 들어가서 파일을 봤따

 

cd /Users/username/.ssh

 

이 후 vi config 실행

 

이후 오류 로그에서 본 4번째 줄의 딱봐도 수상해보이는 IdentifyFile ~/.ssh/id_ed25519 를 주석처리 한 후 다시 push에 성공했다!!

 

Host *

  AddKeysToAgent yes

  UseKeychain yes

# IdentifyFile ~/.ssh/id_ed25519

# --- Sourcetree Generated ---

Host gogoadl-GitHub

        HostName github.com

        User gogoadl

        PreferredAuthentications publickey

        IdentityFile /Users/hyeonwoo/.ssh/gogoadl-GitHub

        UseKeychain yes

        AddKeysToAgent yes

# ----------------------------

 

하 이거때문에 한 한시간 버렸다 또...

 

같은 오류를 겪으시는 분들이 얼렁 해결하시길 ^0^

'Git' 카테고리의 다른 글

Github Foundations 준비  (4) 2024.09.06
Github Action으로 Android 앱 github Release에 배포하기  (0) 2023.07.06
PC의 stash를 다른 PC에 적용하기  (0) 2023.07.05
소스트리 push 실패 (오류코드 까먹음)  (0) 2022.01.11
[Git] 로컬 저장소와 원격 저장소 연동하기  (0) 2021.03.20
'Git' 카테고리의 다른 글
  • Github Action으로 Android 앱 github Release에 배포하기
  • PC의 stash를 다른 PC에 적용하기
  • 소스트리 push 실패 (오류코드 까먹음)
  • [Git] 로컬 저장소와 원격 저장소 연동하기
HWBB
HWBB
흥미주도개발자
  • HWBB
    코딩공부방
    HWBB
  • 전체
    오늘
    어제
    • 분류 전체보기 (164)
      • 알고리즘 (61)
      • Android (27)
      • Kotlin (0)
      • Java (2)
      • Design Pattern (2)
      • React Native (1)
      • Python (0)
      • TIL (21)
      • Unity (0)
      • React (2)
      • AWS (0)
      • Git (11)
      • MFC (1)
      • Spring (4)
      • Computer Science (4)
      • Vue (4)
      • Infra (6)
      • 박현우 (10)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 승윤이
  • 공지사항

  • 인기 글

  • 태그

    코딩테스트
    programmers
    Android
    프로그래머스
    github
    AWS
    Java
    알고리즘
    coding
    android studio
    algorithm
    백준
    안드로이드
    Kotlin
    GIT
    안드로이드 스튜디오
    자바
    코틀린
    깃허브
    baekjoon
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.3
HWBB
macbook SourceTree Push 오류 /home/username/.ssh/config: line 5: Bad configuration option: IdentifyFile/home/username/.ssh/config: terminating, 1 bad configuration optionsfatal: The remote end hung up unexpectedly
상단으로

티스토리툴바