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.
This hack uses PyGtalkRobot to bring up an instance of GtalkBot, which can run remote ssh commands via pysftp.
- Install the following Python modules
- pysftp
- py3dns
- xmpppy
- configobj
- 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
- shell> python exec-chat.py
- Add the Gtalk bot (gtalk-bot-email_id) to your Gtalk account and start chatting.