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 次查看(过去 30 天)
显示 更早的评论
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 个评论
Prateek Khandelwal
2017-3-16
Can you check if the SSH server is running on your Ubuntu virtual machine ? and if the firewall on the ubuntu allows SSH connections ?
回答(1 个)
Tohru Kikawada
2019-5-2
编辑:Tohru Kikawada
2019-5-2
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 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!