Notice
Recent Posts
Recent Comments
Link
관리 메뉴

Star_project

mac ssh 연결하기 본문

클라우드/AWS

mac ssh 연결하기

star빛 2021. 4. 21. 11:55

Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

 

문제 발생시 

overtop.co.kr/363

 

Mac에서 SSH로 EC2 인스턴스 접속하기

Mac OS 나 리눅스에서는 아래와 같이 해주면 된다. #.1 KeyPairs 를 만들어 보자 EC2 Service > Key Pair 메뉴에서 생성하자. 키페어이름을 입력하고 [Create]를 클릭하면 즉시 다운로드가 된다. 처음에만 당황

www.overtop.co.kr

 

ec2-user@13.124.236.54 

 

https://ap-northeast-2.console.aws.amazon.com/ec2/v2/home?region=ap-northeast-2#ElasticIpDetails:PublicIp=13.124.236.54

 

ap-northeast-2.console.aws.amazon.com

key pem 파일 있는 곳으로 가서 허용해주기

 

Last login: Wed Apr 21 09:49:53 on console

eomminjeong@eomminjeong-ui-MacBookAir ~ % ssh --help

ssh: illegal option -- -

usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]

           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port]

           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]

           [-i identity_file] [-J [user@]host[:port]] [-L address]

           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]

           [-Q query_option] [-R address] [-S ctl_path] [-W host:port]

           [-w local_tun[:remote_tun]] destination [command]

eomminjeong@eomminjeong-ui-MacBookAir ~ % ssh ec2-user@13.124.236.54

ec2-user@13.124.236.54: Permission denied (publickey,gssapi-keyex,gssapi-with-mic).

eomminjeong@eomminjeong-ui-MacBookAir ~ % dir

zsh: command not found: dir

eomminjeong@eomminjeong-ui-MacBookAir ~ % ls

Applications Library Public

Desktop Movies eclipse

Documents Music eclipse-workspace

Downloads Pictures minjeong

eomminjeong@eomminjeong-ui-MacBookAir ~ % cd Downloads

eomminjeong@eomminjeong-ui-MacBookAir Downloads % chmod 400 job4.pem

eomminjeong@eomminjeong-ui-MacBookAir Downloads % ssh -i"job4.pem" ec2-user@13.124.236.54

Last login: Wed Apr 21 02:13:59 2021 from 112.172.128.1

 

       __|  __|_  )

       _|  (     /   Amazon Linux 2 AMI

      ___|\___|___|

 

https://aws.amazon.com/amazon-linux-2/

No packages needed for security; 10 packages available

Run "sudo yum update" to apply all updates.

(base) [ec2-user@job4 ~]$ 

'클라우드 > AWS' 카테고리의 다른 글

AWS 사양 맞추기 / AWS 설정  (0) 2021.04.19