To run rviz on the remote machine through the ssh connection.
I have established the ssh connection between my two machines.
After executing the rosrun rviz rviz command I got the following output: (process:16842): Gtk-WARNING **: Locale not supported by C library. Using the fallback 'C' locale. [ INFO] [1552391707.536508166]: rviz version 1.12.16 [ INFO] [1552391707.536651121]: compiled against Qt version 5.5.1 [ INFO] [1552391707.536687359]: compiled against OGRE version 1.9.0 (Ghadamon) [ INFO] [1552391711.047164917]: Stereo is NOT SUPPORTED [ INFO] [1552391711.047360974]: OpenGl version: 3 (GLSL 1.3).
(rviz:16842): GConf-WARNING **: Client failed to connect to the D-BUS daemon: Failed to connect to socket /tmp/dbus-3MEOy7ZtFa: Connection refused
But the rviz got opened on the machine and it does not show anything except the grid.
So how should I run rviz on the remote machine through the ssh connection.