New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: Add ssh-config file options #4

yokawasa opened this Issue Feb 12, 2017 · 1 comment


None yet
1 participant
Copy link

yokawasa commented Feb 12, 2017

Now ssh-config is $HOME/.ssh/config by default and you can't change the path. This is a request to add ssh-config file path option so that you can change the path accordingly

@yokawasa yokawasa self-assigned this Feb 12, 2017


This comment has been minimized.

Copy link

yokawasa commented Feb 15, 2017

Requested feature has been added at azuresshconfig-0.2.3 ! The following --output option is added

  --output OUTPUT       Specify ssh config file path ($HOME/.ssh/config by
                        default). Or specify "stdout" if you want to print its
                        output to STDOUT

The feature is basically for docker case as you don't want to update ssh-config file in container but you want to update the one in your local directory instead. By using output option you can run azuresshconfig command in container and redirect its output to your preferred path like this:

docker run -v $HOME/.azure:/root/tmp \
    --rm -it yoichikawasaki/azuresshconfig \
    --profile /root/tmp/azuresshconfig.json --output stdout \
    --user yoichika --identityfile ~/.ssh/id_rsa >> $HOME/.ssh/config

@yokawasa yokawasa closed this Feb 15, 2017

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment