All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

ssh hangs for git push

I have setup a git server on a remote machine. I can connect to it through ssh with no problem and also git pull from it. I can however not git push to it and attempting to do so results in the ...
0
votes
0answers
23 views

Can I use a SSH key with git directly, without depending on ssh-agent?

I have a SSH key to allow me to push to a certain repository. This works - however, I don't want to leave the SSH key with ssh-agent (on other computers) and would rather have a portable script ...
0
votes
0answers
7 views

RSA handling different between Container and Ubuntu

I have two Ubuntu environments (one Container and one machine), which handle the same rsa private key pretty differently. The first noticable change I see in the logs, is that they identify the type ...
1
vote
1answer
43 views

Add an SSH key on boot

I have a Git repo that is authenticated with an SSH key - the key is not the standard id_rsa. I can run: eval $(ssh-agent -s) ssh-add /home/forge/.ssh/otherkey Then git pull origin master This ...
0
votes
1answer
36 views

Bulk login attempts on port 22 shutdown our SSH git server access, HTTPs still works though

Recently we have been seeing a lot of connections from IPs in to our public git server. When this happens, our devs are unable to commit via SSH as the server is very, very slow and I am unable to ...
0
votes
0answers
37 views

Where to place machine's system-wide private ssh deploy key?

I'm following the directions at https://developer.github.com/enterprise/2.16/v3/guides/managing-deploy-keys/#deploy-keys , which includes Run the ssh-keygen procedure on your server to generate a ...
0
votes
2answers
88 views

SSH keys that can be used only in one machine

My requirement is simple. I have generated a SSH key-pair (Public and Private) on a server say "A". Now I have uploaded my Public SSH key in AWS IAM and have generated a SSH key ID to connect to a ...
1
vote
1answer
115 views

git ssh to ipv6 address on non-standard port

I am trying to access a git respository at a IPv6 address that has a SSH server listening on port 1111(for example). Access is controlled by SSH key and I can open a SSH session on the gitserver ...
0
votes
0answers
41 views

Why does git clone prompt for 'passphrase for key' when I SSH to my machine as my user?

I am running Ubuntu 16.04. When I am logged in normally and I run a git clone it works without issues - wesley@localhost:~/Temp$ git clone ssh://git@xyz.pqr.com:5678/abc/myproject.git Cloning into '...
1
vote
0answers
114 views

Debian 9 - sign_and_send_pubkey

I decided to start switching my machines over from Ubuntu to pure Debian but I'm currently stuck at a hurdle with configuring my git repositories related to ssh. I created a new key and added it to ...
-1
votes
1answer
60 views

Git Server Binding Directory To Port

I have a git server i have stood up. It is a basic one with all the remote repositories stored under /mygit/repo/ I can push and pull and all the other git stuff using this ssh syntax ssh:/...
0
votes
1answer
2k views

Yet another `sign_and_send_pubkey: signing failed: agent refused operation`

Here’s a Yet Another Question about the clash between ssh and gnome-keyring-daemon, since after spending hours and hours on the Internet I finally gave up. Environment OS: openSUSE 15.0 DE: XFCE ...
3
votes
3answers
458 views

Block git user from login, but allow the user to still function as a git repo?

I have setup a git server, by creating a user "git" and then creating a local repository in the git user's directory. The git server works great, I can pull, push, etc. I allowed users to interact ...
1
vote
0answers
223 views

How to ssh-add elliptic curve key?

I'm trying to use a newly generated elliptic curve key with git version control for GitLab. I am using a Xubuntu 16.04. My OpenSSH version is: OpenSSH_7.2p2 Ubuntu-4ubuntu2.4, OpenSSL 1.0.2g 1 Mar ...
2
votes
2answers
128 views

Is it possible to redirect ssh traffic (not forward), How?

I am aware that it is possible to forward SSH from server A to server B by creating a tunnel. What I am asking for is rather the red alternative on the schema above. Can this scenario be implemented: ...
1
vote
1answer
359 views

Git functions requiring SSH broken on Cygwin

On Cygwin, running git clone git@..., git pull or git push, where the remote is an SSH repository address, fails. Below is output of running git clone: Cloning into 'iko-app-rocket'... fatal: cannot ...
2
votes
2answers
4k views

Git asks for password when using SSH URL, ssh does not

I have three servers (two ubuntu 16.04, one mac mini) and several macbooks. One server ubuntu is for gitlab and the other is an internal site server. The mac mini is running a CI. Recently the ...
1
vote
1answer
336 views

Keychain ssh-agent overriding specified SSH key

I use GitLab repositories with two users (myself and a test user). For my test repository I have this in .git/config: [core] sshCommand = ssh -i /test-project/test_id_rsa [remote "origin"] ...
1
vote
1answer
361 views

ssh connection from OS X client problem

I'm trying to set up an ssh connection from an OS X box provided by Travis CI to git-over-ssh at github.com. Nothing fancy: my script takes a base64-encoded passwordless private key, decodes it and ...
1
vote
0answers
49 views

What is the recommended way to retrieve host and repository from git URL

Think of a utility like gerrit-sh which uses git config options to determine where the gerrit host is located. The context for my question is this function get_repo_remote_config(). So I want to ...
4
votes
3answers
1k views

How to avoid using 'ssh-add ~/.ssh/id_rsa' for every push to a github repo?

I have to repeatedly enter the following terminal commands in order to be able to push to a remote github repository. If I push to github, and then code some more for the next few hours before pushing ...
1
vote
1answer
642 views

Providing git remote with SSH arguments?

For some reason, my console hangs if I try to run any ssh command. For example: ssh user@server date will hang, ssh -f user@server date works. If I want to include the -f argument in a git remote ...
1
vote
3answers
2k views

How to force User in ssh config file

I'm trying to override the User for certain hosts. I came across this gist and though I could improve on it by removing the step of creating a new Host alias for each domain-account needed. ~/.ssh/...
0
votes
1answer
68 views

Re- Setup git-svn repository in Mac after a cleanup

I need to re- set up a password protected, project repository in my Mac OS X after it was wiped due to hardware issues. I followed these steps Installed the Xcode Command Line version Installed ...
1
vote
0answers
286 views

git ssh alias not working unless I add the key to ssh-agent (OSX)

I added a ssh alias to use a different key-pair for a certain domain. The key does not have a passphrase. I had followed the directions at https://confluence.atlassian.com/bitbucket/configure-...
1
vote
1answer
94 views

Sudo-like utility for ssh, or at least git in particular?

I'd like to keep my keys secure, but also not have to enter a passphrase on every single git invocation, when I want to run several commands in quick succession. I've researched this, and found that ...
1
vote
0answers
155 views

How to store different username-password key pair in SSH in GIT Bash?

Current Machine: Git Bash on Windows. Trying to connect to a Mac through SSH. When I execute the below command: ssh aisong@10.209.161.253 "ls" Password: <myPassword> Output (works as desired)...
2
votes
0answers
139 views

Git Server with several repos

I'm setting up a Git server, and there will be three different groups working on different projects iOS, WebDevel, Android. I need to do it in a secure/safe way. Meanwhile, I don't want iOS ...
1
vote
2answers
2k views

git not using global config file or public key

I've setup a global git username and password while logged in as root on my Fedora server with the following commands: git config --global user.email "[my email]" git config --global user.name "[my ...
1
vote
2answers
434 views

how to temporarily configure SSH proxy server

I'm often in a network that for some silly reason blocks TCP destination port 22. It doesn't seem practical to use a full VPN just to overcome this issue, so I'm sometimes using SSH proxy (via ...
3
votes
3answers
4k views

Problem with sudoing ssh - `sudo ssh …` fails

I am trying to use git salt ssh access (which runs with root). The error is always: Permission denied (publickey). I managed to reproduce the problem, simulating what salt may be doing, by ...
0
votes
1answer
550 views

ssh/git does not use GUI to ask for password after upgrade to to Ubuntu 16.04

I used to run Ubuntu 14.04 on my computer. Whenever I used ssh keys to log in to various servers, I used to get a GUI pop-up dialog asking me for the password for my key. After entering the password ...
17
votes
1answer
5k views

Remember password for ssh key for some time

I created ssh key. I use it to connect with git repositories. When creating the key, I noticed the prompt that said the password should be hard to guess. Therefore, I came up with 40+ characters-long ...
4
votes
0answers
713 views

git push/pull with ssh key

I have a 'git --bare' repo on a linux machine. I wish to allow another user from a different machine to push/pull to it. I have their ssh key. Is there some way I can allow them to execute the ...
5
votes
3answers
1k views

Forward ssh for Git user to Git server

It is surprisingly difficult to find information on this simple problem. Like many people we run a gitlabs/gogs server on a remote instance. Currently it listens on port 10022. We also run ssh on ...
13
votes
2answers
9k views

“X11 forwarding request failed” when connecting to github.com

I'm getting a bizarre error message while using git: $ git clone git@github.com:Itseez/opencv.git Cloning into 'opencv' Warning: Permanently added the RSA host key for IP address '192.30.252.128' to ...
3
votes
2answers
477 views

Git config forwarding

I don't know if this even possible or not. I was wondering if there is any way like SSH Agent forwarding by which we can forward our .gitconfig on the remote server, and git automatically picks the ...
1
vote
1answer
3k views

Why can't I use ssh?

The problem seems to occur straight from the time I have installed Ubuntu 14.04 LTS. I first realized this problem when I was trying to connect with my hosting at HostGator. I neglected and thought ...
0
votes
1answer
2k views

ssh asking for passphrase that doesn't have passphrase

I'm trying to build docker image with this docker file and I need to clone some private repositories from bitbucket. FROM ubuntu RUN chsh -s /bin/bash RUN apt-get update RUN apt-get install -y git ...
1
vote
1answer
429 views

Can't push git updates & run Unix commands when connecting via SSH

I have installed java 8 on my bluehost VPS. I have followed http://tecadmin.net/install-java-8-on-centos-rhel-and-fedora/ instructions . In order to add directories to PATH variable I have added ...
0
votes
1answer
43 views

I'm trying to deploy with git to a semi-managed vps, need to write a script to change owners

I'm trying to deploy my sites on my company's semi-managed vps server using this tutorial: https://www.digitalocean.com/community/tutorials/how-to-set-up-automatic-deployment-with-git-with-a-vps It ...
2
votes
1answer
1k views

ssh connection to gitlab.com fails behind home router, but is fine when at workplace. However, Github and Bitbucket over ssh are fine at home

I am trying to connect to my repository on gitlab.com. It used to work on my laptop both when I was at home and when I was at work. I was using ssh and had added the ssh keys to gitlab. Suddenly ...
3
votes
0answers
962 views

Restrict SSH access to git usage only

Using: ssh-keygen -O force-command="/bin/restricted-command", or command="/bin/restricted-command" at the beginning of an authorized_keys line one can force a key-based SSH connection to execute ...
1
vote
1answer
25k views

Can't connect to a server via SSH (with my PC only)

For some days I'm experiencing issues with SSH on my machine (I guess after having installed some softs that I don't remember... (sic)) It's very problematic as I use Git to work on some code ...
2
votes
1answer
208 views

Can ssh (agent) work with two separate identities? [duplicate]

I use an Ubuntu 14.10 distribution, and two private keys, one encrypted (~/.ssh/E.key), and one not encrypted (~/.ssh/NE.key), which I use for accessing two github repositories, respectively, repoE ...
2
votes
2answers
86 views

Safe way of letting users upload their public keys

I need to let untrusted users, strangers, upload their id_rsa.pub to my server and onto a given user's authorized_keys (user git in my case). What is the safest way of achieving that, without having ...
2
votes
1answer
43 views

Repository for Family Pictures [closed]

I have a Debian computer and a MacBook Air. On Debian I created a repository: mkdir -p /repository/git/2014.git cd /repository/git/2014.git git init --bare --shared On the MacBook I then typed: cd /...
1
vote
1answer
826 views

How to check if SSH compression is enabled?

I am experiencing severe slowdown in Git checkouts from VM. I've been told that one of the reasons may be SSH compression (either enabled or disabled). How to check that is the state of compression ...
4
votes
2answers
4k views

SSH Agent Forwarding on server

I'm struggling with the concept of SSH Agent Forwarding. This is what I've done so far: Create default identity local (ssh-keygen) Install the public key on bitbucket Now I want to connect to a ...
4
votes
1answer
3k views

sudo -u git clone

I'm on Ubuntu server 14.04. I am using apache web server which runs as the www-data. I need to do git clone from a script (a web hook). This script will run with www-data user privilages. Running ...