What is the cleanest way to ssh and run multiple commands in Bash?

I already have an ssh agent set up, and I can run commands on an external server in Bash script doing stuff like: ssh blah_server "ls; pwd;" Now, what I'd really like to do is run a lot of long...

SSL peer certificate or SSH remote key was not OK

I'm testing an API that uses curl_exec php function and a CA certificate but something is going wrong and I'm a little lost. I have configured SSL on my apache VirtualHost and looks ok ( opening...

Could not open a connection to your authentication agent

I am running into this error of: $ git push heroku master Warning: Permanently added the RSA host key for IP address '50.19.85.132' to the list of known hosts. ! Your key with fingerprint...

ssh: connect to host bitbucket.org port 22: Connection timed out

Everything was working perfectly fine. Did some git pushes with no problems. Today I decided to update my framework to the latest version, so it changed the directory structure of my project a...

Error creating AWS CloudFormation Stack (AMI cannot be described)

I want to create a Amazon Web Services stack (CloudFormation) (clicking the New Stack Button to create a new AWS CLoudFormation Stack) based on this template: { "AWSTemplateFormatVersion" :...

Homestead on windows 10 hangs on default: SSH auth method: private key

Net::SSH::ConnectionTimeout> INFO subprocess: Starting process: ["C:/Program Files/Oracle/VirtualBox/VBoxManage.exe", "showvminfo", "a1035534-3544-40d1-a701-92e34436606b", "--machinereadable"] ...

How to check if ssh-agent is already running in bash?

I have a sample sh script on my Linux environment, which basically run's the ssh-agent for the current shell, adds a key to it and runs two git commands: #!/bin/bash eval "$(ssh-agent -s)" ssh-add...

How to disable ssh-agent forwarding

ssh-agent forwarding can be accomplished with ssh -A .... Most references I have found state that the local machine must configure ~/.ssh/config to enable AgentForwarding with the following...

Why does git sign with GPG keys rather than using SSH keys?

What are the differences between SSH and GPG asymmetric keys and why does git support signing with GPG rather than using the SSH agent?

How to start ssh-agent permantly with python?

I am looking for the equivalent of eval $(ssh-agent) for python, that will start ssh-agent and will stay running after the script finish to run. I didn't find anything useful with Google.

Setting a remote git repository on AWS and pushing from Windows

I am trying to create a remote repository on my Ubuntu Instance on AWS and then push from my local repository on Windows. I followed the tutorial here. I followed these exact steps: I created an...

RDO install OpenStack queens all-in-one get stuck

When I use packstack to install openstack queens allinone, it got stuck at: # sudo packstack --answer-file pack-1534411186.txt Welcome to the Packstack setup utility The installation log file is...

gitlab-ci SSH key invalid format

I would like run deploy script with gitlab-ci, but step ssh-add $SSH_PRIVATE_KEY return an error : echo "$SSH_PRIVATE_KEY" | ssh-add - Error loading key "(stdin)": invalid format You can see my...

GITLAB CI Error loading key "/dev/fd/63": invalid format ERROR: Job failed: exit code 1

Here is my code giltlab-ci.yml : before_script: ## ## Install ssh-agent if not already installed, it is required by Docker. ## (change apt-get to yum if you use an RPM-based image) ## ...

How do I fix this load error during shell start?

Whenever I start the shell I get an error from it saying that it could not load a gem, curiously named ubygems (notice the lack of r). ➜ reload Traceback (most recent call...

VS Code / Bitbucket / SSH - Permission denied (publickey)

I'm trying to access bitbucket via ssh from vscode but always get permission denied (publickey). SSH key(s) are located under ~\.ssh\, public key(s) are correctly setup in...

remote github access is denied even though the public key is created and saved in my github profile

I have asked the same question on github but no response. So, I think here may be a better place to ask this kind of coding questions because this is the problem when I tried to do some coding...

Jenkins plugin ssh-agent showing "ERROR: Failed to run ssh-add"

I getting error "ERROR: Failed to run ssh-add" I am trying to ssh into remote machine so SSH credential are set Pipeline script is calling ssh-agent On executing the job I get error below I...

Github Actions: xcodebuild fails due to server fingerprint

I am trying to build a macOS app with Github Actions. This already worked very well, until I migrated my dependencies to Swift Package Manager. Now I am getting the following error while building...

AWS Session Manager can't connect unless opening SSH port

I'm trying to use AWS Systems Manager Session Manager to connect to my EC2 instances. These are private EC2 instances, without public IP, sitting on a private subnet in a VPC with Internet access...

Cannot use Team -> Git -> Clone wizard in Netbeans 12 to connect to a github repo using SSH

I’m running Apache Netbeans 12 on Windows and I’m really struggling to connect to my github repositories using an SSH connection. I get the strong impression that this has been a problem for...

Jenkins Pipeline - connect to Docker host using SSH credentials

We would like to use Jenkins Pipelines to work with AWS ECR images on a remote host that has Docker installed, but does not (and will not) expose the Docker socket over port 2376. A couple of...

"You've successfully authenticated, but GitHub does not provide shell access" after running through all the ssh setup steps

I'm so confused. I'm trying to get the git clone command working, but it keeps saying: [email protected]: Permission denied (publickey). fatal: Could not read from remote repository. Please make...

vscode dev container environment variables not exposing to docker-compose

My docker-compose.yml looks like this version: "3.8" services: vscode: volumes: - ..:/workspace:cached - $SSH_AUTH_SOCK:/ssh-agent -...

Error connecting to agent: no such file or directory - adding key to ssh agent

I am trying to add key that I have generated to the ssh agent. Below are my steps C:\repo>ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key...

How to connect to AWS CodeCommit with ssh credentials?

Have a problem with connecting to CodeCommit with ssh. It seems I do all that needs. generate key , give him access rights, put in AWS IAM pubkey for user with roles for code commit. create config...

sh.CommandNotFound: ./compile.sh Buildozer and KivyMD error

OS: (VM) Ubuntu 20.04.2 Python3 : 3.8.5 I've been trying to compile a an application I created using the following modules: kivy,kivymd,pafy,vlc,sys, threading,time. And also a local custom module...

Pylint integration with Jenkins build running on dynamic kubernetes pods as agents

We have a Jenkins setup on Google Kubernetes Engine with dynamic kubernetes pods serving as build agents. I want to integrate Pylint as a build step. Python version running on kubernetes pod is...

ArgoCD Private Repo Declarative Approach

I am trying to deploy the sample Guestbook Helm Application with ArgoCD, using a private repo with SSH. I am getting the below error. Error rpc error: code = Unknown desc = error creating SSH...

Git push from Visual Studio Code gives "remote: No anonymous write access"

I am trying to push the code from the repository when I encountered this error: No anonymous write access. I have followed the steps mentioned in Git push from Visual Studio Code: "No anonymous...