This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.


Open terminal on host computer to use Linux shell on Raspberry Pi hardware





openShell(mypi) opens an SSH terminal on your host computer that provides encrypted access to the Linux® command shell on the Raspberry Pi™ hardware. When you are prompted, enter a user name and password. The default user name and password are pi and raspberry. This function is not supported in MATLAB® Online™.


collapse all

You can use an encrypted SSH terminal session to change the password on your Raspberry Pi board.

It is a good security practice to change the default password to a secure password the first time that you connect to the Raspberry Pi board.

mypi = raspi()

Start the raspi-config utility.

sudo raspi-config

Select 2 Change User Password and change the default password to a secure password.

Input Arguments

collapse all

Connection to a specific Raspberry Pi hardware board, specified as a raspi object.