Odoo Help


Connect ssh using odoo

on 3/24/15, 6:18 AM 1,782 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 .

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

Jérémy Kersten (jke)
on 3/24/15, 4:38 PM
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

Khalledi Abderrahmen
+216 55 521 232
on 3/24/15, 4:42 PM
Axel Mendoza
On 7/27/15, 4:36 AM

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

2 follower(s)


Asked: 3/24/15, 6:18 AM
Seen: 1782 times
Last updated: 5/30/16, 7:16 AM