Gitlab repo authentication failed with bamboo

Hi,
I am going to integrate GitLab project repository with bamboo through ssh key based authentication.But when I added the repository and test the connection settings in log it was showing...

[Warning: Permanently added '[127.0.0.1]:57658' (RSA) to the list of known hosts.
BAMBOO-SSH-PROXY: [While connecting to [git@hostname/198.41.85.18:22]: Error while opening SSH session: org.apache.sshd.common.RuntimeSshException: Failed to get the session.]
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.]

I have setup bamboo and gitlab in a same server.
I have tried some commands,

nmap -sS hostname -p 22

Starting Nmap 5.51 ( http://nmap.org ) at 2016-04-04 04:09 CDT
Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn
Nmap done: 1 IP address (0 hosts up) scanned in 3.10 seconds

ssh -v git@hostname
OpenSSH_5.3p1, OpenSSL 1.0.1e-fips 11 Feb 2013
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to hostname [198.41.85.18] port 22.
debug1: connect to address 198.41.85.18 port 22: Connection timed out
ssh: connect to host hostname port 22: Connection timed out

I have telnet gitlab server ip with 22 port and it is working.
I have running this server with a corporate firewall
GitLab version 8.0.3
Bamboo version 7.10
OS CentOS 7
I have setup proxy in gitlab.rb

Can anyone suggest me what to do ? How to resolve this issue??

1 answer

This widget could not be displayed.

198.41.85.18 port 22: Connection timed out

please confirm port on the ssh server

I have confirmed, port 22 is open in iptables. What else I need to confirm?

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked yesterday in Data Center

Hi! I'm Cameron Deatsch, enterprise enthusiast and Head of Server at Atlassian. AMA!

Hey team! I'm Cameron Deatsch, Head of Server at Atlassian. At our European Summit just a few weeks ago, I spoke about the latest regarding our Server and Data center products and o...

19,258 views 4 4
View question

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you