TheKoguryo's 기술 블로그

 Version 2024.04.01

3.5.1 Linux, Mac 에서 접속하기

ssh-keygen로 생성한 PEM(Privacy Enhanced Mail) 파일 형식의 키는 Linux, Mac에서는 바로 사용 가능합니다. PuTTY Key Generator로 생성한 .ppk은 변환기를 통해 PEM 형식으로 변환하여 사용합니다.

유닉스 스타일 시스템에서 Linux 인스턴스 접속하기

  1. 개인키 권한 변경

    $ chmod 400 <private_key>
    
    • <private_key>: Linux 인스턴스에 등록된 공개키에 매칭되는 개인키
  2. SSH 명령을 통해 접속

    $ ssh –i <private_key> <username>@<public-ip-address>
    
    • <private_key>: Linux 인스턴스에 등록된 공개키에 매칭되는 개인키
    • <username>: 인스턴스의 디폴트 사용자입니다.
    • <public-ip-address>: 인스턴스의 Public IP입니다. OCI 콘솔에서 확인할 수 있습니다.
디폴트 접속 사용자
OS ImageDefault User Name
Oracle Linux, CentOSopc
ubuntuubuntu
접속 예시 - 유닉스 스타일 시스템
$ ssh -i privateKey opc@144.24.xxx.xxx
FIPS mode initialized
The authenticity of host '144.24.xxx.xxx (144.24.xxx.xxx)' can't be established.
ECDSA key fingerprint is SHA256:svS10DcrVps4neg/t9lYoutfow+V5a6UHU2VrC3UJ2Y.
ECDSA key fingerprint is SHA1:2rtJUm8jt0QiYR7b+I3Ra6j4Yac.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '144.24.xxx.xxx' (ECDSA) to the list of known hosts.
Activate the web console with: systemctl enable --now cockpit.socket

[opc@examplelinuxinstance ~]$ 


이 글은 개인으로서, 개인의 시간을 할애하여 작성된 글입니다. 글의 내용에 오류가 있을 수 있으며, 글 속의 의견은 개인적인 의견입니다.

Last updated on 10 Jan 2022