> For the complete documentation index, see [llms.txt](https://idminer.gitbook.io/robotis/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://idminer.gitbook.io/robotis/part-1-turtlebot3/24.-faq/24.1.-ru-he-zai-raspberry-pi-shu-mei-pai-qi-dong-ssh-server.md).

# 24.1. 如何在 Raspberry Pi 樹莓派啟動 SSH Server

首先，您必須在 Remote PC 和 Raspberry Pi 上安裝 SSH。

```
$ sudo apt-get install ssh
```

對於 Raspberry Pi（TurtleBot3 Burger 和 Waffle Pi），由於 Ubuntu MATE 16.04.x 和 Raspbian 的 SSH 服務器預設是禁用的。如果要啟用 SSH，請參閱以下文檔。

* [**SSH Instruction** ](https://www.raspberrypi.org/documentation/remote-access/ssh/)
* [**Ubuntu MATE in Raspberry Pi**](https://ubuntu-mate.org/raspberry-pi/)

或使用以下指令。

```
$ sudo service ssh start
$ sudo ufw allow ssh
```

在開始連接 SSH 之前，您需要檢查 host name 主機名稱。 下圖中的紅色方框顯示主機名稱。

<div align="left"><img src="https://3058168660-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LkXc5k_SFaP9gK2gsU8%2F-Ll_wSRXj8jypZPOxvaJ%2F-LlaTYR9gH1SnMLN2s_p%2Fcomputer_name.png?alt=media&amp;token=46801a97-9238-4232-9fad-668da8984a55" alt=""></div>

然後，你就可以在 Remote PC 上使用 SSH 來下指令。

```
$ ssh ${HOSTNAME}@xxx.xxx.xx.xx
```

<div align="left"><img src="https://3058168660-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LkXc5k_SFaP9gK2gsU8%2F-Ll_wSRXj8jypZPOxvaJ%2F-LlaTvO9krjnXa7Qvxf0%2Fconnection_ssh.png?alt=media&amp;token=451596b9-2b1b-444c-8337-85d035450820" alt=""></div>
