Skip to content

Instantly share code, notes, and snippets.

@shdennlin
shdennlin / ptt_autologin.sh
Last active August 29, 2021 08:57 — forked from fkztw/ptt_autologin.sh
A shell script to login PTT via ssh automatically.
#!/usr/bin/env expect
# Login into PTT via SSH.
# Combine crontab with this script so you don't forget to login PTT everyday.
# Preparation:
# Ubuntu: $ sudo apt install expect
# Usage: /bin/bash -c ${FILE_PATH_OF_THIS_SCRIPT}
# Example in crontab: