openShell - Open terminal on host computer to use Linux shell on Raspberry Pi hardware - MATLAB (original) (raw)
Main Content
Open terminal on host computer to use Linux shell on Raspberry Pi hardware
Syntax
Description
openShell([mypi](#bt548g1-1%5F1%5Fsep%5Fshared-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
andraspberry
. This function is not supported in MATLAB® Online™.
Note
Executing the openShell
command in Linux or macOS platforms does not open a new SSH terminal. The SSH terminal opens in MATLAB Command Window itself. Use the exit command to terminate the SSH terminal session.
Examples
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() openShell(mypi)
Start the raspi-config utility.
Select 2 Change User Password
and change the default password to a secure password.
Input Arguments
Connection to the Raspberry Pi hardware board, specified as a raspi object.