git push시 자동 로그인 설정 - SSH 설정으로 username, password 그만 입력하자
github respository에 git push -u origin master 를 했을 때 아래와 같이 자꾸 로그인을 요청하는 경우 해결 방법 정리. repository주소를 https 로 받아서 처리하던 경우에 프로토콜을 ssh 로 변경하는 방법이다..
gentlesark.tistory.com
ssh 키를 복사하는 구문에서
stackoverflow.com/questions/16638092/copying-a-rsa-public-key-to-clipboard/22015538
Copying a rsa public key to clipboard
I am trying to copy a public key to the clipboard on macOS, but I keep getting "no such file or directory." The command I am using is pasted below pbcopy < ~/.ssh/id_rsa.pub
stackoverflow.com
위외 같이 null 이 났고
xclip -sel clip < ~/.ssh/id_rsa.pub Error: Can't open display: (null)
커먼드에 입력어 실행시
키같은 암호화가 떠서
cat ~/.ssh/id_rsa.pub
계속 진행했는데 자동로그인처리가 되지않았다
일단 프로젝트를 진행해야해서
일정동안 캐쉬정보를 가지고 있는 명령어를 입력해
7200 = 2시간 * 3시간 =21600 시간을 입력해두었당
$ git config --global credential.helper 'cache --timeout 7200'
'git' 카테고리의 다른 글
Git) SourceTree_remote: Invalid username or password. (0) | 2023.11.16 |
---|---|
Git) init 설정 (0) | 2023.09.27 |
[git] 깃 작성자 이메일 이름 변경 (git rebase author 변경) (0) | 2021.03.26 |
[git] 현재 사용자 확인 (0) | 2021.03.23 |
[git] gitlab ---> github 커밋내용까지 이전 (0) | 2021.03.08 |