Skip to content

Move and copy between vaults

ZestSSH 3.4 moves and copies hosts, keys, snippets and port forwards between your Personal space and the vaults of your teams: from Personal to a team’s vault, from a team to Personal, from one team to another, and between the vaults of one team. You pick the place from one list, and ZestSSH asks once about anything the items need that the place does not have. From ZestSSH 4.0, the editor of a saved item has a Move or copy button too.

Moving or copying needs somewhere to put the items: a team you belong to, with a ZestSSH Cloud account. With no team, there is nothing to move to, and neither the menu items nor the button show.

Move or copy, at the top right of the editor of a saved host, key, snippet or port forward, moves or copies that one item. See From an item’s editor.

Move to… and Copy to… are in:

  • a host’s menu (right-click on a computer; on a phone, the host’s own menu, see Selecting many items),
  • a key’s menu in Keys, and More in the key’s details on a computer,
  • a snippet’s menu,
  • a port forward’s menu on the Port forwarding page,
  • the selection bar of each of these lists, for everything selected. See Selecting many items.

They show only where there is somewhere for the items to go. On a computer, a host dropped on a vault’s chip on the Hosts page moves there as Move to… moves it, with its port forwards.

This replaces Move to vault, which moved hosts between the vaults of one team only.

From ZestSSH 4.0, the editor of a saved host, key, snippet or port forward has a Move or copy button (a folder with an arrow) at the top right:

  • On a computer: in the host editor’s header, beside Share; in the key editor’s header, beside its close; in the snippet editor’s header, beside Run; and in the port forward editor’s header on the Port forwarding page.
  • On a phone: at the top of a saved host’s form, a key’s page, a snippet’s editor and a saved port forward’s page.

It opens a short menu: Move to… and Copy to…. Move to… is greyed where your access to the item’s vault is Connect or Use, which neither add nor delete there. Either opens the same dialog as everywhere else (see Pick the place): the places you can add to, the place the item is in marked Here and not offered. Pick a place: if nothing needs a word, it is done at once and ZestSSH says so, for example “Moved 1 host to Acme / Staging”; otherwise the dialog asks about what the item uses. Where the item cannot go to the place you picked, the dialog says why, as in the table below. After a move the editor closes, since the item is no longer in this place.

  • Save first. With changes not saved, the menu does not open: “Save your changes first: what is saved is what moves or is copied.”
  • Only saved items. A new item has Save in instead.
  • Not everywhere. The button shows only where the item can be moved or copied somewhere: not without a team, not for a key whose secrets your role cannot see, and never on a team certificate key or the key a vault signs certificates with.

With the keyboard, Tab reaches the button, Enter opens the menu, and the arrow keys go through the places and their lists.

  1. Choose Move to… or Copy to…. The dialog is titled for what you picked, for example Move 3 hosts: “Where should they go? Only the places you can add to are listed.”
  2. Pick a place. The list shows Personal, then each team with its vaults where your role lets you add and that are open on this device. The place the items are in already says Here and cannot be picked. With more than seven places, Find a team or vault searches them.

If nothing else needs a word, ZestSSH does it at once and says so, for example “Moved 3 hosts to Acme / Production”.

If there is no other place, the dialog says “There is no other place you can add to. A team’s vault takes items where your role lets you add.”

When the items use something the place does not have, the same dialog asks before anything is written: “What you picked uses these, and Acme / Production does not have them:”. That can be:

  • a host’s key, its jump host (and the jump host’s key), its network, or the snippet it runs at sign-in,
  • the SSH host a remote screen is reached through,
  • a port forward’s host.

Each one is named with its kind (Key, Host, Network, Snippet) and, where other items here use it too, how many (“Also used by 2 more items here”). For each, choose:

  • Move it too: it goes with the items.
  • Copy it: a copy goes with them, and it stays here. This is chosen to start with, where a copy can be made.
  • Leave it: it stays here. “Left here, a host is saved there without it: without that key, jump host, network or snippet.” A port forward whose host stays here stays here too: “A port forward needs this host. Left here, the port forward stays here too.” Going to Personal or to another team, a remote screen whose SSH host stays here stays here too, rather than arrive without it and be dialled directly: it is listed afterwards among the items that stayed, for example “web-01, which it uses, could not go.”

The dialog also lists the items that cannot go, with why (“1 item cannot go:”), and, for a move, what the items left behind will lose: “1 item that stays here uses what you are moving. It will lose it.” Then choose Move 3 hosts (or Copy 3 hosts), Cancel, or Back to pick another place.

Where some items did not go, the dialog ends with how many did (“Moved 2 of 3”) and “These stayed where they were:”, each with why, and Done. Something you chose to move along that could not leave where it was is copied instead, and the dialog says so: “Copied, not moved, because they could not leave where they were: deploy-key”.

  • A host takes its tags, its other accounts, its settings for each network and its port forwards.
  • A team’s host takes its shared folder bookmarks to another vault or another team. Going to Personal, it leaves them behind.
  • A host’s group: where the place has a group of the same name, the host goes into it; otherwise a group like it is made there. A snippet’s category works the same way.
  • A key takes its secrets: from your device’s secure storage to the team’s, or back. On Move, they are removed from where the key was.

On Move, an item leaves where it was only once it has arrived. Each item is written whole or not at all, so a failure names the items that did not go and leaves them where they were.

An item that arrives in a team is saved in that team’s vault on this device and sealed with the vault’s key at its next sync, as a new item made there is. Nothing is sent anywhere new, and nothing leaves your device unencrypted.

A key that leaves its team, moved or copied to Personal or to another team, by itself or along with a host, counts as an export of it: where the team records activity, it is noted as one, with the vault it was in. A key copied or moved between the vaults of its own team is not.

The same rules as for one item in the team’s own screens:

What Needs
Copy to… Add, in the vault it goes to
Move to… Add in the vault it goes to, and delete in the vault it leaves (add, for an item that has not reached ZestSSH Cloud yet)
An item leaving its team, to Personal or another team You are one of the team’s owners, and the team’s rules do not keep its items in it (no export)
A key leaving its vault Your role may see its secrets there

And these never move:

  • A team certificate, and the key a vault signs certificates with: “It belongs to its vault’s certificates.”
  • A local shell into a team: “A local shell cannot be in a team: it would run on the computer of whoever opens it.”
  • Anything in or out of a vault closed on this device by its offline limit: “Its vault is closed on this device until it reaches ZestSSH Cloud.”

The other reasons the dialog gives:

It says Why
“Your role cannot delete it where it is.” A move, without delete where the item is
“Your role cannot add to that vault.” No add in the vault picked
“Only the team’s owners can take its items out of it.” You are not an owner of the item’s team
“The team’s rules keep its items in it.” The team’s rules say no export
“Your role cannot see this key’s secrets, so it stays in its vault.” No reveal for the key’s vault
“Its host stays where it is.” A port forward whose host you chose to leave
“The vault refused the change.” The vault’s rules refused it when it was written

Where a key’s vault asks you to confirm it is you before its secrets are shown or leave the device, ZestSSH asks first, before anything goes.

The editor of a new host, key, snippet or port forward (on a computer’s Port forwarding page) has Save in at the top, whenever there is more than one place to save in (Personal and a team’s vault you can add to). It starts at where new items of the space on screen go, and lists the same places as Move to….

Pick another place, and the item is saved there and nowhere else, as Copy to… would save it, after the same question about a key, jump host, network or snippet it uses that the place does not have. “Keys, jump hosts and networks are chosen from here. What the place you picked does not have is asked about when you save.” ZestSSH then says, for example, “Saved in Acme / Production”.

A port forward made on a host’s own page stays with that host.