I'm trying to connect to ubuntu 16.04 local development server from a different ip through ssh, the server has gitlab and has a public hostname.
example.com/2222. My gitlab ssh port is
Host server ProxyCommand ssh -W example.com:2222 username@server IdentityFile ~/.ssh/id_rsa
Now to clone
git clone ssh://server:9409/username/test.git
Cloning into 'test'... Bad owner or permissions on /.ssh/config fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
-W needed in my case? I still don't know what
ssh -W does
chmod 600 now I get
ssh_exchange_identification: Connection closed by remote host
I still think my config file has a problem somewhere