I am working on the project remotely through the command line on the machine to which I don't have the admin rights and after running git push origin master I get the below error message:
(gnome-ssh-askpass:29241): Gtk-WARNING **: cannot open display:
My .git/config file has the below contents:
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
fetch = +refs/heads/*:refs/remotes/origin/*
url = https://email@example.com/username/repository.git
remote = origin
merge = refs/heads/master
Initially I was getting the 403 error. When I put the username before the @ sign in the remote url shown in above file and since then, I am facing the Gtk error.
Whenever I try to login to the machine using ssh -X and try to push, I often face the below error:
X11 connection rejected because of wrong authentication.
(gnome-ssh-askpass:31922): Gtk-WARNING **: cannot open display:localhost:10.0
If I try to change the url of the remote box to firstname.lastname@example.org:username/repository.git, then I face different error and it is as below :
ssh: connect to host github.com port 22: Connection timed out
fatal: The remote end hung up unexpectedly
Does anyone have any solution for my issues?