(Environment) (VS Code) vscode 에서 SSH 원격 접속 & IdentityFile 사용 하기

 vscode에서 SSH 원격 접속 하기





1. 사전 지식

  > SSH 명령어 및 접속 여부 확인

  > C:\Users\shipp>ssh id@ip주소 또는 도메인 주소 -p (포트 번호

     ;ex > shippaujobs@192.168.0.1 -p 1111

   

2. VS Code 에서 SSH 사용 하기

  > VS Code 실행

  > extension 추가 ('Remote - SSH )

    ; microsoft의 Remote - SSH 설치

    ; 모니터 아이콘이 생긴것을 확인

    ; 해당 아이콘 버튼 클릭

  > connect 구성 

    ; connections 에 마우르스를 올려놓으면 톱니바퀴 모양의 설정 아이콘이 출력 

    ; Settings  -  Config File를 저장할 위치를 지정

  > config파일 양식이 자동으로 완성되고 접속정보를 입력

    ; hostname은 접속할 server의 ip

    ; user 는 해당 server의 계정 (접속 할 아이디)

    ; IdentityFile은 ssh 키파일의 위 



3. IdentityFile에 참조할 키파일을 생성

  > 구글에서 putty를 검색 

  > download puTTY' 다운로드

    ; https://www.putty.org/   

    ; https://www.chiark.greenend.org.uk/~sgtatham/putty/latest.html 에서 PuTTY 다운로드 및설치

  > 설치

  > 'puutygen' 설치 확인

    ; 비밀번호 생성

  > 키 파일의 저장 위치를 vscode에서 저장한 config 파일 위치에 저장

    ; IdentityFile "C:\User\.ssh\키파일"


ref 

 1. https://wookim789.tistory.com/20

Comments

Popular posts from this blog

[MaritimeCyberTrend] Relationship and prospects between U.S. Chinese maritime operations and maritime cybersecurity

Examining the Reality of Cyber Incidents and the Shortfalls in Compliance Frameworks

Comprehensive List of Shipboard Systems in Commercial Vessels