Skip to content

bilylee/wessh

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

wessh

Make your WeChat function like ssh.

Introduction

Use this simple python script, you can:

  • send commands to server by WeChat just like what you will do in a ssh session.
  • download files from server to WeChat.
  • get log files of executed commands.

Dependency

  • itchat

Usage

  1. clone this repository to your server
git clone https://github.com/bilylee/wessh.git
  1. run this script in your server
cd wessh
tmux # put commands that last for a long time in tmux :)
python wessh.py
  1. scan the QR code to login your WeChat account.

  2. now you can send bash commands in your filehelper just like in a ssh.

CAUTION: you can only send commands by your phone since WeChat doesn't allow multiple logins in different devices. Use other devices(like computer or web browsers), this script will exit.

demo image

Advanced usage

  • you can get the help message by using the help command.
  • commands that doesn't belong to the SIMPLE_OUTPUT_CMD list will save their stdout and stderr to a log file. You can get this log file by using log command if this is the lastest command, or log index_number where index_number is the integer number right below your sent command.
  • use dl filepath to download files from your server.

About

Make your WeChat function like ssh

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages