Odoo Help

Welcome!

This community 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.

0

Connect ssh using odoo

By
abderrahmen
on 3/24/15, 6:18 AM 1,123 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



--
Cordialement,
Khalledi Abderrahmen
+216 55 521 232
tn.linkedin.com/in/abderrahmenkhalledi/
abderrahmen
on 3/24/15, 4:42 PM
1

Axel Mendoza

--Axel Mendoza--
10308
| 7 7 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full time employee trying to understand what to do an how

Reach me at aekroft@gmail.com

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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)

Stats

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