dvddarias / rdocker

Securely control a remote docker daemon CLI using ssh forwarding, no SSL setup needed.
MIT License
112 stars 17 forks source link

RDocker doesn't have option to use private key instead of password #5

Closed nedyalkov closed 7 years ago

nedyalkov commented 7 years ago

My server doesn't support password login so I cannot use rdocker with a password. It doesn't support using a private key, thought.

apiad commented 7 years ago

It works perfectly for me with the ssh private key. There is no need to have an option for that, since rdocker internally uses plain ssh commands, hence all authentication is done by ssh.

joaocc commented 7 years ago

Hi, How would you use rdocker with a server that I currently need to connect using some SSH options?

ssh -i ~/.ssh/my-ssh-key.id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null uuu@server.somethere.com.com -oPort=222

or

ssh -i ~/.ssh/my-ssh-key.id_rsa uuu@server.somethere.com.com -oPort=222

the simpler rdocker uuu@server.somethere.com.com 222 doesn't work. Thanks

apiad commented 7 years ago

Put the options in a custom host entry in your .ssh/config ?

On Wed, Mar 1, 2017 at 12:05 PM Joao C Costa notifications@github.com wrote:

Hi, How would you use rdocker with a server that I currently need to connect using some SSH options?

ssh -i ~/.ssh/my-ssh-key.id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null uuu@server.somethere.com.com -oPort=222

or

ssh -i ~/.ssh/my-ssh-key.id_rsa uuu@server.somethere.com.com -oPort=222

the simpler rdocker uuu@server.somethere.com.com 222 doesn't work. Thanks

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/dvddarias/rdocker/issues/5#issuecomment-283402844, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsiHKr0dM3l_n84P_xzKmrZF_9DRe-8ks5rhaVbgaJpZM4LKRTF .

joaocc commented 7 years ago

Works beautifully. For some reason I had the impression it didn't work, but was prob due to the Mac OSX that has also been corrected.

apiad commented 7 years ago

Great! Glad to help.

On Wed, Mar 1, 2017 at 2:41 PM Joao C Costa notifications@github.com wrote:

Works beautifully. For some reason I had the impression it didn't work, but was prob due to the Mac OSX that has also been corrected.

— You are receiving this because you commented.

Reply to this email directly, view it on GitHub https://github.com/dvddarias/rdocker/issues/5#issuecomment-283447023, or mute the thread https://github.com/notifications/unsubscribe-auth/ABsiHGieCoDV8Ha1khR8MaBlt7bgHfQCks5rhcnugaJpZM4LKRTF .

electrotumbao commented 7 years ago

But it's not so convenient for one-time connections with another identities...