useradd -m -s /bin/bash cardano
passwd cardano
usermod -aG sudo cardano
ssh-copy-id -i $HOME/.ssh/<keyname>.pub cardano@server.public.ip.address
sed -i '/ChallengeResponseAuthentication/d' /etc/ssh/sshd_config
sed -i '/PasswordAuthentication/d' /etc/ssh/sshd_config
sed -i '/PermitRootLogin/d' /etc/ssh/sshd_config
sed -i '/PermitEmptyPasswords/d' /etc/ssh/sshd_config
echo "ChallengeResponseAuthentication no" >> /etc/ssh/sshd_config
echo "PasswordAuthentication no" >> /etc/ssh/sshd_config
echo "PermitRootLogin prohibit-password" >> /etc/ssh/sshd_config
echo "PermitEmptyPasswords no" >> /etc/ssh/sshd_config
sudo sshd -t
sudo systemctl restart sshd
Remember to replace in ./prometheus/prometheus.yml with the proper ip addresses
- replace
<block-producer-ip-address>
with the IP Address of the block producer node - replace
<block-producer-port>
with the Port number of the block producer node
docker compose build \
--build-arg BLOCKPRODUCING_IP=<block-producer-ip-address> \
--build-arg BLOCKPRODUCING_PORT=<block-producer-port>
docker compose down
docker compose build \
--build-arg BLOCKPRODUCING_IP=<blockproducing-ip-address> \
--build-arg BLOCKPRODUCING_PORT=<blockproducing-port>
or
docker compose build \
--no-cache \
--build-arg BLOCKPRODUCING_IP=<blockproducing-ip-address> \
--build-arg BLOCKPRODUCING_PORT=<blockproducing-port>
docker exec -it cardano-node-relay bash