Cannot connect to my Virtual Machine "Ubuntu 14.04" as a ROS device for code generation. Error At "Test" stage under Hardware Implementation for Simulink Coder
4 views (last 30 days)
Show older comments
Windows 10 Host with Ubuntu 14.04 Virtual Machine using VMWare Workstation 12 Player. I have student licence, with Matlab Coder, Simulink Coder, Robotics System Toolbox if that matters. I have setup ROS variables, ROS_MASTER_URI and ROS_IP in my VM's .bashrc file to host ros session, and can access the data successfully from matlab and simulink running on my host Windows 10. I would now like to test code generation, and am following instructions from https://www.mathworks.com/help/robotics/examples/generate-a-standalone-ros-node-from-simulink.html . In "Configuration Parameters" -> "Hardware Implementation" -> "Build Options" -> "Edit" (Device Address, Username, Password). all are correct, but I receive this error, not sure where to go from here: (removed IP and username for question)
1. Pinging device '-.-.-.-'. Successfully pinged device. --- 2. Establishing connection to device '-.-.-.-' at SSH port 22. Connecting with username '-'. Cannot connect to device. Check that the device address, username, and password are correct.
2 Comments
Prateek Khandelwal
on 16 Mar 2017
Can you check if the SSH server is running on your Ubuntu virtual machine ? and if the firewall on the ubuntu allows SSH connections ?
Answers (1)
Tohru Kikawada
on 2 May 2019
Edited: Tohru Kikawada
on 2 May 2019
You can check the ssh service is running on your Ubuntu with the following command:
sudo service ssh restart
If the service is not running, please install and enable the service as follows:
sudo apt-get install openssh-server
sudo service ssh start
Note that enabling the SSH service may increase security risks on your system, so please be careful.
0 Comments
See Also
Categories
Find more on Simulink Coder in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!