Skip to content

Instantly share code, notes, and snippets.

@soraxas
Last active June 4, 2020 14:33
Show Gist options
  • Save soraxas/72ed82761fc7435e8d2bf4d2043d641f to your computer and use it in GitHub Desktop.
Save soraxas/72ed82761fc7435e8d2bf4d2043d641f to your computer and use it in GitHub Desktop.
script:assh.yaml online parser, useful for system without assh installed.
#!/bin/sh
result="$(curl https://assh-dev.herokuapp.com/assh-to-ssh -X POST -F "assh_config=<$HOME/.ssh/assh.yml" | jq -r .ssh_config)"
# uncomment Hostname and remove colon
result="$(echo "$result" | sed 's/# HostName:/HostName/g')"
# delete proxycommand line
result="$(echo "$result" | sed '/ProxyCommand/d')"
echo "$result"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment