├── Pi.py #树莓派摄像头及监控启动
├── README.md
├── baidu.py #文件上传至百度云盘
├── mail.html #
├── monitor.py
├── notice.py
├── phash.py
├── test
├── top
│ ├── __init__.py
│ ├── __init__.pyc
│ └── api
├── true_notice.py
└── venv
├── bin
├── include
├── lib
├── pip-selfcheck.json
└── share
树莓派安装autossh,并且生成公钥私钥
sudo apt-get install autossh
ssh-keygen
ssh-copy-id username@server_ip
新建autossh自启动脚本, chmod a+x autossh 并运行, 脚本的内容:
#!/bin/bash
/bin/su -c '/usr/bin/autossh -M 1234 -NR 19999:localhost:22 buhuipao@server_ip -p your_port' - pi &
复制autossh到/etc/init.d/目录下, 执行:
sudo update-rc.d autossh defaults 90
这样就可以在自己的服务器上登录你的树莓派了
ssh -p 19999 pi@localhost
pass