Skip to content
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

Support password-less SSH via config #6

Open
zhi-shen opened this issue Jul 26, 2016 · 6 comments
Open

Support password-less SSH via config #6

zhi-shen opened this issue Jul 26, 2016 · 6 comments

Comments

@zhi-shen
Copy link

Is there a way this tool can support password-less SSH via config setup? We don't have .ssh/id_rsa.

Reference:

https://www.digitalocean.com/community/tutorials/how-to-configure-custom-connection-options-for-your-ssh-client

@seletskiy
Copy link
Member

@zhi-shen: How do you authenticate on the remote nodes, then?

@zhi-shen
Copy link
Author

I have password-less setup using linked method from Digital Ocean. I was able to manually connect using orgalorg by using the reference authorized file. But the file

For example:

$ cat ~/.ssh/config
Host myhost
IdentityFile ~/.ssh/305-0014
User zhi

Use password-less SSH

$ ssh -n zhi bash -c 'uptime'
10:26:38 up 18 days, 16:46, 0 users, load average: 0.09, 0.05, 0.05

Using orgalorg with default setup

$ ./orgalorg -o zhi -C uptime
2016-07-26 10:27:49 [FATAL] can't create runner factory
ââ can't read SSH key: '~/.ssh/id_rsa'
ââ can't read SSH key from file
ââ open ~/.ssh/id_rsa: no such file or directory

Using orgalorg with specific key file

$ ./orgalorg -k /usr/local/tmc/.ssh/305-0014 -o zhi -C uptime
zhi 10:19:38 up 18 days, 16:38, 1 user, load average: 0.00, 0.01, 0.05

Not sure if that answered your question.

Thanks,
zhi

@seletskiy
Copy link
Member

@zhi-shen: Yes, I understand. Basically, you expect that orgalorg will parse ~/.ssh/config and use specified key from that config.

Unfortunately, it's not yet implemented (I think, I'll do it soon). So now the only possibility is to specify key by yourself or use use wrapper shell-function to do it for you.

@zhi-shen
Copy link
Author

Thanks. I'll keep an eye out for the feature.

-zhi

@eagleusb
Copy link

👍 It's essential, otherwise it can be an headache to use orgalorg.

@seletskiy
Copy link
Member

@grumpycatt: I'll implement it in meantime.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants