맥에서 오라클클라우드(OIS) ssh 접속

터미널열기

오라클클라우드에서 인스턴스 생성시 다운받아놓은 ssh~.key 파일의 권한을 400 으로 바꿈

$ cd ~~~~~ <tab> 열심히 탭질을 하여 키가있는 경로로 간다

$ chmod 400 <filename.key> 로 권한 변경

ssh 접속

$ssh -i  <filename.key> ubuntu@xxx.xxx.xxx.xxx 또는 

$ssh -i <filename.key> opc@xxx.xxx.xxx.xxx

 

  1. 개인키 권한 변경
    • <private_key>: Linux 인스턴스에 등록된 공개키에 매칭되는 개인키
  2. Copy
    $ chmod 400 <private_key>
    
  3. SSH 명령을 통해 접속
    • <private_key>: Linux 인스턴스에 등록된 공개키에 매칭되는 개인키
    • : 인스턴스의 디폴트 사용자입니다.
    • : 인스턴스의 Public IP입니다. OCI 콘솔에서 확인할 수 있습니다.
  4. Copy
    $ ssh –i <private_key> <username>@<public-ip-address>
    

디폴트 접속 사용자

OS ImageDefault User Name

Oracle Linux, CentOS opc
ubuntu ubuntu

접속 예시 - 유닉스 스타일 시스템

Copy
ubuntu@NOTEBOOK-WORK:~/.ssh$ ssh -i privateKey opc@146.56.171.40
The authenticity of host '146.56.171.40 (146.56.171.40)' can't be established.
ECDSA key fingerprint is SHA256:NWD7RMc4Mb1azKCAN24f6hNUh55YKAygfB97WS9EpP0.
Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
Warning: Permanently added '146.56.171.40' (ECDSA) to the list of known hosts.
[opc@examplelinuxinstance ~]$

 

Comment