trying out puppet vm

59 views
Skip to first unread message

Dennis Gearon

unread,
Jun 5, 2014, 12:31:32 AM6/5/14
to puppet...@googlegroups.com
I'm running the centos puppet enterprise vm in Virtualbox on Ubuntu. I've got it running and I can contact it via SSH from the host.

I did say contact, not log in. It's supposed to allow/prompt for password according the the FM (Effin Manual).Wrong. I enabled clipboard sharing to copy a public key for passwordless SSH, restarted the VM, and I can't paste into the window using <shift><Ins> or <ctrl>V. Supposedly, according to something I just read on setting up new CentOS VMs, I should be able to SCP a file to the box and then use the screen to turn that file into $JOME/.ssh/authorized_keys WRONG.

So the only way I'm left with getting into the box is to HAND type the public key in, all 256 or so characters.

Any ideas here on how to avoid that?

PS, also modified /etc/ssh/ssh_config with 'allow_passwords yes', restarted the sshd daemon, DID NOT PROMPT for a password.

Felix Frank

unread,
Jun 5, 2014, 10:04:14 AM6/5/14
to puppet...@googlegroups.com
Hi,

are you aware of the ssh-copy-id command?

Kwame Bahena

unread,
Jun 5, 2014, 11:01:21 AM6/5/14
to puppet...@googlegroups.com
Hi,

This is a question more related to the usage of the VM in virtualbox and not puppet itself. 
The fact that you cannot copy from your host to the VM it's an issue with your ubuntu/virtualbox setup, not a problem with puppet.
The method of "select text, copy it, go to another place and attempt to paste it" is very windows like ;-)
If you want to do this the right way, use ssh-copy-id

ssh-copy-id -i ~/.ssh/id_rsa.pub remote-host

From what you write seems that you have little experience with linux and administering your system, so I would stay away from modifying sshd_config parameters.
Using ssh-copy-id should do what you need/want. 

Now you have 2 options:

1. Undo all the changes you did to your VM and just use ssh-copy-id
2. Get a clean puppetlabs VM and use ssh-copy-id 

cheers!

p.s.
Remember that netiquette mentions that when you write in CAPS it's the same as YELLING. And afaik you don't go asking for help yelling at people.



--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/9808ebc7-6776-4aba-9629-1de24ce13488%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Dennis Gearon

unread,
Jun 5, 2014, 8:58:34 PM6/5/14
to puppet...@googlegroups.com
@ Kwame, My two words of CAPS were obivously frustration, not yelling. Sorry if you took it as yelling.

The problem was with my understanding of SSH. I thought that the TARGET machine (CAPS for emphasis) would be the one qualifying whether password could be used. But it's actually the CLIENT (CAPS for emphasis) machine that has to have the configuration to allow password usage. So I changed the config on my host and could ssh into the virtual machine.

The guys at puppet labs helped me with that.

BTW, anybody know a group out there for just getting help for the tutorial puppet vm? (I have another problem) Yes, i searched google and google groups. I also just wrote puppet labs about it also.

Dennis Gearon

unread,
Jun 5, 2014, 9:07:23 PM6/5/14
to puppet...@googlegroups.com
@kwambe

Without having password enabled locally on the client ssh configuration, your 'ssh-copy-id' doesn't work. It's probably almost identical to scp, which also does't work.

So the only fix is for the local client to have it's config changed. And . . ., I haven't seen a config file in my ~/.ssh directory, so so far, that config has to be changed system wide on my box.

And yes, I'm a learner. Been one for 55 years.


On Wednesday, June 4, 2014 9:31:32 PM UTC-7, Dennis Gearon wrote:

Felix Frank

unread,
Jun 6, 2014, 3:49:49 AM6/6/14
to puppet...@googlegroups.com
On 06/06/2014 02:58 AM, Dennis Gearon wrote:
> But it's actually the CLIENT (CAPS for emphasis) machine that has to
> have the configuration to allow password usage.BTW, anybody know a group

Wait, your box came with an ssh configuration that disallowed passwords
for remote connections? Is that configuration part of your distributer's
package? What distribution is this?

That strikes me as *really* weird.

> out there for just getting help for the tutorial puppet vm?

No, this is the place. Please do start a new thread for a new issue, though.

There is also ask.puppetlabs.com for a Stack-Exchange like QA forum
(though man, would I ever like to see it merged into SE proper ;-)

Cheers,
Felix

Felix Frank

unread,
Jun 6, 2014, 3:51:13 AM6/6/14
to puppet...@googlegroups.com
On 06/06/2014 09:49 AM, Felix Frank wrote:
> Please do start a new thread for a new issue, though.

...aaand you're way ahead of me, apparently :)
Reply all
Reply to author
Forward
0 new messages