Questions tagged [ssh]
Use this tag if a question is about ssh
27
questions
0
votes
1
answer
22
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 ...
3
votes
2
answers
30
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 = "&...
0
votes
1
answer
8
views
create ssh tunnelling for phpMyAdmin
I have 2 web servers with MySql server onboard, let's call them b.myserver.com and c.myserver.com .
I'd like to create a server (db.myserver.com) with phpMyAdmin onboard to be able to access all the ...
0
votes
0
answers
26
views
Access Docker webserver that is port mapped to host IP 127.0.0.1:6443 -> tcp6443
I have a web-server running inside a docker container at port 6443, which I can access it from the docker-host machine using https://localhost:6443; Note the webserver upon connection redirects to ...
2
votes
1
answer
69
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 ...
0
votes
2
answers
47
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). ...
0
votes
0
answers
20
views
Unsupported certificate option "-t" at cpanel terminal
I'm creating a ssh key authentication in the cpanel terminal as recommended by cpanel, So I'll be able to integrate git version control:
https://support.cpanel.net/hc/en-us/articles/4404218477207-How-...
0
votes
1
answer
53
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 ...
0
votes
0
answers
37
views
After launching from AMI, how to make the AWS Instance to be able to retrieve metadata?
I have a Windows Server 2016 instance and I created a snapshot of it. And then I deleted the instance. Now, when I create AMI from that snapshot and launch instance from that AMI, I cannot decrypt the ...
0
votes
2
answers
206
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 ...
0
votes
0
answers
76
views
github workflow will not hangup ssh command
I want to do the following:
user merges code to the branch test-branch
github runner connects to the server proxy-server.example.com via ssh
proxy-server.example.com sends the command ssh target-...
0
votes
0
answers
299
views
Run htop on a remote machine in a docker container
I want to simulate user trafic (for tests purposes on a product), that's why I want to run a container which would start a SSH connection and run htop (to simulate user trafic) on a remote machine.
To ...
1
vote
1
answer
58
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 ...
0
votes
1
answer
79
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 ...
0
votes
1
answer
392
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]
...
0
votes
1
answer
674
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
�🆕 ...
0
votes
2
answers
2k
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 ...
1
vote
1
answer
210
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 ...
0
votes
2
answers
914
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: ...
2
votes
1
answer
268
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?
1
vote
2
answers
6k
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 ...
0
votes
2
answers
4k
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 ...
5
votes
3
answers
1k
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. ...
1
vote
2
answers
55
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 ...
2
votes
2
answers
374
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 ...
1
vote
0
answers
38
views
How to mount ssh keys on ephemeral container from a Windows host? [closed]
I'm working on a container that uses Git to interact with some git repositories. But, to use Git it has to use the SSH keys that are stored on the Windows host machine. I tried two of the ways I could ...
1
vote
2
answers
42
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 ...