All Questions

Tagged with
Filter by
Sorted by
Tagged with
0 votes
1 answer
84 views

Automatically add ssh key based on directory I'm in

I have two GitHub accounts. One for personal use, and another for business. Each is set up with its own SSH key gh_personal and gh_business inside ~/.ssh. I have a personal project that sits in ~/code/...
J86's user avatar
  • 373
1 vote
0 answers
121 views

ssh hanging when adding -T parameter with specific router

I'm having a very strange problem. From a couple of days I'm having problems with git, ssh and vpn but only when using amazon eero router. Using my smartphone hotspot or even just connecting directly ...
Skato's user avatar
  • 11
0 votes
1 answer
54 views

Unable to clone using git in Linux Mint using my custom key

In my pc I setup a file named ~/job/ssh/config Host bitbucket HostName bitbucket.org IdentityFile ~/job/ssh/rsa_key user git IdentitiesOnly yes and in my ~/.ssh/config ~/.ssh/config Include /...
Dimitrios Desyllas's user avatar
1 vote
0 answers
52 views

Older version of git sporadically finds bad RSA host keys in known_hosts

I'm using an older version of git (2.8) on an older box (RHEL6), and I’m noticing some odd behavior. When the recent github RSA key exposure incident first happened and I did a git pull, I saw error ...
John Gordon's user avatar
1 vote
1 answer
159 views

ssh and git setup

I am attempting to setup a private git server on my local network and I cannot for the life of me figure out what I am doing wrong. I can't seem to get ssh authentication via private key working for ...
ExecutionByFork's user avatar
0 votes
0 answers
106 views

Which SSH setting takes precedence with Git?

Since I am sharing a login on a Alma Linux server with some colleagues, I was trying to better understand the precedence different settings take. We mainly use the server to run time-consuming Python ...
winkmal's user avatar
  • 101
1 vote
0 answers
1k views

Unable to git pull with ssh, even with properly configured ssh key

Long short story, when I try to git pull, the following error is showing : $ git pull key_from_blob: remaining bytes in key blob 36 key_to_blob: unsupported key type 9 Permission denied (publickey). ...
Kyrela's user avatar
  • 41
1 vote
2 answers
4k views

How to disable Host Key Checking check on git over ssh?

When I want to execute git clone [email protected]:Company/Repo I see this message for the first time after installing a new linux instance: Cloning into 'Repo'... The authenticity of host 'github.com (...
Saeed Neamati's user avatar
0 votes
0 answers
1k views

Unable to push to SSH Git remote: remote unpack failed

I'm working on setting up a Git repo on my homelab network. I have ssh: working for clone, but I can't push - when I git push --set-upstream origin master I get the message Enumerating objects: 7, ...
Darwin von Corax's user avatar
5 votes
3 answers
5k views

Automate git pull with ssh authentication via a script (non-interactive)

I have a bunch of raspberry pis running Ubuntu 20.04 server, that I wish to update automatically via Git, non-interactively. The script does the following: eval "$(ssh-agent -s)" ; ssh-add /...
run_the_race's user avatar
3 votes
0 answers
833 views

Unable to generate ecdsa-sk key

Suddenly ssh stopeed working on my Ubuntu 20.04 installation. My openssh installation is: OpenSSH_8.8p1, OpenSSL 1.1.1m 14 Dec 2021 When I execute the ssh command to connect to a remote machine it ...
AngelaBR's user avatar
2 votes
3 answers
3k views

Stop command in ssh session without exiting ssh

I have an ssh session and I'm running a script.  I want to terminate the script without exiting the ssh session.  If I run the script in a local PC, I press Ctrl+C and the script stops, while if I ...
Jepessen's user avatar
  • 129
0 votes
1 answer
3k views

Using SSH Git: key lost after system restart?

I am setting up Git usage on Raspbian. This worked OK: cd .ssh ssh-keygen -t rsa -b 4096 -C "[email protected]" eval $(ssh-agent -s) ssh-add ./id_rsa_rpi After I created the keys ...
Danijel's user avatar
  • 188
4 votes
2 answers
13k views

ssh in fedora 33 error sign_and_send_pubkey: no mutual signature supported

I tried to clone a git repository after a migration from centos to fedora 33, then I got this error: git clone [email protected]:abc/myproject.git Cloning into 'myproject'... sign_and_send_pubkey:...
apolinux's user avatar
  • 221
0 votes
1 answer
57 views

Failed attempt to expect and send

I'm trying to write a script which git clone. my script: git clone ssh://[email protected]/myproject.git expect "Enter passphrase for key..." send "myPassword" read -p "enter...&...
discCard's user avatar
  • 101
0 votes
0 answers
412 views

Slow hostname resolution for SSH(git)

Strangest thing. After upgrading to Fedora 33, the git fetch, push and pull commands are SLOW. I've been able to get a bit of trace and debug info using the following command: GIT_SSH_COMMAND="...
Thomas Matecki's user avatar
7 votes
2 answers
902 views

Creating a new user breaking existing permissions

I have a machine running Ubuntu with a SSH config file in ~/.ssh/config with the following permissions (default when creating a new file) -rw-rw-r-- 1 dev dev 75 Oct 26 20:13 config After creating ...
techalicious's user avatar
4 votes
2 answers
17k views

git push error - undefined symbol: EVP_KDF_ctrl, version OPENSSL_1_1_1b

I have a git repository on an external hard drive mounted on /run/media/<myusername>/<drivename>. When I try to push the code to the online github repo with git push -u origin master I get ...
DarthVi's user avatar
  • 51
1 vote
1 answer
4k views

git with ssh keeps asking for passphrase everytime

I'm using a git bare repository for managing dotfiles, and some other repositories for custom DWM build and all. I use SSH for pushing and pulling from git, but it keeps asking me my SSH passphrase ...
apoorv569's user avatar
1 vote
1 answer
392 views

How to forbid port-forwarding for a password protected SSH user?

Brief: I would like to restrict port-forwarding from an SSH user identified by password. Explanation: In the following explanation of how to install a git server: https://git-scm.com/book/en/v2/...
Adrian Maire's user avatar
  • 1,916
3 votes
2 answers
6k views

How to allow git pull as a sudo

I am using git pull (without sudo) every day on my machine, I have one key in ssh folder (cat ~/.ssh/id_rsa.pub) Problem is, that I cant call sudo git pull, because I am getting an error: sudo git ...
masiyik879's user avatar
1 vote
1 answer
1k views

Host key verification failed after changing MAC address

I changed my MAC address, I believe using sudo ip link set dev interface address XX:XX:XX:XX:XX:XX, in order to be assigned a new local IP address to fix some network issues I was having. This worked ...
Migwell's user avatar
  • 407
3 votes
2 answers
2k views

How can I combine the ssh and cd commands?

I am trying to write a bash-script to update a remote git repo. The script looks something like: #!/bin/bash ssh [email protected] 'cd /home/h/usr/praktikum | git pull | sbatch run.sh' However, the ...
Felix Hohnstein's user avatar
0 votes
0 answers
624 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 ...
blues's user avatar
  • 109
3 votes
2 answers
2k 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. No problem there with the key itself - however, I don't want to copy the key to a .ssh folder or leave the SSH key with ssh-agent (on ...
finefoot's user avatar
  • 3,010
0 votes
1 answer
61 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 ...
abergmeier's user avatar
1 vote
1 answer
2k 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 ...
samiles's user avatar
  • 113
0 votes
1 answer
283 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 ...
saleetzo's user avatar
  • 580
1 vote
0 answers
506 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 ...
cowlinator's user avatar
0 votes
2 answers
1k 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 ...
vishal's user avatar
  • 111
2 votes
1 answer
1k 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 ...
Stephen Boston's user avatar
0 votes
0 answers
633 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://[email protected]:5678/abc/myproject.git Cloning into '...
Wes's user avatar
  • 831
2 votes
0 answers
712 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 ...
Dewey Vozel's user avatar
-1 votes
1 answer
225 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:/...
ltstrom's user avatar
0 votes
1 answer
4k 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 ...
ScumCoder's user avatar
  • 153
6 votes
3 answers
4k 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 ...
Jonathan Gallagher's user avatar
1 vote
0 answers
1k 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 ...
Zelphir Kaltstahl's user avatar
2 votes
2 answers
500 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: ...
Ezwig's user avatar
  • 500
2 votes
1 answer
761 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 ...
Dominykas Mostauskis's user avatar
5 votes
4 answers
6k 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 ...
Ray Britton's user avatar
1 vote
1 answer
1k 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"] ...
Lynoure's user avatar
  • 21
1 vote
1 answer
688 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 ...
GreyCat's user avatar
  • 236
1 vote
0 answers
66 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 ...
Bertram Nudelbach's user avatar
11 votes
3 answers
5k 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 ...
ManUtdBloke's user avatar
2 votes
1 answer
1k 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 ...
user1566200's user avatar
2 votes
3 answers
6k 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/...
TarranJones's user avatar
0 votes
1 answer
111 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 ...
newbie's user avatar
  • 73
1 vote
0 answers
541 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-...
Yehosef's user avatar
  • 221
1 vote
1 answer
150 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 ...
Alec Mev's user avatar
  • 190
1 vote
0 answers
171 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 [email protected] "ls" Password: <myPassword> Output (works as desired)...
AutoTester999's user avatar