Last active
June 4, 2020 14:33
-
-
Save soraxas/72ed82761fc7435e8d2bf4d2043d641f to your computer and use it in GitHub Desktop.
script:assh.yaml online parser, useful for system without assh installed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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