Skip to content

Latest commit

 

History

5 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

ssh-graveyard

ssh-graveyard is a small Bash utility that reads your SSH config, lists concrete Host entries, and checks which targets still respond to ping.

Demo

ssh_graveyard_video.mp4

It prints a table with:

  • HOST: the SSH alias from your config
  • HOSTNAME: the resolved hostname from ssh -G
  • VIA: whether the host is reached directly, through ProxyJump, or through ProxyCommand
  • STATUS: whether the host appears alive or unreachable

Requirements

  • Bash
  • OpenSSH (ssh)
  • awk
  • ping
  • An SSH config file, defaulting to ~/.ssh/config

Install

Install ssh-graveyard into ~/.local/bin:

mkdir -p ~/.local/bin && curl -fsSL https://raw.githubusercontent.com/aj-arts/ssh-graveyard/main/graveyard.sh -o ~/.local/bin/ssh-graveyard && chmod +x ~/.local/bin/ssh-graveyard

If ~/.local/bin is not already on your PATH, add this to ~/.zshrc or ~/.bashrc:

export PATH="$HOME/.local/bin:$PATH"

Then reload your shell:

source ~/.zshrc

Usage

Run it from any terminal:

ssh-graveyard

Or point it at a different SSH config:

SSH_CONFIG=/path/to/config ssh-graveyard

Notes

  • Wildcard and negated host entries are skipped.
  • Host details are resolved with ssh -G, so values inherited from other SSH config sections are taken into account.
  • Reachability is based on ICMP ping, which may report unreachable for hosts that block ping even if SSH still works.

About

Small Bash utility to list SSH hosts from your config and check which ones still respond to ping.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages