#! /bin/bash # # tinyssh.install # Copyright (C) 2014 Adrian Perez # # Distributed under terms of the MIT license. # set -e post_install () { cat <<-EOF A generic systemd template unit has been installed, which can be used to make TinySSH listen on more than one interface/address. To configure it in the default port (22) on all interfaces, use: systemctl enable tinyssh@22.socket systemctl start tinyssh@22.socket Note that you can also specify the interface address, and multiple address/port combinations can be configured at the same time by writing the "ipaddress:port" as the unit instance. For example: systemctl enable tinyssh@192.168.0.10:22222.socket systemctl start tinyssh@192.168.0.10:22222.socket EOF } post_upgrade () { post_install }