Skip to content

Instantly share code, notes, and snippets.

@asayers
Created July 11, 2013 14:19
Show Gist options
  • Save asayers/5975856 to your computer and use it in GitHub Desktop.
Save asayers/5975856 to your computer and use it in GitHub Desktop.
Uses dmenu to display hosts defined in .ssh/config. Connects to selection in a new urxvt terminal.
#! /bin/bash
nohup urxvt -e ssh $(cat ~/.ssh/config | grep "Host " | cut -d " " -f 2 | dmenu) &> /dev/null &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment