Skip to Content
Menu
This question has been flagged
3 Replies
12726 Views

i need to execute a command from python code in odoo8. the same command is functional in a simple py file but when i execute the same command in odoo8 py file i get the follwing error.

ssh: connect to host ip@ port 22: No route to host .


Avatar
Discard

your forgot the user... user@ip[:22]

Thank you! i found a solution for my probleme, i used sshpass and ssh -t command, it did the trick. Thank you again for your help.

2015-03-24 21:38 GMT+01:00 Jérémy Kersten (jke) <jke@mail.odoo.com>:

your forgot the user... user@ip[:22]

Jérémy Kersten


Sent by Odoo S.A. using Odoo about Forum Post Connect ssh usgin odoo



--
Cordialement,
Khalledi Abderrahmen
+216 55 521 232
tn.linkedin.com/in/abderrahmenkhalledi/
Best Answer

I use fabric for ssh remote commands execution. Using a task.execute from fabric and a settings context manager. For authentication better use ssh key authentication between the servers and all will be ok, no password error

Avatar
Discard