How to upgrade the step-ssh utilities on an existing host

If you'd like to update your server hosts Smallstep apps without registering a host, you can do that as follows.


Step 1: SSH to your host as a user with root access. (Keep the hostname handy, you will need it later)
ssh <hostname>
 
Step 2: Run all steps as the root user.
sudo su
 
Step 3: Install the latest step-ssh utilities  Install on Ubuntu & Debian (DEB package)
  Install on CentOS or Amazon Linux 2 (RPM package)
Step 4: Activate the PAM/NSS Modules & HUP SSHD
export hostname="[hostname]"
step-ssh activate "$hostname"