Can not clone a git repository over ssh (Bad configuration option) - Ask Ubuntu


after upgrading ubuntu 16.10, can not clone repositories, served in gitlab, on ssh. if use

git clone git@gitlab.com:user_name/repo_name.git 

command, this:

~/.ssh/config: line 8: bad configuration option: identityfile ~/.ssh/config: terminating, 1 bad configuration options fatal: not read remote repository.  please make sure have correct access rights , repository exists. 

if comment identityfile line , run same command, this:

 debug1: reading configuration data ~/.ssh/config  debug1: reading configuration data /etc/ssh/ssh_config  debug1: /etc/ssh/ssh_config line 19: applying options *  /etc/ssh/ssh_config: line 55: bad configuration option: gssapiauthentication  /etc/ssh/ssh_config: line 56: bad configuration option: gssapidelegatecredentials  /etc/ssh/ssh_config: terminating, 2 bad configuration options  fatal: not read remote repository.   please make sure have correct access rights , repository exists. 

i checked whether gssapiauthentication , gssapidelegatecredentials options default openssh-client in ubuntu 16.10 in order make sure error not related tweaking, turned out these options default. in fact, not tweak in /etc/ssh/ssh_config file.

these uncommented options in /etc/ssh/ssh_config file:

host * sendenv lang lc_* hashknownhosts yes gssapiauthentication yes gssapidelegatecredentials no 

if command identityfile, gssapiauthentication, , gssapidelegatecredentials options, can clone repository on ssh.

here ~/.ssh/config file:

host gitlab     hostname gitlab.com     rsaauthentication yes     identityfile ~/.ssh/id_rsa     user user_name 

openssh_client version:

 lc_all=c apt-cache policy openssh-client  openssh-client:    installed: 1:7.3p1-1    candidate: 1:7.3p1-1    version table:   *** 1:7.3p1-1 500     500 http://archive.ubuntu.com/ubuntu yakkety/main amd64 packages     100 /var/lib/dpkg/status 

how can solve problem? cause problem? source of problem gitlab?

thank in advance.

ps: native language not english.

edit

although @zwets' answer did not solve issue, gave me hint:

could character encoding issue?

so run command this:

lc_all=c git clone git@gitlab.com:user_name/repo_name.git 

and worked. workaround shows there bug in openssh-client package in ubuntu 16.10. open bug report.

edit2

i reported bug in launchpad , link of report: https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/1638338

output of locale command:

locale lang=tr_tr.utf-8 language=tr:en lc_ctype="tr_tr.utf-8" lc_numeric=tr_tr.utf-8 lc_time=tr_tr.utf-8 lc_collate="tr_tr.utf-8" lc_monetary=tr_tr.utf-8 lc_messages="tr_tr.utf-8" lc_paper=tr_tr.utf-8 lc_name=tr_tr.utf-8 lc_address=tr_tr.utf-8 lc_telephone=tr_tr.utf-8 lc_measurement=tr_tr.utf-8 lc_identification=tr_tr.utf-8 lc_all= 

output of sed -n 8p ~/.ssh/config | od -t d1 command:

0000000    9   85  115  101  114   32  110  117  109   97  110  100   10 0000015 

edit3

output of file ~/.ssh/config

/home/numand/.ssh/config: ascii text 

iconv -t ascii -o /dev/null ~/.ssh/config command returns nothing.


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User