Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Gitlab repo authentication failed with bamboo

Deleted user April 4, 2016

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

0 votes
Piyush_Wadhwani April 4, 2016

198.41.85.18 port 22: Connection timed out

please confirm port on the ssh server

Deleted user April 5, 2016

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
TAGS
AUG Leaders

Atlassian Community Events