Explore top 10 tips to secure your open-source projects now. Read More

×
Alerts This Week
Warning Icon 1 594
Alerts This Week
Warning Icon 1 594

Securely Bind SSH Public Key To Command For Enhanced Access Control

24.Key Code Esm H446

In the client-server architecture used by the SSH protocol, a client can authenticate by providing a tunneled clear text password or by using a public/private key pair: this is called public key authentication. A user who logs in via a public key on a remote machine has complete access to the command line; in certain situations, however, it may be useful to associate a public key to a single specific command, for security reasons.

In this tutorial we see how to copy a public key to an SSH server, and how to bind it to a specific command.

In this tutorial you will learn:

  • How to copy an public key to an SSH server
  • How to bind an SSH public key to a specific command