> ## Documentation Index
> Fetch the complete documentation index at: https://docs.infinitecompute.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Open Ssh

> Open SSH access to the server (the same port every time)



## OpenAPI

````yaml /api/openapi.json put /servers/{server_id}/ssh
openapi: 3.1.0
info:
  description: Programmatic access to Infinite Compute GPU servers, volumes and usage.
  title: Infinite Compute API
  version: v1
servers:
  - url: https://{console}/api/public/v1
    description: Your console address is in your welcome email
    variables:
      console:
        default: your-console-address
security: []
paths:
  /servers/{server_id}/ssh:
    put:
      tags:
        - Servers
      summary: Open Ssh
      description: Open SSH access to the server (the same port every time)
      operationId: open_ssh_servers__server_id__ssh_put
      parameters:
        - in: path
          name: server_id
          required: true
          schema:
            maxLength: 64
            title: Server Id
            type: string
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SshAccess'
          description: Successful Response
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Error
      security:
        - ApiKey: []
components:
  schemas:
    SshAccess:
      properties:
        command:
          anyOf:
            - type: string
            - type: 'null'
          description: Ready-made ssh command line
          title: Command
        host:
          anyOf:
            - type: string
            - type: 'null'
          description: Connect here when open
          title: Host
        port:
          anyOf:
            - type: integer
            - type: 'null'
          title: Port
        state:
          description: open, or closed
          title: State
          type: string
        user:
          anyOf:
            - type: string
            - type: 'null'
          description: The image's login user, e.g. ubuntu
          title: User
      required:
        - state
      title: SshAccess
      type: object
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      title: ErrorResponse
      type: object
    ErrorDetail:
      properties:
        code:
          description: Machine-readable error code, e.g. not_found
          title: Code
          type: string
        message:
          description: What went wrong, for people
          title: Message
          type: string
        request_id:
          description: Quote this when contacting support
          title: Request Id
          type: string
      required:
        - code
        - message
        - request_id
      title: ErrorDetail
      type: object
  securitySchemes:
    ApiKey:
      description: 'An API key from the console: Authorization: Bearer ic_ck_...'
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.