Skip to content

Instantly share code, notes, and snippets.

@arush15june
Created August 30, 2022 04:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arush15june/5a960ff0a7b18b3fed8594dd68c14846 to your computer and use it in GitHub Desktop.
Save arush15june/5a960ff0a7b18b3fed8594dd68c14846 to your computer and use it in GitHub Desktop.
RDP into AWS Windows VM from Terminal
# Add your instance name in Values
$ip = aws ec2 describe-instances --filters "Name=tag-key,Values=windows_instance" --query 'Reservations[*].Instances[*].PublicIpAddress' --output text
mstsc /v:$ip
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment