Code Monkey home page Code Monkey logo

Comments (4)

dduportal avatar dduportal commented on June 14, 2024

Currently working on the cloudstack driver (#74), and as i'm developing under Windows 7, i faced the same issue : ssh-keygen is not in the path by default.

Important thing to note is that it works with VirtualBox because i had a full vagrant + openssh setup, so i have a ssh-keygen command in my PATH. But this is not the default setup for a lot of people.

So some solutions :

  • Is there a way to handle SSHKeyGeneration inside go, in order to make this action cross platform ? It seems that we have these usefull libs :
  • Find a specific solution for Windows and implement it in the ssh.go using the os property in a switch ? Not good, puttyGen doesn't seem to handle command line
  • Is Docker future Windows version handling it ? In that case, we should copy that if it's already resolved ?
  • While ssh-keygen exists on Windows CMD thru cygwin/cygwin/etc., why not putting it as a requirement and ending machine commands if not found in the PATH. Quick solution to have a coherent user experience but not user friendly at all
  • Make the key generation a requirements, letting the user choose its keygen tool. Same comments as for pushing ssh-keygen as requirements

Your opinions ?

from machine.

jeffmendoza avatar jeffmendoza commented on June 14, 2024

I think having a dependency on ssh-keygen is ok. We should check explicitly, as you mentioned, and give a good error message. The docs can recommend installing git-bash as a simple solution on Windows to provide ssh-keygen, as well as ssh itself (machine ssh command).

from machine.

bfirsh avatar bfirsh commented on June 14, 2024

Yeah, I think a dependency on ssh-keygen is okay, we just need a better error message.

from machine.

ehazlett avatar ehazlett commented on June 14, 2024

Closing as #257 was merged.

from machine.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.