GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — wterm/examples/ssh at main · vercel-labs/wterm

Expand file tree

/

ssh

/
Copy path

Directory actions

More options

More options

Directory actions

More options

More options

Latest commit

 

History

History
History
/

ssh

/
Copy path

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
app
app
 
 
components/ui
components/ui
 
 
lib
lib
 
 
.gitignore
.gitignore
 
 
.oxlintrc.json
.oxlintrc.json
 
 
README.md
README.md
 
 
components.json
components.json
 
 
next.config.mjs
next.config.mjs
 
 
package.json
package.json
 
 
postcss.config.mjs
postcss.config.mjs
 
 
server.ts
server.ts
 
 
tsconfig.json
tsconfig.json
 
 
wterm-react.d.ts
wterm-react.d.ts
 
 

README.md

Outline

SSH Client Example

Browser-based SSH client. Connects to remote servers via a WebSocket-to-SSH bridge using ssh2.

Setup

From the monorepo root:

pnpm install
zig build
pnpm --filter ssh dev

Opens at ssh-example.wterm.localhost via portless.

How It Works

  • server.ts starts an HTTP + WebSocket server alongside Next.js
  • The browser sends SSH connection params (host, port, username, auth) as the first WebSocket message
  • The server opens an SSH connection and pipes the shell stream to/from the WebSocket
  • Supports password and private key authentication

Key Files

File Description
server.ts Custom server with WebSocket ↔ SSH bridge
app/page.tsx Connection form and terminal UI
app/layout.tsx Root layout with metadata
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.