"Bad configuration option" on linux terminal, during bitbucket ssh connection.

erbal

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.

VonC

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) :

  • either the local one:
    git config --local -l (in your repo .git/config)
  • or the global one:
    git config --global -l (in your homedir: ~/.gitconfig)

(I will assume here that the system git config file is correct).

You need to:

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.

edited at
0

Comments

0 comments
Login to comment

Related

From Java

.ssh/config: "Bad configuration option: UseKeychain" on Mac OS Sierra 10.12.6

From Dev

Establishing ssh connection from within RStudio on linux

From Dev

SSH - Connection reset by peer - Linux Host

From Dev

bad configuration option in git

From Dev

Bad configuration option: ServerAliveInterval

From Dev

ssh - Bad configuration option: KeyAlgorithms

From Dev

ssh: connect to host bitbucket.org port 22: Connection timed out fatal

From Dev

Way to avoid ssh connection timeout & freezing of GNOME Terminal

From Dev

Accessing Windows Box from Linux Terminal SSH

From Dev

Mac OS X Lion Terminal SSH connection sharing error

From Dev

How to create an ssh connection Terminal shortcut on Mac OS X?

From Dev

Bad configuration option: ControlPersist while scp with control master?

From Dev

timeout during ssh connection

From Dev

Run a script as root during boot and display in the default linux terminal?

From Dev

terminal hang when lost connection and ssh is on

From Dev

Proxy connection via SSH from one terminal to another

From Dev

ssh closing connection during login for just one particular user

From Dev

broken pipe on ssh during connection

From Dev

Bad configuration option: AUTOCREATE_SERVER_KEY

From Dev

How to use unzip in linux terminal SSH?

From Dev

ssh: keep persistent terminal session with spotty connection

From Dev

PPTP VPN connects via NM but goes down during SSH connection

From Dev

Can't SSH to another rpi from rpi: Bad configuration option: acceptenv

From Dev

Network error: Software caused connection abort during copying on linux

From Dev

terminal closing when ssh connection breaks

From Dev

How to solve Bad Configuration Option: UseDNS?

From Dev

/etc/ssh/sshd_config: line 43: Bad configuration option: StrictHostKeyChecking

From Dev

SSH keeps getting stuck during connection

From Dev

can't log in with my password during ssh connection

Related Related

  1. 1

    .ssh/config: "Bad configuration option: UseKeychain" on Mac OS Sierra 10.12.6

  2. 2

    Establishing ssh connection from within RStudio on linux

  3. 3

    SSH - Connection reset by peer - Linux Host

  4. 4

    bad configuration option in git

  5. 5

    Bad configuration option: ServerAliveInterval

  6. 6

    ssh - Bad configuration option: KeyAlgorithms

  7. 7

    ssh: connect to host bitbucket.org port 22: Connection timed out fatal

  8. 8

    Way to avoid ssh connection timeout & freezing of GNOME Terminal

  9. 9

    Accessing Windows Box from Linux Terminal SSH

  10. 10

    Mac OS X Lion Terminal SSH connection sharing error

  11. 11

    How to create an ssh connection Terminal shortcut on Mac OS X?

  12. 12

    Bad configuration option: ControlPersist while scp with control master?

  13. 13

    timeout during ssh connection

  14. 14

    Run a script as root during boot and display in the default linux terminal?

  15. 15

    terminal hang when lost connection and ssh is on

  16. 16

    Proxy connection via SSH from one terminal to another

  17. 17

    ssh closing connection during login for just one particular user

  18. 18

    broken pipe on ssh during connection

  19. 19

    Bad configuration option: AUTOCREATE_SERVER_KEY

  20. 20

    How to use unzip in linux terminal SSH?

  21. 21

    ssh: keep persistent terminal session with spotty connection

  22. 22

    PPTP VPN connects via NM but goes down during SSH connection

  23. 23

    Can't SSH to another rpi from rpi: Bad configuration option: acceptenv

  24. 24

    Network error: Software caused connection abort during copying on linux

  25. 25

    terminal closing when ssh connection breaks

  26. 26

    How to solve Bad Configuration Option: UseDNS?

  27. 27

    /etc/ssh/sshd_config: line 43: Bad configuration option: StrictHostKeyChecking

  28. 28

    SSH keeps getting stuck during connection

  29. 29

    can't log in with my password during ssh connection

HotTag

Archive