Tmux session
Follow these four steps to run the NoPorts daemon within a tmux session
Last updated
Follow these four steps to run the NoPorts daemon within a tmux session
Last updated
First, ensure tmux is installed on your machine:
If tmux is not available, a quick web search of Install tmux for <your distro>
should help you easily install it. Most distros include the tmux package in their repository.
Change directories into the unpacked download:
Then run the installer:
This will install the binaries to ~/.local/bin
.
Instead, if you'd like to install the binaries to /usr/local/bin
, run the installer as root:
After installing the startup script, we must configure it, with nano
or vi
depending on your preference.
or
You'll then be greeted with a file that looks like this:
Replace $user
with the running sshnpd
Replace $device_atsign
with the
Replace $manager_atsign
with the
Replace $device_name
with your own for this device. You will need this value later, so don't forget it.
Add any additional config to the end of the line where sshnpd is run, some useful flags you should consider adding:
-u
: "unhide" the device, sharing the username and making it discoverable by sshnp --list-devices
-s
: "ssh-public-key", allow ssh public keys to be shared by sshnp and automatically authorized by sshd, saves you from dealing with ssh public key management. If multiple people use the device, we recommend leaving this off and managing ssh public keys yourself.
To see the rest of the available options run sshnpd to see the usage.
We will now activate the device address, you only need to activate the device address now. The client address will be activated later during the client installation.
Now that you have at_activate installed, you can invoke the command with the name of the address you would like to activate:
The application will pause and wait for the input of a one time pin (OTP) before you can continue. You should receive this pin to the contact information associated with the registration of your noports address (i.e. email or text message). ***If you are using a gmail.com account we have seen that sometimes the OTP gets stuck in the SPAM or PROMOTIONS folder. If you do not see the OTP check those folders.
Once you receive the message, enter the pin into the application and press enter to continue. The application should proceed to create the cryptographic keys and store them at .
An address can only be activated once, to install this address to future devices, you must copy this file to the device (see 3.b.).
If you have activated the device address before, you must copy the address from another machine where it's been activated.
The address will be located at . Copy this file from your other machine to the same location on the machine that you are installing sshnpd on.
The tmux service will automatically be started by the cron @reboot
directive when your machine restarts. If you would like to start it immediately, note that you must make sure to disown the tmux process so that it doesn't hangup when you logout.
Run the following command to start it immediately:
You can use regular tmux commands to observe the service:
If you don't own a pair of noports addresses, please visit before continuing.
Your tmux session is ready to go, you can now proceed to , or if you've already done that, checkout our .