---
title: "POST /connect"
method: POST
path: "/connect"
tags: ["Secure Remote Access"]
---

# POST /connect

`POST /connect`

## Request

- Base URL: `https://api.akeyless.io`
- URL: `https://api.akeyless.io/connect`
- Auth: none declared

## Request body

- Connect: Connect is a command that performs secure remote access
  - `Helper` ConnectHepler
  - `RcFileOverride` string: used to override .akeyless-connect.rc in tests
  - `bastion-ctrl-path` string: Deprecated. use bastion-ctrl-path
  - `bastion-ctrl-port` string: Deprecated. use sra-ctrl-port
  - `bastion-ctrl-proto` string: Deprecated. use sra-ctrl-proto
  - `bastion-ctrl-subdomain` string: Deprecated. use sra-ctrl-subdomain
  - `cert-issuer-name` string: The Akeyless certificate issuer name
  - `gateway-url` string: The Gateway URL (configuration management) address, e.g. http://localhost:8000
  - `identity-file` string: The file from which the identity (private key) for public key authentication is read
  - `json` boolean: Set output format to JSON
  - `justification` string
  - `name` string: The Secret name (for database and AWS producers - producer name)
  - `requested-ttl` integer: For how long to grant the requested access, in minutes
  - `sra-ctrl-path` string: The Bastion API path
  - `sra-ctrl-port` string: The Bastion API Port
  - `sra-ctrl-proto` string: The SRA API protocol
  - `sra-ctrl-subdomain` string: The SRA API prefix
  - `ssh-command` string: Path to SSH executable. e.g. /usr/bin/ssh
  - `ssh-extra-args` string: Additional SSH arguments (except -i)
  - `ssh-legacy-signing-alg` boolean: Set this option to output legacy ('ssh-rsa-cert-v01@openssh.com') signing algorithm name in the ssh certificate.
  - `target` string: The target
  - `token` string: Authentication token (see `/auth` and `/configure`)
  - `uid-token` string: The universal identity token, Required only for universal_identity authentication
  - `use-ssh-agent` boolean: Deprecated
  - `via-bastion` string: Deprecated. Use via-sra
  - `via-sra` string: The jump box server

## Response `200`

connectResponse wraps response body.

- ConnectOutput

## Other responses

- `default`: errorResponse wraps any error to return it as a JSON object with one "error" field.

---

[API](https://skmtc.dev/akeyless/apis/infrastructure-connectivity.md) - [All operations](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/llms.txt) - [OpenAPI document](https://skmtc.dev/akeyless/apis/infrastructure-connectivity/revisions/62dc62fea89d?raw)
