ubuntu 17.10 AndroidStudio Git遇到 “fatal: ssh variant 'simple' does not support setting port”
2018-01-28 14:01
477 查看
记录 ubuntu系统中 AndroidStudio上传代码到Git服务器遇到的一个错误 :“fatal: ssh variant 'simple' does not support setting port”。
我上传的URL: ssh://user@192.168.0.251:28416/nlsm/yanchor.git
猛一看也没问题,其实在git 2.16之前确实没问题,之后就不行了,原因就是ip后面的端口,所以请先 git --version 看下自己当前的git客户端版本,如果是2.16的,果断降就对了,我降回了2.14.1就可以了。如果不愿意降版本,就看下这个https://stackoverflow.com/questions/48417505/tortoisegit-ssh-variant-simple-does-not-support-setting-port,如果打不开看这个https://tortoisegit.org/issue/3139,它也介绍了问题造成的原因和解决办法。
git 2.14.1(ubuntu) http://download.csdn.net/download/u011525372/10227975
git-man 2.14.1(ubuntu) http://download.csdn.net/download/u011525372/10227976
我上传的URL: ssh://user@192.168.0.251:28416/nlsm/yanchor.git
猛一看也没问题,其实在git 2.16之前确实没问题,之后就不行了,原因就是ip后面的端口,所以请先 git --version 看下自己当前的git客户端版本,如果是2.16的,果断降就对了,我降回了2.14.1就可以了。如果不愿意降版本,就看下这个https://stackoverflow.com/questions/48417505/tortoisegit-ssh-variant-simple-does-not-support-setting-port,如果打不开看这个https://tortoisegit.org/issue/3139,它也介绍了问题造成的原因和解决办法。
git 2.14.1(ubuntu) http://download.csdn.net/download/u011525372/10227975
git-man 2.14.1(ubuntu) http://download.csdn.net/download/u011525372/10227976
相关文章推荐
- 解决git报ssh variant 'simple' does not support setting port
- git报ssh variant 'simple' does not support setting port解决办法
- git clone时出现ssh: connect to host github.com port 22: Connection timed out fatal: Could not read from
- 遇到从github git clone不下来,报Permission denied (publickey). fatal: Could not read from remote repository.
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- repo sync出现“fatal: '../platform/abi/cpp.git' does not appear to be a git repository”的解决方案
- repo sync出现“fatal: '../platform/abi/cpp.git' does not appear to be a git repository”的解决方案
- Android Studio遇到的问题:Your CPU does not support required features (VT-x or SVM)
- repo sync出现“fatal: '../platform/abi/cpp.git' does not appear to be a git repository”的解决方案
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- 获取Android源码时如何解决【fatal: Unable to look up android.git.kernel.org (port 9418) (Name or service not kn
- android用gdb调试时遇到报错: ERROR: The device does not support the application's targetted CPU ABIs!
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- python3使用套接字遇到TypeError: 'str' does not support the buffer interface如何解决
- repo sync出现“fatal: '../platform/abi/cpp.git' does not appear to be a git repository”的解决方案
- fatal: cannot resume: .git/rebase-apply/final-commit does not exist.
- Python 3中套接字编程中遇到TypeError: 'str' does not support the buffer interface的解决办法
- git remote add origin 报错connect to host gitub.com port 22: Connection refused fatal: Could not read