Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 747 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 747 Bytes

exec-gtalk-bot

A Gtalk bot that supports running remote ssh commands. This was a hack I had worked on during one of the hack-nights at work.

How does it work ?

This hack uses PyGtalkRobot to bring up an instance of GtalkBot, which can run remote ssh commands via pysftp.

Usage

  1. Install the following Python modules
    • pysftp
    • py3dns
    • xmpppy
    • configobj
  2. Update the following details in config/auth_config.ini
    • gmail_bot_email_id
    • gmail_bot_password
    • username and password for ssh, as key/vals, for each gtalk user who wishes to run remote ssh commands
  3. shell> python exec-chat.py
  4. Add the Gtalk bot (gtalk-bot-email_id) to your Gtalk account and start chatting.

Sample output in wiki