Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
modularpi:remotssh:index [2026/02/14 23:33] – created adminmodularpi:remotssh:index [2026/02/15 20:24] (current) admin
Line 5: Line 5:
 ===== 1. 비밀번호 인증 접속 ===== ===== 1. 비밀번호 인증 접속 =====
 OS 설치 시 비밀번호 인증 사용으로 설정한 경우, 아래와 같이 SSH로 원격 접속할 수 있습니다. OS 설치 시 비밀번호 인증 사용으로 설정한 경우, 아래와 같이 SSH로 원격 접속할 수 있습니다.
-{{ :modularpi:os_ssh_sc.png?nolink |}}+ 
 +{{ :modularpi:remotssh:os_ssh.png?nolink |}} 
   * 명령어 프롬프트 실행   * 명령어 프롬프트 실행
   * ssh <계정이름>@<모듈라Pi의 ip주소> → ''ssh pi@192.168.0.7''   * ssh <계정이름>@<모듈라Pi의 ip주소> → ''ssh pi@192.168.0.7''
   * 계정 비밀번호 입력 → ''raspberry''   * 계정 비밀번호 입력 → ''raspberry''
-{{ :modularpi:ssh_비밀번호방식.jpg?nolink |}}+ 
 +{{ :modularpi:remotssh:ssh_id_pw.jpg?nolink |}}
  
   * ssh 접속시 Modular Pi의 password가 막혀있는 상태라면 다음과 같이 설정을 변경해야 합니다.   * ssh 접속시 Modular Pi의 password가 막혀있는 상태라면 다음과 같이 설정을 변경해야 합니다.
   * **''sudo nano /etc/ssh/sshd_config''** 파일을 열어 다음과 같이 수정합니다.**''PasswordAuthentication yes''**   * **''sudo nano /etc/ssh/sshd_config''** 파일을 열어 다음과 같이 수정합니다.**''PasswordAuthentication yes''**
 +
 ===== 2. 공개키(Public Key) 인증 접속  ===== ===== 2. 공개키(Public Key) 인증 접속  =====
-OS를 설치하기 전에, 개발 PC에는 공개키/개인키(Public/Private Key) 쌍이 미리 생성되어 있어야 합니다. [[modularpi:KEYGEN|[공개키/개인키(Public/Private Key) 만들기]]]+ 
 +OS를 설치하기 전에, 개발 PC에는 공개키/개인키(Public/Private Key) 쌍이 미리 생성되어 있어야 합니다. [[:modularpi:KEYGEN:|[공개키/개인키(Public/Private Key) 만들기]]]
  
   * [[https://www.raspberrypi.com/software/|"Raspberry Pi Imager"]] 를 사용하여 Raspberry Pi OS를 설치할 때, **''SSH 사용 → 공개키 인증만 허용''** 옵션을 선택해야 합니다.\\   * [[https://www.raspberrypi.com/software/|"Raspberry Pi Imager"]] 를 사용하여 Raspberry Pi OS를 설치할 때, **''SSH 사용 → 공개키 인증만 허용''** 옵션을 선택해야 합니다.\\
Line 22: Line 27:
 ※ 더 많은 내용은 [[https://www.raspberrypi.com/documentation/computers/remote-access.html#ssh|Raspberry Pi's documentation ]]에서 확인할 수 있습니다. ※ 더 많은 내용은 [[https://www.raspberrypi.com/documentation/computers/remote-access.html#ssh|Raspberry Pi's documentation ]]에서 확인할 수 있습니다.
  
-{{ :modularpi:os_ssh.png?nolink |}}\\ 
  
 +{{ :modularpi:remotssh:os_ssh.png?nolink |}}
 다음 명령어를 이용하여 개발 PC(Windows Pc)와 모듈라 Pi(Linux Pc)간의 ssh접속 인증을 확인할 수 있습니다. 다음 명령어를 이용하여 개발 PC(Windows Pc)와 모듈라 Pi(Linux Pc)간의 ssh접속 인증을 확인할 수 있습니다.
   * ssh <계정이름>@<모듈라Pi의 ip주소> → ''ssh pi@192.168.0.10''   * ssh <계정이름>@<모듈라Pi의 ip주소> → ''ssh pi@192.168.0.10''
-{{ :cfnet:remoteprogramming:test_ssh.mp4?900x506 |}}+ 
 +{{ :modularpi:remotssh:test_ssh.mp4?900x506  |}}
  
  
Line 42: Line 48:
   * **''cat ~/id_rsa.pub >> ~/.ssh/authorized_keys''**   * **''cat ~/id_rsa.pub >> ~/.ssh/authorized_keys''**
   * **''chmod 700 ~/.ssh/authorized_keys''**   * **''chmod 700 ~/.ssh/authorized_keys''**
-{{ :modularpi:ssh키등록.png?nolink |}} +{{ :modularpi:remotssh:ssh82.png?nolink |}}
 [[..:index|Modular Pi (산업용 모듈형 라즈베리 파이)]] [[..:index|Modular Pi (산업용 모듈형 라즈베리 파이)]]