#!/bin/bash
echo "Starting connection with bastian Host..."
ssh -i p8_public_ec2.pem <bastian_USER>@<bastian_IP> << EOF
# Change directory to home/ubuntu/be_logins
cd /home/ubuntu/be_logins
# SSH to app host using private.pem
ssh -i /home/ubuntu/be_logins/p8_private_ec2.pem <app_host_USER>@<app_host_IP>
EOF
this is not working…
can anyone help to fix this
New contributor
Heshan is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
1