Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not ssh to gitlab.com #1071

Closed
uboot opened this issue Nov 1, 2016 · 4 comments
Closed

Can not ssh to gitlab.com #1071

uboot opened this issue Nov 1, 2016 · 4 comments

Comments

@uboot
Copy link

uboot commented Nov 1, 2016

I can not connect to gitlab.com via SSH from the workspace console. As a consequence I can not clone gitlab repositories by their SSH address.

Reproduction Steps:

  • Create a VCS SSH key for gitlab.com in Codenvy (via "Profile" -> "Preferences", as explained in the documentation). Add the public key to your gitlab account.

  • In the Codenvy console enter:
    > ssh -v git@gitlab.com

Expected behavior:
SSH connection should at least be established (even if the command above fails at a later stage). Cf. connecting to github.com.

Observed behavior:

OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to gitlab.com [104.210.2.228] port 22.
debug1: connect to address 104.210.2.228 port 22: Connection timed out
ssh: connect to host gitlab.com port 22: Connection timed out

Codenvy version: 5.0.0-M6 rev 219dac8
OS and version: hosted on codenvy.io

@TylerJewell
Copy link
Contributor

@JamesDrummond - please take a look.

@ghost
Copy link

ghost commented Nov 2, 2016

@uboot we restrict outgoing traffic from workspaces at the moment.

I'll ask admins to whitelist gitlab.com

@ghost
Copy link

ghost commented Nov 3, 2016

@uboot can you please give it a try again? After gitlab.com has been whitelisted, it works for me.

@uboot
Copy link
Author

uboot commented Nov 4, 2016

Everthing works fine if I create the SSH key on the CLI and import it via "Profile" -> "Preferences" -> "VCS" -> "Upload Key". If I create the key with "Generate Key", cloning a Gitlab-Repo from the SSH URL fails. However, this might be the same problem as #573 and or #491. Thanks a lot!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants