-
Notifications
You must be signed in to change notification settings - Fork 3
Tutorial Interactive user access
Palo Alto Networks SSH Manager · vSSH CLI
Goal: give engineers short-lived SSH access to a set of hosts, with no static keys in authorized_keys. When a session expires, access ends on its own.
This tutorial connects the whole chain: what an administrator sets up in SSH Manager, what a server admin does on each host, and what an engineer runs day to day.
An administrator sets these up once. Exact screens are in the product documentation; the pieces you need are:
- An SSH certificate issuance template for user logins, for example
Users - Web Admins, with the allowed principals and a short maximum validity. - The certificate authority the template signs with.
- An authentication method for your users, such as browser SSO through your identity provider.
Note the template name and the service URL, for example https://tpp.example.com. Engineers and server admins both need them.
On each host, trust the CA that signs user certificates. Retrieve the CA key and point sshd_config at it:
vssh service ca retrieve \
--use-to-configure openssh_server \
--out-file /etc/ssh/trusted_user_ca_keys \
--template "Users - Web Admins"Add the trust line to sshd_config, then validate and reload:
TrustedUserCAKeys /etc/ssh/trusted_user_ca_keys
sudo sshd -t && sudo systemctl reload sshdConfirm the result:
sudo vssh openssh server showFor per-host principal mapping and host-key trust, see SSH server administration.
Install vSSH (see Installing or updating to the latest version), then save the connection details so you do not repeat them:
vssh profile set url=https://tpp.example.comSee Working with configuration profiles.
vssh login --auth browservSSH opens your browser and shows a one-time code. Complete sign-in, including MFA, with your identity provider. On success it loads a short-lived certificate into your OpenSSH agent and prints the identity and time left:
Enrolled certificate for Users - Web Admins
Principals: web-admins
Valid for: 11h59m
The default session length is 12 hours. Change it with --session-time. See login.
Use ssh as normal. The agent presents the certificate.
ssh deploy@app01.example.comCheck what is loaded and how long it is valid:
vssh statusThe certificate expires on its own. To clear it early:
vssh logout- No engineer public key sits in any
authorized_keysfile. - Access is bounded by the certificate lifetime, not by a manual offboarding step.
- Every login is authenticated through your identity provider and recorded centrally.
Palo Alto Networks SSH Manager · vSSH CLI. Licensed under the Apache License, Version 2.0. To report a problem or share an idea, use Issues.
Getting started
Configuration
Authentication
Guides
Tutorials
- Interactive user access
- Machine identity for apps and hosts
- CI/CD pipeline enrollment
- Enroll for interactive logins
- Enroll for an application or host
- Renew a certificate
- Retrieve SSH CA public keys
Command reference
- Overview and global options
- login
- logout
- certificate
- profile
- service
- openssh
- status
- update
- version
- help
Reference