ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

Confusion over 'ssh' command for networking

asked 2014-12-22 15:38:53 -0500

A.M Dynamics gravatar image

updated 2014-12-22 15:41:15 -0500

Dear All,

I am trying to create a ROS network between two computers. The computer A as master (userA@ComputerNameA:~$) and computer B as client (userB@ComputerNameB:~$). I also set ROS Environment Variables as follow.

On Computer A: export ROS_HOSTNAME= ComputerNameA export ROS_MASTER_URI=http://ComputerNameA:11311

On Computer B: export ROS_HOSTNAME=ComputerNameB export ROS_MASTER_URI=http://ComputerNameA:11311

My problem is when I want to test the network connectivity by SSH command before using ROS packages I get confused and don't know which command I must run on which computer, Master or Client?

For example, If I must run the ssh command on master (computer A), which one of these commands is correct?

1- (userA@ComputerNameA:~$) ssh userA@ComputerNameB or 2- (userA@ComputerNameA:~$) ssh userB@ComputerNameB


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-12-22 17:29:02 -0500

Murilo F. M. gravatar image

Regarding the command to run ssh, the user must exist on the remote machine, thus your second command is the correct one.

If you'd like to deepen your understanding of how ssh works, the top hits of a google search for ssh tutorial will come handy.

That said, I would also advise you to export the environment variable ROS_IP for each computer. For instance, for computer A: export (replacing the x's with computer A's IP address).

You may also find the following two links useful:



I hope it helps.

edit flag offensive delete link more


Thanks. it works

A.M Dynamics gravatar image A.M Dynamics  ( 2014-12-22 18:06:27 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-12-22 15:38:53 -0500

Seen: 246 times

Last updated: Dec 22 '14