Device Upgrade
Last updated
Last updated
Upgrading to the latest version of sshnpd is identical to the installation process.
Please see the to proceed.
To check the current version of sshnpd installed on your machine simply execute the binary:
Or if you installed as root:
The first line of output should contain the version information:
After upgrading the sshnpd binary, we must restart the sshnpd service so that it runs using the new version. How you proceed is dependent on the original installation method you used:
The universal.sh
installer script will automatically restart the sshnpd.service
unit.
Any existing config will be preserved.
The installer automatically restarts your tmux session, no other steps required!
To safely restart the headless service, we must be slightly more careful with the headless installation. First we must grab the process id of sshnpd:
You should get a single number as output, this is the process ID of the sshnpd process.
Example:
Before we continue, it is good practice to make sure that we have the correct ID:
Example:
As you can see, under CMD
we have /home/atsign/.local/bin/sshnpd -a @atsign_device -m @atsign_client -d mydevice -suv
. This is the command inside our sshnpd.sh service which used to start sshnpd. This is the correct process that we want to kill in order to restart sshnpd.
Now that we have retrieved and verified the process ID, we can use the kill command to kill the process:
Example:
Use the same verification command from before:
Example:
As you can see, there are no entries anymore. This means process 289 has been killed, sshnpd should automatically restart under a new process ID.