Questions tagged [github]

Github is an online service for using git repositories to enable social and collaborative coding.

192 questions
46
votes
4 answers

Using Same SSH Private Key Across Multiple Machines

I've got a Github repo I want to access from two different Linux machines. For the first machine, I followed Github's instructions for generating SSH keys, and added the resulting public key to Github. This client works fine. For the second…
Yarin
  • 1,316
  • 8
  • 19
  • 31
20
votes
4 answers

Publishing id_rsa.pub for easier setup of new environments?

To make setting up passwordless SSH easier on new machines and environments, is there any reason why the id_rsa.pub file (just the public half of the key pair) could not be published somewhere on the web? For example in a dotfiles GitHub…
DouglasDD
  • 442
  • 3
  • 11
20
votes
5 answers

Mirror github to Gitlab

In a local gitlab I created a copy of project nova (https://github.com/openstack/nova). How do I keep the local nova repo in sync with github, updating maybe once per hour or per day? I would like a solution similar to what is described here for…
user186107
  • 197
  • 1
  • 1
  • 4
16
votes
8 answers

Extract repository name from GitHub url in bash

Given ANY GitHub repository url string like: git://github.com/some-user/my-repo.git or git@github.com:some-user/my-repo.git or https://github.com/some-user/my-repo.git What is the best way in bash to extract the repository name my-repo from any…
Justin
  • 5,008
  • 19
  • 58
  • 82
14
votes
3 answers

How can I get Jenkins to execute a script that it pulled from Git?

I am using Jenkins to trigger and manage a series of import jobs. I want to put my import script in Github, and when Jenkins builds the job, it should (a) pull that version controlled script out of Github and (b) run the script. The problem that…
Affable Geek
  • 241
  • 1
  • 2
  • 6
14
votes
2 answers

Multiple SSH private keys for the same host

How can I store 2 different private SSH keys for the same host? I have tried 2 entries in /etc/ssh/ssh_config for the same host with the different keys, and I've also tried to put both keys in the same file and referencing it from one hosts setting,…
Sencha
  • 303
  • 2
  • 5
9
votes
2 answers

How to run an OVA + OVF appliance inside of AWS EC2?

GitHub Enterprise ships as an Open Virtualisation Appliance and File; it's intended to be dropped into existing virtualization setup like VMWare, VirtualBox, etc. I'd like to run it inside of the AWS EC2 cloud (Github doesn't provide an AMI…
Peter Mounce
  • 1,243
  • 4
  • 16
  • 28
8
votes
1 answer

kex_exchange_identification: Connection closed by remote host ... How do I resolve this error

emil@DESKTOP-1I1B1NM:~$ git clone git@github.com:EmilYoung2004/git_test.git Cloning into 'git_test'... kex_exchange_identification: Connection closed by remote host fatal: Could not read from remote repository Please make sure you have the correct…
emil young
  • 81
  • 1
  • 2
7
votes
1 answer

How do I get notified on a failed deployment to azure?

I have a project hosted in Github that is being continuously deployed to Azure whenever a developer checks in any code. (this deployment is for a dev server, not prod). In the case of a failed deployment, how can I get the failure log emailed to me…
CleverPatrick
  • 327
  • 4
  • 12
7
votes
1 answer

Unknown option git config --local reported by Jenkins

I asked the same question on stack overflow but I only got 5 views, I think this is a better forum for this question. I'm setting up CI for a C# project hosted on github in a private repo. Git is installed on master CentOS machine, MSBuild on slave…
user3043457
  • 173
  • 1
  • 3
7
votes
1 answer

RSA key, github keeps asking for my password

Okay folks, noob RSA question here. I have a production server, and I've generated an rsa key there. I've then taken the public key (id_rsa.pub) and given that to github, as a deploy key I believe. What I'm trying to do is automate a deployment…
thekevinscott
  • 185
  • 1
  • 7
6
votes
3 answers

are github`s IP Addresses changed?

I had an issue today where my deployment on my application servers couldn't be completed due to connection problems with github. I noticed that when I perform a DNS lookup of github.com using google DNS servers i get the "correct/old" ip addresses…
giomanda
  • 1,644
  • 4
  • 20
  • 30
6
votes
2 answers

How can I get "mirrored from" on a GitHub repo?

I noticed that https://github.com/apache/ant says "mirrored from git://git.apache.org/ant.git" (with a link) and I'd like to do the same. https://exyr.org/2011/git-mirrors/ seems like a good write up of the general technique (basically a cron job),…
Philip Durbin
  • 1,541
  • 2
  • 15
  • 24
5
votes
3 answers

Mirror github to Cloud Source Repositories

Can't connect for 3 days already, saing 'Failed to connect repositories' All access already granted and i'm repository owner Perhaps you know how to deal with that EDIT: Bitbucked connected without any problem Thanks in advanced
G.F.
  • 151
  • 4
5
votes
2 answers

How to install puppet module from GitHub?

I've installed camptocamp/nagios from Puppet Forge, but seems it has dependencies to puppet-apache_c2c which is published on GitHub. I've installed nagios module as suggested: puppet module install camptocamp-nagios However how do I install missing…
kenorb
  • 5,943
  • 1
  • 44
  • 53
1
2 3
12 13