# sending command from remote pc using paramiko

Hello,

I am using a robot that is connected to a remote pc using localhost. I have used the Paramiko library to send commands from remote pc to my robot. I want to publish a number on /activate topic like this:

rostopic pub /activate std_msgs/Int16 "data: 1"


I have written the following code:

import paramiko
host = "xxx.xxx.x.x"
port = 22