コンテンツにスキップ

tenax volumes sftp

tenax volumes sftp

Open a copy over read-only SFTP in a volume sandbox, and connect to it

Synopsis

With a target and a PVC, creates a volume sandbox: the copy (default the newest) is restored into a temporary volume of its own and served read-only over SFTP to your SSH key until its TTL. With a sandbox name, connects to it. Then:

  • direct route: prints the sftp command;
  • tunnel route: runs cloudflared access tcp to a local port (cloudflared must be installed);
  • no route: forwards a local port through your kubeconfig, like kubectl port-forward, until Ctrl+C.

The server's host key is written to a temporary known_hosts file for the printed command.

tenax volumes sftp (<namespace>/<target> <pvc> [<copy>] | <sandbox>) [flags]

Examples

  tenax volumes sftp shop/files uploads
  tenax volumes sftp shop/files uploads 20261020T030000Z --key ~/.ssh/work.pub --ttl 2h
  tenax volumes sftp vsbx-1a2b3c4d

Options

      --context string       kubeconfig context for a sandbox without a route
      --expose               open a route through the configured exposure provider
  -h, --help                 help for sftp
      --key stringArray      SSH public key file allowed to log in (repeatable; default ~/.ssh/id_ed25519.pub, id_ecdsa.pub or id_rsa.pub)
      --kubeconfig string    kubeconfig for a sandbox without a route (default: $KUBECONFIG or ~/.kube/config)
  -o, --output string        output format: table, json or yaml (default "table")
      --port int             local port (default 12222)
      --reason string        reason (audited)
      --server tenax login   Tenax API URL (default: saved by tenax login, or $TENAX_SERVER)
      --timeout duration     how long --wait waits (default 30m0s)
      --token string         Access token (default: saved, or $TENAX_TOKEN)
      --ttl string           how long the sandbox lives (default 4h)

Options inherited from parent commands

      --lang string   language of this run's output, for example es or es_MX (over TENAX_LANG and the configured language)

SEE ALSO

  • tenax volumes - Show the volumes Tenax snapshots, and restore one into a new PVC