Raspberry Pi_Kor_18.0 Chapter 18 원격 접속

Chapter 18 원격 접속

Chapter 주요 내용

여기서는 원격에 있는 Raspberry Pi 시스템에 연결하여 작업하는 여러 가지 방법에 대해서 설명하고 있다. 원격에 있는 Raspberry Pi 시스템에 접속하여 원격 시스템에서 필요한 명령을 지시할 수도 있고, 아니면 단순히 원격 시스템이 가지고 있는 자료만 사용할 수도 있다.

다음과 같은 항목에 대한 내용을 포함하고 있다.
■ 원격 접속 개요

■ 원격 Terminal 접속

■ 원격 Desktop GUI 접속

■ 원격 드라이브 접속

Raspberry Pi_Eng_18.0 Chapter 18 Remote Connection

Chapter’s Main Topics

This chapter describes the various ways to connect to and work with a remote Raspberry Pi system. You can connect to the remote Raspberry Pi system to issue necessary commands in the remote system, or you can simply use the data that the remote system has.

It includes descriptions on the following topics:

■ Overview of remote connection
■ Remote Terminal Connection
■ Remote Desktop GUI connection
■ Remote drive ccnnecting

Raspberry Pi_Eng_18.4.2 Remote Drive Connection Using SCP Program

18.4.2 Remote Drive Connection Using SCP Program

SCP (Secure Copy) is a program that sends and receives files to and from a remote computer using SFTP or SCP protocol through SSH.

18.4.2.1 Installing/Enabling SSH server Program

This program basically assumes that SSH server of the remote computer is running. To do this, you must first enable the SSH server in the Raspberry Pi system. For details, see the description of [9.9.1 Enabling SSH].

Raspberry Pi_Eng_18.4.1 Remote Drive Connection Using SambProgram

18.4 Remote Drive Connection

18.4.1 Remote Drive Connection Using Program

18.4.1.1 Installing Server Program

The program allows you to use files of remote Raspberry Pi system as a network drive.

First, we install the program as shown below.

Raspberry Pi_Eng_18.3.2 Desktop GUI connection Using VNC Program

18.3.2 Desktop GUI connection Using VNC Program

VNC (Virtual Network Connection) is a connection method that connects to a remote computer from my local computer and provides the ability to control the computer at will as if it were my own computer.

VNC program consists of a VNC server and a VNC client, each of which interacts with each other remotely.

Raspberry Pi_Eng_18.3.1 Remote Desktop Connection Using XRDP Program

18.3 Remote Desktop GUI connection

18.3.1 Remote Desktop Connection Using Program

As a way to connect to Raspberry Pi system from MS Windows, you can use “Remote desktop connection” method which is used as standard when connecting to remote system from MS Windows.

Raspberry Pi_Eng_18.2.4 SSH Connection with PuTTy Program in MS Windows

18.2.4 SSH Connection with Program in MS Windows

SSH client program is required to access Raspberry Pi system with SSH in MS Windows. There are a number of programs that can be used as SSH clients, and you can use anyone that supports SSH.

Here, we will use the Putty program, which is free and offers a lot of features, so many people use it as standard. PuTTY is a program developed by Simon Tatham that provides Telnet and SSH functions on MS Windows or Unix series computers, and basically provides functions which is the type of terminal emulator. To download the Putty program, you can use the following URL:

Raspberry Pi_Eng_18.2.3 SSH Connection on Unix/Linux Series, and Apple Mac

18.2.3 SSH Connection on Unix/Linux Series, and Apple Mac

The SSH client program is installed by default in these operating systems, so no separate program installation is required. To connect to the Raspberry Pi system using SSH, use “ssh” command. The following command is a command format on Linux. The command on Apple Mac is similar, and check details if necessary.

Raspberry Pi_Eng_18.2.2 Configuring SSH Server

18.2.2 Configuring SSH Server

To remotely connect to the Raspberry Pi system via SSH, the SSH server in the Raspberry Pi system must be enabled. To configure the SSH server on the Raspberry Pi system, use the “raspi-config” command. For details, see the description of [9.9.1 Enabling SSH].

Raspberry Pi_Eng_18.2.1 Features of SSH

18.2 Remote Terminal Connection

18.2.1 Features of SSH

There are several programs that support remote terminal connections. In the past, a program called Telnet that supports remote terminal connections has been used widely. However, this program has a serious security problem because it transmits communication data in a text format without encrypting it, so it is rarely used now.