Following tutorial but in the end getting the 'regular' error message that the authenticity of host can't be established. #2373
Unanswered
VinvarLaLece
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Dear all,
I am trying to achieve having a Proxmox container running as my CA which acts as an ACME for my internal domains and as a SSH certificate handler. The use case will be that I will SSH to this container and to other containers from my laptop.
I am trying to set up SSH with STEP CA following tutorial and forum-post. The steps below results in the 'regular' error message that the authenticity of host can't be established. Could someone help me where I make the mistake?
I have set up two containers on Proxmox with the helper script from Proxmox Helper Scripts.
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/debian.sh)"
As long as I am testing, I allow SSH login by the root user.
One container will be running the desired CA and the other will act as my laptop. From what I understand, the Vagrant VM from the tutorial equals as my laptop.
For readability I call the container with CA step-host and the one acting as my laptop step-client for the rest of this post.
For testing I do not like to 'clog' my laptop or change configuration while I am not completely sure. Therefore, I make use of the second container instead.
I run the commands as follows (splitted by which device I run it on).
step-host
1
nano install_step.sh
(see bottom of this post for the script.)2
chmod +x install_step.sh
3
./install_step.sh
4
cat /etc/step/certs/root_ca.crt
(Use the output in command 5)CONTINUE ON STEP-CLIENT
7
cat /etc/ssh/ssh_host_ecdsa_key.pub
(Use the output in command 8)CONTINUE ON STEP-CLIENT
11
cat /etc/step/password-provisioner
(Use the output during command 12)step-client
5
nano /usr/local/share/ca-certificates/root_ca.crt
(Paste the output of command 4)6
update-ca-certificates
CONTINUE ON STEP-HOST
8
echo "@cert-authority * _(PASTE the output of command 7)_" >> ~/.ssh/known_hosts
9
eval $(ssh-agent)
10
apt-get update && apt-get install -y --no-install-recommends curl gpg ca-certificates && curl -fsSL https://packages.smallstep.com/keys/apt/repo-signing-key.gpg -o /etc/apt/trusted.gpg.d/smallstep.asc && echo 'deb [signed-by=/etc/apt/trusted.gpg.d/smallstep.asc] https://packages.smallstep.com/stable/debian debs main' | tee /etc/apt/sources.list.d/smallstep.list && apt-get update && apt-get -y install step-cli
CONTINUE ON STEP-HOST
12
step ssh certificate root testuser_ecdsa --ca-url https://certificates.[redacted] --root /usr/local/share/ca-certificates/root_ca.crt
13
ssh-add -l
14
ssh root@certificates
15
ssh root@certificates.[redacted]
This has set up the step-host to listen for incoming SSH certificate validations. Also, it pointed step-client to validate SSH certificates at the step-host and with this I should be able to connect to step-host via SSH. However, running either command 14 or 15 results in
I have no idea why the certificate does not get used (or even if this is what is going wrong). Would anyone have an idea how to solve it and make use of the SSH certificates?
install_step.sh
Beta Was this translation helpful? Give feedback.
All reactions