Hot answers tagged

5 votes
Accepted

How to SSH from Jenkins node to Jenkins node safely?

Yes, storing your ssh keys directly on a build node is a bad practice. Nodes can be replicated, deleted, or given access to from other systems, and you don't want to lose track of what systems have ...
user avatar
  • 3,003
3 votes
Accepted

Vault `SSH-CA` Elliptic Curve rather than `RSA`

I think the answer should be yes to ecdsa but no to ed25519, but that it is currently no to both. You can externally generate an ecdsa keypair and load it into ssh/config/ca but vault-1.4.3 cannot ...
user avatar
3 votes
Accepted

How to run a single one-time command on a kubernetes instance/pod

A little more information is needed about specific operations you are doing, but generally your options are: For one-time operations: use kubectl exec to get into containers and do commands (works ...
user avatar
  • 757
2 votes

network ansible command error: "msg": "network os centos is not supported"

This error is due to invalid value of ansible_network_os: The playbook you try setup is meant for network devices. And since centos is not a network device OS the playbook will fail. Here you can find ...
user avatar
  • 163
2 votes

Using SSH to open interactive session in ansible

You could try ansinble-console It mostly feels like you just have a shell open, unless you use and ansible task name as your command, in which case prefixing it with shell <whatever you wanted to ...
user avatar
  • 1,644
2 votes

Running Automation on Google Cloud Virtual Instances using Ansible

You run the command with the user shishir9159_gmail_com but the error shows shishir9159@35.202.219.6: Permission denied ... seems like the _gmail_com portion of the username is truncated. Can you try ...
user avatar
  • 21
2 votes
Accepted

Automatically write new bash history to change-log file

Try using GNU Screen or Tmux. These are called "screen multiplexers" but you'd get a number of benefits The commands you run will continue running even if you disconnect, or you have network related ...
user avatar
  • 136
2 votes

Cloud-Init Script Won't Run?

There are a few issues with this cloud-init script. #groups is commented out, so the list beneath it makes it invalid YAML. Even if we uncomment groups, - ubuntu: [root,sys] is invalid because the ...
user avatar
  • 121
1 vote

Git keeps asking for ssh passphrase when SSH is already defined in GitLab

You can try adding your passphrase to the keychain using ssh-add -K, this will ask you the passphrase for the first time and later on it won't ask.
user avatar
1 vote

Git keeps asking for ssh passphrase when SSH is already defined in GitLab

Passphrase is defined by the way you created your private key. When creating a key pair you need to opt for no passphrase on the private key - this should solve your issue.
user avatar
  • 757
1 vote
Accepted

Root ssh key for ansible control node

There are pros and cons for both options: A single master key for your Ansible account would reduce complexity but you would need to ensure the private key is very secure, even if the key were ...
user avatar
  • 150
1 vote

Setting up CircleCI to AWS EC2 for a simple node application deployment

I would look at AWS System Manager to do this instead of direct ssh. Create a SSM document to run the commands you want to run, then this can be invoked by an AWS cli command from your CI/CD pipeline....
user avatar
1 vote

ansible playbook cannot apply, giving host unreachable error

Do the following for each Vagrant machine you want Ansible to work with...in this example, using the machine master1: Do vagrant ssh-config > vagrant-ssh Enter content from vagrant-ssh into your ~/...
user avatar
1 vote

Minikube for Ubuntu 20.04 WSL stuck on 'Restarting existing docker container for "minikube" ...' after minikube start and 'StartHost failed' error

Not sure if complete reinstall is a valid option for you, but for me this helped: sudo minikube delete After delete is finished, minikube start again
user avatar
  • 11
1 vote
Accepted

How to get the IDs of Docker Containers that belong to a Service, given the Service name or id

As a little addition to such extensive answer, with docker ps you can --filter containers by label. One of the labels in swarm is a service name, so: docker ps --filter "label=com.docker.swarm....
user avatar
  • 223
1 vote

How to get the IDs of Docker Containers that belong to a Service, given the Service name or id

Answering my own question & accepting it because it works - this is the solution: Step 1: So I start by finding the Docker Service I recognise as my Drupal site "that's the site" node1 $ ...
user avatar
1 vote

Download an artifact from Nexus to Jenkins

Create String parameter artifactID, Password parameter NexusUser with username and Password parameter NexusPassword with nexus password. curl -v -u $NexusUser:$NexusPassword -o ~/tmp_dl/distr.zip ...
user avatar
  • 121
1 vote

Download an artifact from Nexus to Jenkins

There are a few ways to do this, but by far the easiest is to put your credentials (either username/password or ssh keypair) into the Jenkins built-in credentials store and then use the sshagent step ...
user avatar
  • 2,753
1 vote

Why can't I connect to Gitea using ssh via command line?

OK, there seems to be two problems here. SSH hanging after connection It's probably a problem on the client tty due to limitations of MinGW. In the past I've encountered that ssh was unable to ioctl ...
user avatar
1 vote

Using SSH to open interactive session in ansible

I recently made myself a small script that seems to do the work. It certainly can be done better but maybe you can get some inspiration: #!/bin/bash set -e if [ -z "$1" ] then echo &...
user avatar

Only top scored, non community-wiki answers of a minimum length are eligible