[one-users] oneuser key command failing

Rogier Mars rogier at fortytwo.nl
Wed Jul 25 16:41:28 PDT 2012


Hi, 

I just upgrade to opennebula 3.6 (from the rpm's for CentOS) and decided to give ssh authentication a try. While following the documentation the step to output the public key failed:

[root at cloudcontroller1 rogierm]# oneuser key
Enter PEM pass phrase:
/usr/bin/oneuser:250: undefined method `public_key' for #<SshAuth:0x7ffc04405ff8> (NoMethodError)
	from /usr/lib/one/ruby/cli/command_parser.rb:173:in `call'
	from /usr/lib/one/ruby/cli/command_parser.rb:173:in `run'
	from /usr/lib/one/ruby/cli/command_parser.rb:79:in `initialize'
	from /usr/bin/oneuser:36:in `new'
	from /usr/bin/oneuser:36

I had a quick look at the code and method "public_key" that is referenced in oneuser line 250 does not exist in the file /usr/lib/one/ruby/ssh_auth.rb. There is a method password that seems to print the public key. I've changed line 250 in oneuser to the following:

#        puts sshauth.public_key
        puts sshauth.password

When I run "oneuser key" now the correct public key is displayed. 

Is this a known bug? 

Cheers, 

Rogier

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 495 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120726/9088ed23/attachment-0002.pgp>


More information about the Users mailing list