.. _ssh_plugin: SSH CLI ======= The ssh plugin gives the VPP CLI to users who log in with an SSH client. It needs the ``libssh`` development files (``libssh-dev`` on Debian and Ubuntu) at build time, the plugin is not built without them. Compared to telnet, an SSH session is encrypted and authenticated, and VPP learns the terminal of the user from the client: its size, the changes of the size, and whether it takes ANSI sequences. Configuration ------------- The plugin is off unless the ``ssh`` section, with something in it, is in the startup configuration: .. code-block:: text ssh { port 2222 user alice { key ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIExampleExampleExampleExampleExample } } ``port`` TCP port to listen on, the default is 2222. ``listen-address`` Address to listen on, the default is 127.0.0.1. VPP gives full control of the system to anybody who logs in, do not listen on a wider network than needed. ``host-key`` File with the private key of the host. When it is not set, the file ``ssh_host_ed25519_key`` in the configuration directory is used, which is ``/etc/vpp`` for root and ``$XDG_CONFIG_HOME/vpp`` for the other users, see ``config-dir`` in the ``unix`` section. The file has to exist, VPP never creates it and does not start without it, so that the clients see the same key after every restart. Create it once, as the user who runs VPP, with an OpenSSH private key without a passphrase: .. code-block:: console $ mkdir -p