Skip to content

Commit

Permalink
treehouses sshtunnel key name improved (fixes #2279) (#2278)
Browse files Browse the repository at this point in the history
Co-authored-by: dogi <[email protected]>
  • Loading branch information
JLKwong and dogi committed Feb 23, 2023
1 parent 86c35e8 commit f750a7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions modules/sshtunnel.sh
Original file line number Diff line number Diff line change
Expand Up @@ -69,12 +69,14 @@ function sshtunnel {
} > /etc/tunnel
fi

sshkey=$(treehouses sshtunnel key name | cut -d ' ' -f 5)
{
echo
echo "/usr/bin/autossh -f -T -N -q -4 -M $portinterval \\"
echo "-R $portssh:127.0.1.1:22 \\"
echo "-R $portweb:127.0.1.1:80 \\"
echo "-R $portnewcouchdb:127.0.1.1:2200 \\"
echo "-i /root/.ssh/$sshkey \\"
echo "$host # $((portinterval - portint_offset))"
} >> /etc/tunnel
chmod +x /etc/tunnel
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@treehouses/cli",
"version": "1.26.8",
"version": "1.26.9",
"remote": "4000",
"description": "Thin command-line interface for Raspberry Pi low level configuration.",
"main": "cli.sh",
Expand Down

0 comments on commit f750a7c

Please sign in to comment.