Password ManagerDeveloper Tools

Advanced SSH Agent Uses

This document provides guides to use Bitwarden SSH agent for advance use cases. To learn more about the Bitwarden SSH agent, or get started with the Bitwarden SSH agent, see the SSH Agent document.

SSH connection

SSH connect to servers and virtual machines with SSH keys securely stored in Bitwarden.

  1. To begin, make sure the SSH agent has been enabled on your Bitwarden desktop app by navigating to Settings  and Enable SSH agent:

    Enable SSH storage on desktop client
    Enable SSH storage on desktop client
  2. Create a new SSH key or import and existing SSH key to your Bitwarden desktop app.

    Server key
    Server key
  3. You may now connect to your server using SSH connection. The SSH agent will retrieve the key from the SSH agent rather than a stored file path:

    Bash
    ssh username@server-ip
  4. Bitwarden will prompt you to approve the SSH key access. This will show that the SSH key has been requested and used to complete the file transfer.

    Verify SSH key server connection
    Verify SSH key server connection

SSH agent forwarding

SSH agent forwarding is a common way to access and move files between servers. SSH keys are commonly utilized to perform secure file transfers using this method.

  1. To begin, make sure the SSH agent has been enabled on your Bitwarden desktop app by navigating to Settings  and Enable SSH agent:

    Enable SSH storage on desktop client
    Enable SSH storage on desktop client
  2. Create a new SSH key or import and existing SSH key to your Bitwarden desktop app.

  3. Activate agent forwarding by opening a connection with the server you wish to send files to:

    Bash
    ssh -A <IP.ADDRESS>
  4. Send a file to the server:

    Bash
    rsync -avzP ./TEST.txt <USER>@<IP>ADDRESS>:/home/<USER>/test.txt
  5. Bitwarden will prompt you to approve the SSH key access. This will show that the SSH key has been requested and used to complete the file transfer.

    Verify SSH key server connection
    Verify SSH key server connection

Suggest changes to this page

How can we improve this page for you?
For technical, billing, and product questions, please contact support

Cloud Status

Check status

Level up your cybersecurity knowledge.

Subscribe to the newsletter.


© 2024 Bitwarden, Inc. Terms Privacy Cookie Settings Sitemap

This site is available in English.
Go to EnglishStay Here