using the git client on a headless linux server -
how force git-client use console/terminal only. when ssh remote/headless linux computer , try run:
git clone https://myname@bitbucket.org/xxx/xxx.git
git complains , gives me error: (gnome-ssh-askpass:2769): gtk-warning **: cannot open display:
i dont want use graphical interface nor ssh -x. want configure git-client use terminal only.
im using centos , got git-client yum install git.
you can disable gnome-ssh-askpass in current session unsetting ssh_askpass environment variable:
unset ssh_askpass you add in .bashrc or .profile conditional check whether user logged in using ssh. like:
[ -n "$ssh_connection" ] && unset ssh_askpass btw, someone else has complained git's behavior of invoking ssh_askpass program blindly without determining if gui session or not. if read full thread, explain not possible use display environment variable detect this. there no mention of whether patch accepted or not.
Comments
Post a Comment