Questions tagged [ssh]

Use this tag if a question is about ssh

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

Use AWS IAM account for SSH login

A small admin team needs occasional SSH access to EC2 Linux instances on multiple AWS accounts (assumed role). These machines come and go dynamically so managing users via user_data or ansible is ...
Josiah's user avatar
  • 363
0 votes
0 answers
6 views

How to check where the RDS DB endpoints are stored on EC2 server for RoR web application?

I'm a low-code web maintainer in our company. We are managing a RoR web app based on the Sharetribe Go codebase on AWS EC2+RDS. We have to update RDS DB to MySQL version 8.0 and then connect the EC2 ...
Freelensia's user avatar
0 votes
1 answer
265 views

Ansible Connecting to remote Docker container over SSH

I have the following situation: I have a remote server that runs docker with a Postgres container. The Postgres instance is only reachable through a docker network, not directly from the remote server....
Tiim's user avatar
  • 11
0 votes
0 answers
153 views

Change memlock limit in a Docker container; is it possible?

I'm running a container from vast.ai, Ubuntu 20.04 LTS. I'd like to change memlock limit in the Docker container. Is it possible? What I've already tried: Changing the memlock limits in /etc/security/...
Vinicius Gonçalves Melo's user avatar
1 vote
1 answer
56 views

ansible_become has no effect despite the ability to execute sudo on GCP hosts

Say I want to execute the following command on target hosts (deployed on GCP): ansible all -a "head -1 /etc/shadow". The command demands the root access. With the default Ansible ...
SkogensKonung's user avatar
0 votes
0 answers
74 views

SSH Keys not propagating correctly from instance metadata to authorized_keys: missing keys, user discrepancy, and duplicate key

I want to add eight public keys via instance metadata to avoid adding them manually (i.e.: ssh to VMs, pasting the keys to .ssh/authorized_keys, etc.). I added the keys in Terraform (four distinct ...
SkogensKonung's user avatar
2 votes
0 answers
51 views

Jenkins build fails when no commits in the code (ChannelSftp.throwStatusError)

I have built a jenkins pipeline for executing a test on a windows server. Once the automated test report is generated on the windows server, it ships that report to a different server. There are ...
Kasun Wimaladarma's user avatar
1 vote
2 answers
288 views

Is there a way to exclusively manage multiple ssh keys with differing per-key options using ansible?

Ansible provides a ansible.builtin.authorized_key module which provides a lot of functionality: You can set exclusive: true to delete all other keys. You can set key_options: .... You can list ...
Helmut Grohne's user avatar
0 votes
1 answer
449 views

Transferred 0 file(s) while transferring war file from Jenkins server to remote server

There's a jenkins server where my jenkinswar.war file is present in /var/lib/jenkins/workspace/project2/target/jenkinswar.war I want this file to be transferred to other remote server at /opt/docker ...
Manu's user avatar
  • 1
1 vote
1 answer
2k views

Terraform: Why is null_resource's remote-exec not connecting to aws_instance via SSH?

I've been going through answers to similar questions on this StackExchange and on StackOverflow and reading through documentations all day ... Here's the .tf file I'm executing: # defines the AWS ...
Omar Shazly's user avatar
4 votes
2 answers
1k views

Cloud-Init Script Won't Run?

I am working through this Terraform tutorial, which boots up a Go web app on an EC2 instance, using Terraform and cloud-init. This is my Terraform config file: terraform { required_version = "&...
Huzi 's user avatar
  • 41
5 votes
1 answer
3k views

Ansible no user $HOME by default - so how do I run commands

I have thousands of servers that, by default, for security and space do not create a $HOME when you ssh in. This seems to be posing a problem for Ansible as it keeps trying to chdir to home that does ...
eekfonky's user avatar
  • 151
0 votes
2 answers
1k views

Is there a way to install a private key for a user with cloud-init?

I have a user that needs to authenticate against a company source repository when using git clone. To set this up for the user I need to specify a users private key (not the host private key in /etc). ...
Evan Carroll's user avatar
  • 2,089
1 vote
1 answer
872 views

How do I configure my AWS SSO-managed user with my public SSH key?

My AWS identity is SSO-managed, not an IAM user. I wish to upload my public SSH key (so as enable client UI access to CodeCommit) but am not the AWS account/organisation admin so cannot see what the ...
Andrew Eells's user avatar
1 vote
2 answers
4k views

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

I'm playing around with a personal GitLab account to get familiar with its' ins and outs. First, I followed this primer on setting ssh keys and added public and private ED25519 keys to ~\.ssh. I added ...
user32882's user avatar
  • 111
1 vote
1 answer
169 views

Root ssh key for ansible control node

Scenario: Deploy 30 VMs using terraform and then run ansible - how many ssh keys do you generate? Virtual machine definition in terraform requires administrator ssh key or password provided. Do you ...
dywan666's user avatar
  • 113
0 votes
1 answer
459 views

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

I have a simple node application running on the EC2 instance, everything is working just fine and I want to integrate this application with CircleCI for the continuous deployment. I have been ...
Mukul Kumar Jha's user avatar
0 votes
1 answer
1k views

ansible playbook cannot apply, giving host unreachable error

I'm completely new to ansible and I'm having a hard time with it. I have an inventory.yml file which is as the following: EDIT: changed my inventory.yml now looks as follows inventory.yml: [master] ...
user2152012's user avatar
0 votes
1 answer
2k views

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

I've come across the following problem where my minikube cluster doesn't start and the command line becomes stagnant in the following way: $ minikube start �😄 minikube v1.17.1 on Ubuntu 20.04 �🆕 ...
Jackalakalaka's user avatar
1 vote
3 answers
4k views

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

Background I'm trying to maintain some websites running in a Docker Swarm. I want to do security updates on them. In a non-Docker environment, like a VPS, my simple process is that I would connect in ...
therobyouknow's user avatar
4 votes
1 answer
6k views

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

Currently I have a setup on AWS with 4 EC2 machines. They provide a web interface that among other things also has a database search. My recent project was to move the database search to AWS Elastic ...
ChatterOne's user avatar
0 votes
2 answers
2k views

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

How do I get the ansible config for rolly below? remote: [nsaunders@rolly ~]$ [nsaunders@rolly ~]$ lsb_release -a LSB Version: :core-4.1-amd64:core-4.1-noarch Distributor ID: CentOS Description: ...
Nicholas Saunders's user avatar
2 votes
1 answer
359 views

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

Is it possible to use ECDSA(Elliptic Curve Digital Signature Algorithm) or EdDSA( Edwards-curve Digital Signature Algorithm) instead of RSA when configuring SSH-CA on HashiCorp Vault?
Woodstock's user avatar
  • 123
2 votes
2 answers
10k views

Download an artifact from Nexus to Jenkins

I use ssh username and private key auth to download sources from Git, build the artifact and deploy it to my nginx server. Now I need to download an artifact as a zip file to Jenkins agent, prepare it ...
Stepan's user avatar
  • 131
0 votes
2 answers
7k views

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

My computer: Windows 10 Pro 1909 I have a Gitea server running in my office, at local IP address 10.100.10.24, with SSH configured on port 22000. Gitea is configured to use port 3000 for HTTP. I'm ...
afarley's user avatar
  • 111
7 votes
3 answers
3k views

Using SSH to open interactive session in ansible

Is there a semi-easy way to use Ansible to open an interactive session? I've spent a good amount of time making use of keys and other credentials stores to make a stellar ansible inventory file. ...
Peter Turner's user avatar
  • 1,430
1 vote
2 answers
67 views

Running Automation on Google Cloud Virtual Instances using Ansible

I'm trying to automate google cloud virtual instances remotely only using external ip addresses of virtual machines. I can ssh into the virtual machines using command line with user name ...
noobmaster69's user avatar
2 votes
2 answers
602 views

How to SSH from Jenkins node to Jenkins node safely?

We have a Jenkins Job that builds something on node A and then needs to SCP it to node B. You can just put the SSH keys for node B on Node A, and SCP with an execute shell build step, however I ...
Uberhumus's user avatar
  • 277
1 vote
2 answers
51 views

Automatically write new bash history to change-log file

Every time I ssh into a server I might issue some bash commands and then sign off (hup signal?). Is there a way to write the shell commands that I issued on the server to some changelog file? I want ...
Alexander Mills's user avatar