forked ssh and installed tinc
This commit is contained in:
3
tinc/rootfs/usr/bin/hassio
Normal file
3
tinc/rootfs/usr/bin/hassio
Normal file
@ -0,0 +1,3 @@
|
||||
#!/usr/bin/env bashio
|
||||
bashio::log.yellow "The 'hassio' command is deprecated, please use 'ha' instead!"
|
||||
ha "$@"
|
||||
5
tinc/rootfs/usr/local/bin/reboot
Normal file
5
tinc/rootfs/usr/local/bin/reboot
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# This script overrides the reboot command to reboot the host machine.
|
||||
# ==============================================================================
|
||||
bashio::host.reboot
|
||||
5
tinc/rootfs/usr/local/bin/shutdown
Normal file
5
tinc/rootfs/usr/local/bin/shutdown
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/with-contenv bashio
|
||||
# ==============================================================================
|
||||
# This script overrides the shutdown command to shutdown the host machine.
|
||||
# ==============================================================================
|
||||
bashio::host.shutdown
|
||||
5
tinc/rootfs/usr/share/tempio/homeassistant.profile
Normal file
5
tinc/rootfs/usr/share/tempio/homeassistant.profile
Normal file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
export PS1="\[\e[0;32m\][\h \W]\$ \[\e[m\]"
|
||||
export SUPERVISOR_TOKEN={{ .supervisor_token }}
|
||||
|
||||
ha banner
|
||||
26
tinc/rootfs/usr/share/tempio/sshd_config
Normal file
26
tinc/rootfs/usr/share/tempio/sshd_config
Normal file
@ -0,0 +1,26 @@
|
||||
# This is the sshd server system-wide configuration file. See
|
||||
# sshd_config(5) for more information.
|
||||
|
||||
# Logging
|
||||
LogLevel INFO
|
||||
|
||||
# Default
|
||||
AllowTcpForwarding {{ if .server.tcp_forwarding }}yes{{ else }}no{{ end }}
|
||||
GatewayPorts no
|
||||
X11Forwarding no
|
||||
|
||||
Subsystem sftp /usr/lib/ssh/sftp-server
|
||||
|
||||
# Authentication:
|
||||
PermitRootLogin yes
|
||||
|
||||
Banner none
|
||||
PrintMotd no
|
||||
|
||||
{{ if .authorized_keys }}
|
||||
PasswordAuthentication no
|
||||
{{ else if .password }}
|
||||
PasswordAuthentication yes
|
||||
PermitEmptyPasswords no
|
||||
{{ end }}
|
||||
|
||||
Reference in New Issue
Block a user