As the title, remote login to the Linux server, execute
git clone https://git.oschina.net/chenjianlong/JRoll2.git
//error
(gnome-ssh-askpass:609): Gtk-WARNING **: cannot open display:
Solution 1:
unset SSH_ASKPASS
Then enter the password
The reason is that the HTTPS protocol is used, and the password is required for each submission. If the GIT command is executed automatically by shell, the script will be interrupted and cannot be executed
Solution 2: Using SSH
Method reference for generating SSH: git on server – generate SSH public key
git clone [email protected]:chenjianlong/JRoll2.git
You only need to confirm the SSH link once
Similar Posts:
- How to Solve Gitlab Error: remote: The project you were looking for could not be found.
- Python calls shell script: oserror: [errno 8] exec format err
- error: RPC failed; curl 18 transfer closed with outstanding read data remaining
- [Solved] Git Error: failed: authentication failed for ‘http: XXXX.git / ”
- How to Solve Java Error: java.util.Arrays$ArrayList cannot be cast to java.util.ArrayList
- [Solved] Git clone Error: fatal: Protocol ‘HTTPS’ is not supported
- JavaScript Uncaught TypeError: Cannot set property ‘innerHTML’ of null”
- jenkins Host key verification failed
- [Solved] Go get fatal: could not read Username for ‘https://code.xxx.org’: terminal prompts disabled
- Error in JS function referencing public page [How to Solve]