Skip to content

SSH

Access a full SSH terminal in your browser via Shield CLI, with password and private key authentication support.

Quick Connect

bash
# Connect to localhost
shield ssh

# Connect to a specific server
shield ssh 10.0.0.5

# Specify port
shield ssh 10.0.0.5:2222

Authentication

Password

bash
shield ssh 10.0.0.5 --username root --auth-pass mypassword

Omit flags for interactive prompts.

Private Key

bash
shield ssh 10.0.0.5 --username root --private-key ~/.ssh/id_rsa

Encrypted Private Key

bash
shield ssh 10.0.0.5 --username root --private-key ~/.ssh/id_rsa --passphrase mypass

SFTP File Transfer

Enable SFTP to upload and download files through the browser:

bash
shield ssh 10.0.0.5 --enable-sftp

Browser Terminal

Once connected, you get a full xterm.js-based terminal in the browser:

  • Full terminal interaction (vim, top, etc.)
  • Copy and paste support
  • Auto-resizing to browser window

Default Ports

InputResolves To
shield ssh127.0.0.1:22
shield ssh 2222127.0.0.1:2222
shield ssh 10.0.0.510.0.0.5:22