Launch File SSH No Existing Connection
I'm attempting to use a launch file to run a node on a another machine. The node works if run directly from the remote machine or if I SSH in then run it, but I get an error when running through SSH in a launch file.
This it the error I get:
remote[192.168.1.27]: failed to launch on TX2-004-ARM:
Unable to establish ssh connection to [192.168.1.27:22]: No existing session
[192.168.1.27-0] killing on exit
unable to start remote roslaunch child: 192.168.1.27-0
The traceback for the exceptions was written to the log file
This is my launch file:
<launch>
<group>
<machine name="TX2-004-ARM" username="nvidia" address="192.168.1.27" default="true" env-loader="/opt/ros/melodic/env.sh"/>
<node name="serial_node" pkg=""serialros" type="serial_cmd" machine="TX2-004-ARM">
</group>
</launch>
The log file hasn't been of much help and I have have no idea why SSH fails here but not normally.
Any ideas on why ROS fails SSH here?
First of all, make sure you can ping this host 192.168.1.27. Secondly, since you're not using a password, you have to add SSH keys. If you have added, please describe your steps.