aboutsummaryrefslogtreecommitdiffstats
path: root/community/autossh/README.alpine
diff options
context:
space:
mode:
authorStuart Cardall <developer@it-offshore.co.uk>2016-09-03 19:00:47 +0000
committerJakub Jirutka <jakub@jirutka.cz>2016-09-11 12:35:48 +0200
commitc84b0e472be76e3d487e8997fdbcbbd5be22f659 (patch)
tree1e9ac4e9a8386420e37fe8e7f27cde71087ca038 /community/autossh/README.alpine
parenta9f7dfbf8dfaaf3c0ade5cf4e6468657d575eacc (diff)
downloadaports-c84b0e472be76e3d487e8997fdbcbbd5be22f659.tar.bz2
aports-c84b0e472be76e3d487e8997fdbcbbd5be22f659.tar.xz
community/autossh: update README.alpine and improve abuild
Diffstat (limited to 'community/autossh/README.alpine')
-rw-r--r--community/autossh/README.alpine9
1 files changed, 5 insertions, 4 deletions
diff --git a/community/autossh/README.alpine b/community/autossh/README.alpine
index d7013c3ad8..f67cbd9174 100644
--- a/community/autossh/README.alpine
+++ b/community/autossh/README.alpine
@@ -16,10 +16,11 @@ echo 'y' |ssh-keygen -t ed25519 -N ''
-------------------------------------------------------------------
#!/bin/sh
+sleep 2
exec 2>&1
su -s /bin/sh autossh -c \
-'autossh -M 0 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -L 1234:localhost:1234 -N -l autossh remote.ip.addr'
--------------------------------------------------------------------------------------------------------------------------
+'export AUTOSSH_GATETIME=0 && nohup autossh -M 0 -o "ServerAliveInterval 60" -o "ServerAliveCountMax 3" -L 1234:localhost:1234 -N -l autossh remote.ip.addr'
+------------------------------------------------------------------------------------------------------------------------------------------------------------
ln -s /etc/sv/autossh /etc/service/autossh
-------------------------------------------------------------------------------
** if running autossh in a script without using runit add -f to ssh options **|
@@ -30,5 +31,5 @@ ln -s /etc/sv/autossh /etc/service/autossh
psql -h 127.0.0.1 -p 1234 -U username -d database
-------------------------------------------------------------------------------
openssh-server: works out of the box | ed25519 keys possible
-dropbear: echo "/bin/false" >> /etc/shells | ecdsa keys possible
-tinyssh: port forwarding not yet implemented | ed25519 keys possible
+dropbear: echo "/bin/false" >> /etc/shells | ecdsa keys possible
+tinyssh: port forwarding not yet implemented | ed25519 keys possible