'2018/06/20'에 해당되는 글 2건

  1. 2018.06.20 [git] commit/push한 내용을 수정해서 다시 commit/push하기
  2. 2018.06.20 [git] no kex alg 이슈




commit/push한 local repository를 하나 뒤로 돌려서 수정하고 다시 commit/push할 때 유용하다.



$ git reset HEAD^  


코드 작업 


$ git add


$ git commit -m "이전 이름 커밋 메시지"



강제 리버트하고. 기존 히스토리 안남게 한다.


$ git push origin +master 


Posted by '김용환'
,

[git] no kex alg 이슈

Tool 2018. 6. 20. 12:06



GitHub 에서 OpenSSH 보안을 강화(버전 업)해서 발생하는 문제이다.


$ git ls-remote git@github.com:OpenTSDB/opentsdb

no kex alg

fatal: Could not read from remote repository.


Please make sure you have the correct access rights



클라 버번이 너무 하위 버전이거나..

openssh 버전이 너무 낮으면 no kex alg 에러가 난다.



$ cat /etc/redhat-release

CentOS release 5.8 (Final)



kex 알고리즘이 없어서 발생한것으로서.. 서버에서 kex 알고리즘을 추가해서 재시작하거나. 클라이언트 openssh을 최신으로 변경한다.


kex(key exchange) 알고리즘 중 일부가 insecure하다고 판단한 것으로 보인다.. 

(https://devcenter.heroku.com/changelog-items/1311)


kex 알고리즘에 대한 설명은 다음과 같다.


https://www.linuxquestions.org/questions/linux-networking-3/sshd-and-kex-algorithms-4175545359/


Posted by '김용환'
,