Skip to content

bavuchoko/aws_con

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

여러개의 AWS 주소를 관리할 때 편하게 쉘에 접속하기 위한 파일

x.x.x.x 대신 ip를 입력하거나 examp.domia.com 에 도메인을 입력하여 접속 가능

하단에 aws 키 파일 위치와 아이디를 맞춰 넣어줌.

@echo off

setlocal enabledelayedexpansion
echo "Choose an option:"
echo "1. select1"
echo "2. select2"
echo "3. select3"
echo "4. select4"

choice /c 1234 /n /m "Enter your choice (1-4):"
set user_choice=%errorlevel%

if !user_choice! equ 1 (
set domain=x.x.x.x
) else if !user_choice! equ 2 (
set domain=example2.doamin.com
) else if !user_choice! equ 3 (
set domain=example3.doamin.com
) else if !user_choice! equ 4 (
set domain=example4.doamin.com
) else (
echo "Invalid choice. Exiting."
exit /b 1
)


ssh -i C:\Users\path\to\my\AWS_key.pem ec2-user@!domain!

About

aws 콘솔 접속 편의를 위한 윈도우 배치파일

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors