mirror of
https://github.com/termux/termux-packages.git
synced 2025-03-04 12:58:53 +00:00
Run `sv-enable ssh-agent` to enable the service, and add `export SSH_AUTH_SOCK="$PREFIX"/var/run/ssh-agent.socket` to .bashrc to make all terminal sessions use the same agent. The ssh-agent run script has been put in a subdirectory sv in the builder dir, and the sshd service script moved there as well. This is hopefully clearer than trying to put a multiline script in the TERMUX_PKG_SERVICE_SCRIPT variable.
3 lines
46 B
Bash
3 lines
46 B
Bash
#!@TERMUX_PREFIX@/bin/sh
|
|
exec sshd -D -e 2>&1
|