chore(aws/ec2): improve on metadata server commands, ssh connection

This commit is contained in:
Michele Cereda
2025-09-04 01:08:29 +02:00
parent 6fc69382aa
commit 51e2425501
3 changed files with 10 additions and 1 deletions

View File

@@ -1,3 +1,8 @@
#!/usr/bin/env sh
# Load keys from '${HOME}/.ssh' and add them to the agent
eval $(ssh-agent) && ssh-add
# Connect
ssh 'desktop.lan'
ssh 'ec2-user@172.31.42.42' -i '.ssh/aws.key'