Main Content


Open interactive command shell to device

Since R2019b



openShell(device) opens an SSH terminal on your host computer that provides encrypted access to the Linux® command shell on the ROS or ROS 2 device. When prompted, enter a user name and password.


collapse all

Connect to a ROS device and open the command shell on your host computer.

Connect to a ROS device. Specify the device address, user name, and password of your ROS device.

d = rosdevice('','user','password');

Open the command shell.


Input Arguments

collapse all

ROS or ROS 2 device, specified as a rosdevice or ros2device object, respectively.

Version History

Introduced in R2019b