.. _adding_a_key_for_automatic_user_login:

Adding a Key for Automatic User Login
-------------------------------------

.. index:: user;user addkey

  
To automate tasks such as backups from remote hosts,
it may be necessary to allow for the SSH login
on VOSS-4-UC by a user without a password.

This login requires the addition of
a public SSH key for the user.  The **user addkey**
command is available to add a keyfile for a user.
The command to run, is of the format:

**user addkey <username> <keyfile>**

Note that:

* The user who runs this command, should have the
  ``<keyfile>`` available on their local directory.
  The public keyfile should therefore be copied to VOSS-4-UC.
* The user (``<username>``) for whom the key is to be added,
  should exist. If the user does not exist on VOSS-4-UC,
  a message shows to indicate this.

If the command is successful, the following message is shown:

``User key added. You should try to ssh now``