352 questions
1
vote
0
answers
140
views
Why does trying to use Git Bash’s bundled ssh-agent seem to remove it and fall back to Windows OpenSSH?
I’m trying to use the bundled ssh-agent that comes with Git for Windows, but when I try to start it via eval "$(ssh-agent -s)", it somehow seems to remove itself from the system (or at least ...
0
votes
0
answers
58
views
SSH failure for private github repository
I am attempting to push/pull using SSH to my private github repository. I went through the steps of creating a key, uploading the public key to my github account, and adding it to my ssh-agent, using ...
1
vote
1
answer
45
views
sshPut in Jenkins PL fails with AuthFail
Trying to deploy to a remote host via ssh. I have already tested the sshkey via same jenkins pipeline using bash commands and it works. echo prints the var values correctly as well. So no clue why ...
0
votes
1
answer
125
views
"Could not open a connection to your authentication agent" error with running SSH Agent service
I have the following user service unit file set up to ensure that I have Github access at all times:
[Unit]
Description=SSH key agent
[Service]
Type=exec
Environment=SSH_AUTH_SOCK=%t/ssh-agent.socket
...
1
vote
1
answer
555
views
Jenkins SSH Agent throws error "Found unhandled java.lang.StringIndexOutOfBoundsException exception: Range [13, -1) out of bounds for length 0
I have this simple Jenkins Pipeline using SSH Agent
pipeline {
agent any
stages {
stage("Backup") {
steps {
sshagent (credentials: ["ssh-...
4
votes
0
answers
289
views
Repeated SSH Passphrase Prompts During Git Push with LFS-enabled Repository
I'm experiencing repeated prompts for my SSH passphrase when performing a git push in a repository that uses Git LFS. This repository is a backup tracking a large amount of work, and the issue occurs ...
2
votes
0
answers
300
views
Docker compose's /run/host-services for non-root users (ssh-agent sock)
I've managed to google this solution for using my local ssh key inside the container. It allows me to access git repositories and works ok.
services:
app:
...
environment:
...
0
votes
1
answer
139
views
Restrict putty agent ssh forwarding of vscode on remote host for specific ips
i have the putty ssh agent running (due to the fact that i dont have administrator rights, this is the only option as this was installed by default) and use it to log into my remote workspaces in ...
0
votes
1
answer
306
views
ssh-agent only saving identity for current session
I am having a problem with ssh-agent: when I add my private key to the agent (started with eval "$(ssh-agent -s)", added with ssh-add ~/.ssh/privatekey and checked it was added with ssh-add -...
0
votes
1
answer
499
views
Use C# SSH.NET with private key stored in ssh-agent
I'm migrating some of our C# code from username/password Linux connectivity to using public/private keys (with passphrase). I've stored the private key in the Windows ssh-agent and all works well ...
3
votes
1
answer
486
views
Is there a way to use 1Password in combination with DDEV and colima?
I'd like to use the SSH agent feature of 1Password in combination with my DDEV projects that run with colima as its docker provider. That means that the DDEV web container is able to use the SSH keys ...
0
votes
3
answers
1k
views
In Git for Windows 2.42 / Git Extensions for Windows 4.2.0, how can we disable the Git CLI stdin wrapper?
I am using Git and Git Extensions for Windows for version control. A part of my workflow is that I open the Git bash from within Git Extensions to work on the command line. One of the commands I often ...
1
vote
0
answers
469
views
How to Enable ssh-agent on Git-Bash using VS Code
I use VS Code and Git-Bash for git commands on Windows, whenever I open it I need to set the ssh-agent and the SSH key address.
When researching the subject I read several tutorials on how to ...
-2
votes
1
answer
914
views
ssh keys issue & how to mounts as readonly in devcontainer.json? [closed]
i have windows as the host, working with devcontainer without wsl, created ssh key with custom name, let say id_github. and managed to set ssh-agent auto run, and can use git fetch with ssh key with ...
4
votes
0
answers
1k
views
How Does One SSH Agent Forward with PuTTY's Pageant as SSH Agent in VSCode devcontainers Without Built-in Windows 10+ OpenSSH Client
Situation
I've got an internal GitLab that I'm trying to interact with within a devcontainer in VSCode. On my host machine, I use PuTTY's Pageant as my SSH Agent. I'd like to forward my Pageant SSH ...
2
votes
2
answers
1k
views
Accessing and using ssh keys from host machine from docker container using ssh sockets in a secure way
I am trying to add possibility to use host machine ssh keys to fetch private repositories. However, I haven't been successful to do so in a secure manner. I don't want to copy ssh key's at build time, ...
0
votes
1
answer
1k
views
Permission Denied When Cloning Private GitHub Repository Using Forwarded SSH Key from Window 10
I'm facing an issue with SSH agent forwarding from my Windows 10 machine to a remote Ubuntu 20.04 server.
I followed the steps to enable and load my SSH key into the ssh-agent on Windows:
# By default ...
0
votes
1
answer
458
views
How does the SSH Agent plugin in Jenkins connect to a server without the public key?
In my understanding, when the local machine try to connect to a remote server, the private key stored in ./ssh/id_rsa is used and the corresponding public key stored in ./ssh/id_rsa.pub is sent to the ...
0
votes
0
answers
245
views
Windows Jenkins slave node unable to pull from git repo after the URL changed
We had to change our bitbucket URL after which Windows Jenkins slave node is unable to pull the git repo from the new bitbucket URL. It works fine on Mac /Linux. I have added / accepted the key for ...
1
vote
0
answers
374
views
docker-compose changes permissions of ssh-agent
I have a Dockerfile which includes:
RUN touch /ssh-agent
RUN chmod 666 /ssh-agent
and a docker-compose file which includes:
build:
dockerfile: Dockerfile
ssh:
- ...
1
vote
2
answers
706
views
ssh-agent empty everytime I close my terminal
Everytime I need to push something to github I have a Permission Denied message.
If I execute this commands on terminal:
eval $(ssh-agent -c)
ssh-add -l # Response: The agent has no identities.
ssh-...
0
votes
1
answer
1k
views
playbook to add ssh-key having passphrase and reuse SSH_AUTH_SOCK, SSH_AGENT_PID
What do I want to achieve? Using a single Ansible playbook,
start ssh-agent if not running (on localhost).
add ssh-key (that is passphrase protected).
connect to remote machines to run tasks
---
...
3
votes
1
answer
2k
views
How can I prevent git from asking for the passphrase for a ssh signing key when signing commits or tags?
When I sign commits or tags with my ssh key (git commit or git tag -s), git keeps asking for the passphrase of that key. However, I do not want to enter the passphrase for every commit.
I use two ...
1
vote
3
answers
2k
views
jenkins pipeline fail - ERROR: Failed to run ssh-add ; says error loading key - invalid format
I'm trying to ssh into ec2 from jenkins, i have set the credentials in jenkins global with key downloaded from aws i,e "something.pem" . I copied the contents and pasted. not sure why ...
-1
votes
1
answer
150
views
Credentials Changed during the Copy (jenkins)
My credentails which I configure in Jenkins as global credentails chaged during the copy process to remote server. Why? [The 'RSA KEY' changed]
0
votes
1
answer
349
views
ssh-agent does not work when executing ssh command
I am having trouble with ssh-agent not working...!
My environment:
$ ssh -V
OpenSSH_8.2p1 Ubuntu-4ubuntu0.5, OpenSSL 1.1.1f 31 Mar 2020
$ ssh-add -L
ssh-ed25519 ...
1
vote
0
answers
228
views
Is there an equivalent of SSH agent forwarding for curl's .netrc?
I know they're very different different things but is there anything similar to ssh's agent forwarding for the .netrc file? i.e. I want my local .netrc file to be available when I ssh into a remote ...
1
vote
0
answers
3k
views
Windows 10: Can't start ssh-agent: `unable to open service handle` on non-administrator user (OpenSSH_for_Windows_8.9p1)
I have two users on the remote Windows 10 server (Build 10.0.19045.0) - controller (administrator) and worker (non-privileged user). The first user (admin) is able to use Microsoft's ssh-agent ...
4
votes
2
answers
5k
views
Forwarding ssh agent to container with Podman in Fedora
I am creating a podman image and I'm trying to understand how to allow the container use my host (Fedora 37) ssh-agent so as the container can clone git repositories. I would prefer this than using ...
2
votes
1
answer
4k
views
How to force delete an SSH identity from ssh-agent when `ssh-add -D` fails. (Windows 10)
I have erroneously loaded an ssh key in the ssh-agent. I tried running ssh-add -D as I had no other important identities on this agent but this command deleted all identities except the one I was ...
1
vote
0
answers
428
views
How to forward ssh agent to running docker container?
I'd like to use my ssh keys inside a docker container that is already running. So far I was only able to find solutions to forward ssh keys during the build stage or run stage. But mounting the ...
-2
votes
1
answer
2k
views
Ubuntu 22.04 - ssh-agent error: Unable to load resident keys: device not found
I have just installed Ubuntu 22.04.1 LTS on a Desktop Computer with previous Windows 10.
Now I want to connect to my server with ssh, but I don`t want to enter each time the password for the private ...
1
vote
1
answer
1k
views
Why could git not clone private repo during docker build with '--mount=type=ssh'
I am trying to build a docker container with a private repo installed. I have no issue cloning the other repos that I require, but because one is private, it was suggested by a colleague to use --...
1
vote
2
answers
7k
views
How to resolve this error with github actions ssh-agent: Error loading key "(stdin)": error in libcrypto
I am trying to deploy to aptible with github actions. This is my .yml file
name: Cartwheel Staging CI
run-name: ${{ github.actor }} activated these GitHub Actions
on:
pull_request:
branches: [ ...
-1
votes
1
answer
52
views
why I donot need to start ssh-agent and I can connect to remote git repo without user/password?
I have create private/publich key pair by ssh-keygen command line.
I have already paste the content of ~/.ssh/id_ed25519.pub to github account
I have already manually start ssh-agent and add the ...
0
votes
1
answer
2k
views
SSH ask for a password in VSCode Dev Container even if ssh-agent seems correctly configured?
I've configured Windows 11 ssh-agent following the official documentation and then used ssh-add to add my SSH keys:
PS> Get-Service ssh-agent
Status Name DisplayName
------ ---- ...
1
vote
2
answers
805
views
Failed to start SSH Agent: java.lang.RuntimeException: Cannot parse ssh-agent output: '' - TeamCity
System configs:
TeamCity Master: Windows Server 2012 R2 Standard
TeamCity Agent: Windows Server 2022 Datacenter
Infrastructure is in AWS with the correct security groups and open ports needed (9090, ...
0
votes
1
answer
6k
views
$ eval "$(ssh-agent -s)" vs $ eval ssh-agent -s
I really confused to these 2 syntax. What makes they different?
Under windows VS code and git bash environment,
"$(ssh-agent -s)" works on me
$ eval "$(ssh-agent -s)"
Agent pid 966
...
0
votes
0
answers
284
views
How to use ssh-agent with Net:OpenSSH Perl
I got three servers, MyServer (centos7), Jumper and DestinationServer. I need to establish SSH connection from MyServer through Jumper to DestinationServer using Perl script with Net:OpenSSH lib.
on ...
3
votes
2
answers
7k
views
Could not open a connection to your authentication agent.(Individual case!)
I'm new at Linux and I could not open a connection to my authentication agent. I think I've done everything right so far. I just followed the GitHub instructions. I also tried it without sudo and it ...
0
votes
1
answer
535
views
ssh-agent command doesn't create env variables as stated in a man page on Ubuntu?
When I run ssh-agent it does output to the console:
SSH_AUTH_SOCK=/tmp/ssh-6xVL11wer5lW/agent.311122; export SSH_AUTH_SOCK;
SSH_AGENT_PID=311122; export SSH_AGENT_PID;
echo Agent pid 311122;
However ...
2
votes
1
answer
751
views
ssh-agent doesn't work however eval+ssh-add does, why?
I have 3 servers: (a), (b) and (c).
Server (a) and (c) have server's (b) public key inside authorized_keys file.
I try to access server (c) throughout ssh connection to server (b) from server (a).
(a)...
0
votes
1
answer
4k
views
jq: error: syntax error, unexpected '-', expecting '}' (Unix shell quoting issues?) at <top-level>, line 1:
I am trying to run some jq command over ssh-agent in a Jenkins pipeline. But I am getting the following error:
Trying to run:
`
stage("common-infra-deployment"){
steps{
...
1
vote
1
answer
859
views
Reading keys from OpenSSH auth agent on Windows with Paramiko is failing with "[Errno 22] Invalid argument: '\\\\.\\pipe\\openssh-ssh-agent'"
I am using simple function to list out all RSA keys using paramiko.agent.Agent().get_keys() function. But there is weird error:
[Errno 22] Invalid argument: '\\.\pipe\openssh-ssh-agent'
Also OpenSSH ...
4
votes
1
answer
3k
views
What endpoint does the Windows OpenSSH Agent listen on
Does anybody know what endpoint the Windows OpenSSH Authentication agent listens on, and how it advertises this so that the Windows ssh.exe can communicate with it?
I know I'm a bit late to the party, ...
1
vote
1
answer
127
views
How to pass an argument to the subprocess that expects input
I would like to execute a "git push" command using Python script. I was hoping to achieve this by using python's subprocess.Popen() method. However when I invoke the "git push" ...
0
votes
2
answers
994
views
Is it possible using "su -c" with multiple commands but in one session?
I am trying run the following two command in one command.
eval "$(ssh-agent)"
ssh add ~/.ssh/id_rsa
I tried with many possible solutions:
su username -c "{ eval $(ssh-agent -s) }; ssh-...
3
votes
1
answer
1k
views
Stopping SSH Agent when closing Git Bash on Windows
After being hesitant of using ssh-agent for quite a while now, I finally decided to use it. I am typically on Windows working with git-bash. I was glad to find a helpful question about Running SSH ...
6
votes
0
answers
3k
views
Why does the ssh-agent have no identities after starting the agent and running ssh-add?
I am trying to configure ssh for use with github on a new computer. I've attempted to follow the instructions listed in the tutorial on github to no avail. Here's a summary.
Using my M1 mac's (macOS ...
2
votes
2
answers
1k
views
SSH agent key is not visible/forwarded to Windows Docker container
I am trying to use Windows Docker to build a docker image. When building the docker image, it will invoke pip to access remote private GitHub repositories. However, it always returned this error ...