From: Justin Collins Date: 2010-10-19T03:47:02+09:00 Subject: Re: Rye - how to use passphrase? On 10/18/2010 11:22 AM, Terevos Gmail wrote: > Hi All, > > I'm new here, so excuse me if I am breaking one of the rules of > etiquette. Direct me to the right place, if so. > > I'm using Rye::Box for my QA automation and I've run into an issue when > attempting to add private ssh keys. It will not accept the > Net::SSH.start :passphrase argument in order to add the key to my agent. > > Anyone know how to use a private ssh key with a passphrase in Rye? I > need to load the ssh key programmatically because the key itself is > create during the execution of the automation. > > oR = Rye::Box.new(sHost, :user=>sUser, :keys=>sKeyfile, > :passphrase=>sPassPhrase) > puts oR.ls > > I get prompted for the passphrase instead of it looking to the > :passphrase argument. > > According to the docs, it's :password, not :passphrase. http://rye.rubyforge.org/classes/Rye/Box.html -Justin