Shell function to create menu from ~/.ssh/config

Install slmenu then put this function in your startup:
ssm() {
   ssh $(awk '/Host / && !/*/ { print $2 }' ~/.ssh/config | slmenu)
}

Leave a Reply

Your email address will not be published. Required fields are marked *