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!