ssh-agent

Vagrant shell and ansible provisioning fail with bitbucket

左心房为你撑大大i 提交于 2019-12-24 03:24:06
问题 I can't force vagrant provisioning to clone private git repos from bitbucket. I have vagrant 1.6.3. Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| config.ssh.private_key_path = "~/.vagrant.d/insecure_private_key" config.ssh.forward_agent = true config.vm.define "abox" do |abox| abox.vm.box = "ubuntu/trusty32" abox.vm.hostname = "abox" abox.ssh.forward_agent = true abox.vm.network "private_network", ip: "192.168.50.4" abox.vm.network "forwarded_port", guest: 22, host: 2233 abox.vm

ssh-add Could not open a connection to your authentication agent

我们两清 提交于 2019-12-22 08:11:40
问题 I'm having a little issue with my ssh-agent. Indeed I can't make it work and I don't understand why. This is the console's output : I'm sure that ssh agent is running. For your information I'm on Windows 7 and I tried to run the gitbash with administrator permissions, but that did not changed anything. Also everything worked fine until yesterday, and I did not changed anything. Do you guys have any ideas why ? 回答1: Simply upgrade to the latest git for windows (with a more recent bash, while

Github - can't connect via ssh from time to time

只愿长相守 提交于 2019-12-21 17:29:00
问题 Situation I'm using linux ( mint mate 17.2 ), when push to github via ssh, from time to time connection fails, usually it resume after reboot computer & network. After several days, it might become bad again, quite confusing. Push via http never has such issue, but it requires password which is not convenient. Debug info When push via ssh: debug1: Connecting to github.com [192.30.252.129] port 22. It stuck at the above line. Then after a long wait, get timeout tip: debug1: connect to address

Unable to point to ssh keys in ~/.ssh on Jenkins host

不打扰是莪最后的温柔 提交于 2019-12-21 04:04:52
问题 I've installed SSH Agent Plugin to pull Git repository using SSH authentication. I'd like to use SSH keys located in system file (from the Jenkins master ~/.ssh option). It's screenshot taken from official plugin's page: Unfortunately I don't see this option. I can select only "Enter directly". Please check out my screenshot. Did I configure something wrong? 回答1: This is a reletively recent change, explained in security advisory 440 : https://jenkins.io/security/advisory/2018-06-25/ SECURITY

Capistrano deployment from Windows using forward_agent option: “Error reading response length from authentication socket.”

你离开我真会死。 提交于 2019-12-21 03:42:31
问题 I'm trying to deploy a project using Capistrano. My development machine is running Windows 7; the server I'm deploying onto is Linux. In the deploy.rb script, the following is set: ssh_options[:forward_agent] = true The Capistrano script starts off by running a git command locally, at which point I'm prompted for the passphrase for my SSH key: * executing `deploy:update_code' executing locally: "git ls-remote git@github.com:pathto/gitproject.git develop" Enter passphrase for key '/c/Users/Sam

How is SSH_AUTH_SOCK setup and used by ssh-agent?

巧了我就是萌 提交于 2019-12-21 03:16:13
问题 I have been able to setup the sharing of ssh-agent for public-key authentication after reading https://superuser.com/a/230872/301446 The environment file thus generated has the following contents: SSH_AUTH_SOCK=/tmp/ssh-OwqeSuxmEsQN/agent.4744; export SSH_AUTH_SOCK; SSH_AGENT_PID=8960; export SSH_AGENT_PID; #echo Agent pid 8960; And agent.4744 has: !<socket >24194 s 07DF88C6-E9997283-4C471010-2FE57D77 Would you know how this socket is used by ssh-agent? I can understand that it's used by ssh

Ansible SSH forwarding doesn't seem to work with Vagrant

寵の児 提交于 2019-12-20 08:41:19
问题 OK, strange question. I have SSH forwarding working with Vagrant. But I'm trying to get it working when using Ansible as a Vagrant provisioner. I found out exactly what Ansible is executing, and tried it myself from the command line, sure enough, it fails there too. [/common/picsolve-ansible/u12.04%]ssh -o HostName=127.0.0.1 \ -o User=vagrant -o Port=2222 -o UserKnownHostsFile=/dev/null \ -o StrictHostKeyChecking=no -o PasswordAuthentication=no \ -o IdentityFile=/Users/bryanhunt/.vagrant.d

Cannot push to git repository - permission denied

ε祈祈猫儿з 提交于 2019-12-18 10:04:27
问题 I have a following problem: $ git push -u origin master Permission denied (publickey). fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists. I have already checked the connection doing this: $ ssh -vT git@github.com and output looks good, I was correctly authenticated. While checking further, I noticed that: $ ssh-add -l The agent has no identities. I have tried to run ssh-agent, but nothing changed: $ ssh-agent SSH_AUTH

Github Private Team Separate SSH Keys

爱⌒轻易说出口 提交于 2019-12-17 19:56:23
问题 I have an personal account on Github. So do a bunch of coworkers. We created a private team on Github for my team. We'd like to restrict access to the private repos to company laptops . One way to do this is to limit to ssh keys for the devices. However, I am not sure if GitHub allows Key-sandboxing for private projects. In short, can I set up a private team on GitHub (and associate SSH keys) such that I cannot, by mistake, access the code using my personal laptop? (This is not a security

How to make ssh-add read passphrase from a file?

微笑、不失礼 提交于 2019-12-17 17:40:19
问题 I am trying to add key in ssh-agent and want ssh-add read password from the file using. How its possible? How do I automate this process from the shell script? 回答1: Depending on your distribution and on the version of ssh-add you may be able or not to use the -p option of ssh-add that reads the passphrase from stdin in this way: cat passfile | ssh-add -p keyfile If this is not working you can use Expect, a Unix tool to make interactive applications non-interactive. You'll have to install it