본문 바로가기
Linux

Centos8 git push WARNING message 제거

by 느긋한모모 2024. 3. 14.

## centos 터미널

 

# git commit -m "test"

# git push // 밑에처럼 오류 메세지 나옴

(gnome-ssh-askpass:4765): Gtk-WARNING **: 09:18:45.003: cannot open display:
error: unable to read askpass response from '/usr/libexec/openssh/gnome-ssh-askpass'
Username for 'https://github.com':

 

# vi ~/.bashrc
.bashrc에 추가

   unset SSH_ASKPASS


# source ~/.bashrc

동기화

 

# git push
Username for 'https://github.com': [자기 아이디]
Password for 'https://impelfin@github.com': [자신의 깃토큰]
// pw를 서버에서 넣으면 안될 때가 있어서 저는 토큰을 받아서 토큰을 대신 입력합니다.

 

# rm -rf test
# git add .
# git commit -m "remove test"
# git push

--> 확인

'Linux' 카테고리의 다른 글

리눅스 10일차(1) - Shell Script  (2) 2024.03.15
Centos8 chrhonyd 설정  (0) 2024.03.14
리눅스 Centos8 자바 설치  (0) 2024.03.14
리눅스 8일차 (라이브러리 사용 && make 사용)  (0) 2024.03.14
리눅스 3일차  (7) 2024.03.12