Generate an SSH Key for Ansible  [draft]

Generating and Using an SSH Key for Secure Server Access To generate a strong SSH key, run the following command: ssh-keygen -t ed25519 -C "ansible" You will be prompted to choose a folder and name for the SSH key: Generating public/private ed25519 key pair. Enter file in which to save the key (/home/marcin/.ssh/id_ed25519): /home/marcin/.ssh/ansible/ansible Next, copy the SSH key to the server(s) you want to access. However, before you do so, you must first log in to the server(s) using your name and password:...

July 14, 2022 · Marcin M

SSH into EC2 in Private Subnet

You might be running Amazon EC2 instances in public and private subnets and need a way to SSH into the EC2 instances in the private subnet. You can SSH into EC2 instances in a private subnet using SSH agent forwarding. This method allows you to securely connect to Linux instances in private Amazon VPC subnets via a bastion host (aka jump host) that is located in a public subnet....

April 29, 2022 · Marcin