I would like to start to use bitbucket, I've made the tutorial's steps to connect to their server. link
Bit something always wrong with the config file. I use ubuntu 12.10.
root@peter-VPCEH1M1E:/home/peter/Dropbox/C++/Qt/sql/.git# git push [email protected]:erbal/sql.git
/root/.ssh/config: line 1: Bad configuration option: [core]
/root/.ssh/config: line 2: Bad configuration option: repositoryformatversion
/root/.ssh/config: line 3: Bad configuration option: filemode
/root/.ssh/config: line 4: Bad configuration option: bare
/root/.ssh/config: line 5: Bad configuration option: logallrefupdates
/root/.ssh/config: line 6: Bad configuration option: ignorecase
/root/.ssh/config: line 7: Bad configuration option: [remote
/root/.ssh/config: line 8: Bad configuration option: fetch
/root/.ssh/config: line 9: Bad configuration option: url
/root/.ssh/config: line 10: Bad configuration option: [branch
/root/.ssh/config: line 11: Bad configuration option: remote
/root/.ssh/config: line 12: Bad configuration option: merge
/root/.ssh/config: terminating, 12 bad configuration optionsfatal: The remote end hung up unexpectedly
My config file looks like the example from the tutorial, with my ssh url.
The configuration content file in question is not the ~/.ssh/config
one.
It is the git config (which somehow got copied over the ~/.ssh/config
) :
git config --local -l
(in your repo .git/config
)git config --global -l
(in your homedir: ~/.gitconfig
)(I will assume here that the system git config file is correct).
You need to:
\r\n
instead of \n
).~/.ssh/config
with the content described in the bitbucket tutorial about multiple ssh keys.An ~/.ssh/config
file should look like:
Host workdid
HostName bitbucket.org
IdentityFile ~/.ssh/workdid
Host personalid
HostName bitbucket.org
IdentityFile ~/.ssh/personalid
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments