-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #602 from atsign-foundation/new-bundles
feat: New bundles to replace templates in releases
- Loading branch information
Showing
30 changed files
with
583 additions
and
166 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
# SSH No Ports Suite | ||
|
||
## Installation | ||
|
||
To install a member of the SSH No Ports suite, use the `install.sh` script. | ||
View the full usage of the installation script by running: | ||
|
||
```sh | ||
./install.sh --help | ||
``` | ||
|
||
### Common install commands | ||
|
||
To install the sshnp client: | ||
|
||
```sh | ||
./install.sh sshnp | ||
``` | ||
|
||
To install the sshnpd daemon using systemd (must be run as root): | ||
|
||
```sh | ||
sudo ./install.sh systemd sshnpd | ||
``` | ||
|
||
To install the sshnpd daemon using a headless cron job: | ||
|
||
```sh | ||
./install.sh headless sshnpd | ||
``` | ||
|
||
To install the sshnpd daemon into a detached tmux session: | ||
|
||
```sh | ||
./install.sh tmux sshnpd | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Headless Scripts | ||
|
||
This directory contains headless scripts for running various components of the | ||
SSH No Ports suite. | ||
|
||
## sshnpd | ||
|
||
### Installation | ||
|
||
The `sshnpd.sh` file should be placed in `~/.local/bin`. | ||
|
||
Modify the `sshnpd.sh` unit to use the appropriate host and client atSigns, | ||
(The boilerplate uses $device_atsign $manager_atsign) as well as the devicename. | ||
Also make sure that username running sshnpd has the .atkeys file in place at | ||
'~/.atsign/keys'. | ||
|
||
Run the following command to view full usage information of the sshnpd binary: | ||
```sh | ||
/usr/local/bin/sshnpd | ||
``` | ||
or if you didn't install the binaries as root: | ||
```sh | ||
~/.local/bin/sshnpd | ||
``` | ||
|
||
### Usage | ||
|
||
A cron entry is created which automatically runs this script upon boot using the | ||
`@reboot` directive. You can use the `crontab` command to view and edit the | ||
configuration: | ||
|
||
To view the crontab: | ||
```sh | ||
crontab -l | ||
``` | ||
|
||
To edit the crontab: | ||
```sh | ||
crontab -e | ||
``` | ||
|
||
## sshrvd | ||
|
||
### Installation | ||
|
||
The `sshrvd.service` file should be placed in `/etc/systemd/system` (as root). | ||
|
||
Modify the `sshrvd.service` unit to use the appropriate atSign, | ||
(The boilerplate uses @atsign) as well as the internet address. | ||
Also change the username and make sure that username running sshrvd has the | ||
.atkeys file in place at '~/.atsign/keys'. | ||
|
||
Run the following command to view full usage information of the sshrvd binary: | ||
```sh | ||
/usr/local/bin/sshrvd | ||
``` | ||
or if you didn't install the binaries as root: | ||
```sh | ||
~/.local/bin/sshrvd | ||
``` | ||
|
||
### Usage | ||
|
||
A cron entry is created which automatically runs this script upon boot using the | ||
`@reboot` directive. You can use the `crontab` command to view and edit the | ||
configuration: | ||
|
||
To view the crontab: | ||
```sh | ||
crontab -l | ||
``` | ||
|
||
To edit the crontab: | ||
```sh | ||
crontab -e | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
sleep 10; # allow machine to bring up network | ||
while true; do | ||
# disable "var is referenced but not assigned" warning for template | ||
# shellcheck disable=SC2154 | ||
"$HOME"/.local/bin/sshnpd -a "$device_atsign" -m "$manager_atsign" -d "$device_name" -v | ||
sleep 10 | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
sleep 10; # allow machine to bring up network | ||
while true; do | ||
# disable "var is referenced but not assigned" warning for template | ||
# shellcheck disable=SC2154 | ||
"$HOME"/.local/bin/sshrvd -a "$atsign" -i "$internet_address" | ||
sleep 10 | ||
done |
Oops, something went wrong.