No plugins are installed.  This is a virtualized host on VirtualBox.  Guest 
is a Redhat 6 based OS.  

In my Vagrantfile I have set:

system.ssh.username = "root"
system.ssh.password = "password"
system.ssh.insert_key = false

Basically, I want to use username/password based authentication on this 
system.  With normal SSH login ('user@host's password:') this was working 
fine.  This has switched to using pam based authentication which prompts 
with ('Password:')  During a vagrant up, this is the log when trying to 
login:


DEBUG subprocess: Waiting for process to exit. Remaining to timeout: 32000
>
> DEBUG subprocess: Exit status: 0
>
> DEBUG virtualbox_4_3:   - [1, "ssh", 2222, 22]
>
> DEBUG virtualbox_4_3:   - [1, "tcp8003", 8003, 8000]
>
> DEBUG virtualbox_4_3:   - [1, "tcp8080", 8080, 80]
>
> DEBUG virtualbox_4_3:   - [1, "tcp8443", 8443, 443]
>
>  INFO ssh: Attempting SSH connnection...
>
>  INFO ssh: Attempting to connect to SSH...
>
>  INFO ssh:   - Host: 127.0.0.1
>
>  INFO ssh:   - Port: 2222
>
>  INFO ssh:   - Username: root
>
>  INFO ssh:   - Password? true
>
>  INFO ssh:   - Key Path: []
>
> DEBUG ssh: == Net-SSH connection debug-level log START ==
>
> DEBUG ssh: D, [2014-09-16T11:09:22.386213 #23163] DEBUG -- 
>> net.ssh.transport.session[11a2434]: establishing connection to 
>> 127.0.0.1:2222
>
> D, [2014-09-16T11:09:22.386708 #23163] DEBUG -- 
>> net.ssh.transport.session[11a2434]: connection established
>
> I, [2014-09-16T11:09:22.386885 #23163]  INFO -- 
>> net.ssh.transport.server_version[11a4bbc]: negotiating protocol version
>
> D, [2014-09-16T11:09:22.402311 #23163] DEBUG -- 
>> net.ssh.transport.server_version[11a4bbc]: remote is `SSH-2.0-OpenSSH_6.4'
>
> D, [2014-09-16T11:09:22.402392 #23163] DEBUG -- 
>> net.ssh.transport.server_version[11a4bbc]: local is 
>> `SSH-2.0-Ruby/Net::SSH_2.9.1 x86_64-linux'
>
> D, [2014-09-16T11:09:22.407912 #23163] DEBUG -- tcpsocket[11a5abc]: read 
>> 1460 bytes
>
> D, [2014-09-16T11:09:22.454659 #23163] DEBUG -- tcpsocket[11a5abc]: read 
>> 76 bytes
>
> D, [2014-09-16T11:09:22.454784 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> received packet nr 0 type 20 len 1532
>
> I, [2014-09-16T11:09:22.454879 #23163]  INFO -- 
>> net.ssh.transport.algorithms[11a682c]: got KEXINIT from server
>
> I, [2014-09-16T11:09:22.455043 #23163]  INFO -- 
>> net.ssh.transport.algorithms[11a682c]: sending KEXINIT
>
> D, [2014-09-16T11:09:22.455244 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> queueing packet nr 0 type 20 len 2020
>
> D, [2014-09-16T11:09:22.455331 #23163] DEBUG -- tcpsocket[11a5abc]: sent 
>> 2024 bytes
>
> I, [2014-09-16T11:09:22.455387 #23163]  INFO -- 
>> net.ssh.transport.algorithms[11a682c]: negotiating algorithms
>
> D, [2014-09-16T11:09:22.455555 #23163] DEBUG -- 
>> net.ssh.transport.algorithms[11a682c]: negotiated:
>
> * kex: diffie-hellman-group-exchange-sha1
>
> * host_key: ssh-rsa
>
> * encryption_server: aes128-cbc
>
> * encryption_client: aes128-cbc
>
> * hmac_client: hmac-sha1
>
> * hmac_server: hmac-sha1
>
> * compression_client: none
>
> * compression_server: none
>
> * language_client:
>
> * language_server:
>
> D, [2014-09-16T11:09:22.455589 #23163] DEBUG -- 
>> net.ssh.transport.algorithms[11a682c]: exchanging keys
>
> D, [2014-09-16T11:09:22.455756 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> queueing packet nr 1 type 34 len 20
>
> D, [2014-09-16T11:09:22.455812 #23163] DEBUG -- tcpsocket[11a5abc]: sent 
>> 24 bytes
>
> D, [2014-09-16T11:09:22.457066 #23163] DEBUG -- tcpsocket[11a5abc]: read 
>> 152 bytes
>
> D, [2014-09-16T11:09:22.457162 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> received packet nr 1 type 31 len 148
>
> D, [2014-09-16T11:09:22.458506 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> queueing packet nr 2 type 32 len 140
>
> D, [2014-09-16T11:09:22.458563 #23163] DEBUG -- tcpsocket[11a5abc]: sent 
>> 144 bytes
>
> D, [2014-09-16T11:09:22.460361 #23163] DEBUG -- tcpsocket[11a5abc]: read 
>> 720 bytes
>
> D, [2014-09-16T11:09:22.460442 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> received packet nr 2 type 33 len 700
>
> D, [2014-09-16T11:09:22.461471 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> queueing packet nr 3 type 21 len 20
>
> D, [2014-09-16T11:09:22.461565 #23163] DEBUG -- tcpsocket[11a5abc]: sent 
>> 24 bytes
>
> D, [2014-09-16T11:09:22.461663 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> received packet nr 3 type 21 len 12
>
> D, [2014-09-16T11:09:22.462044 #23163] DEBUG -- 
>> net.ssh.authentication.session[12c4b14]: beginning authentication of `root'
>
> D, [2014-09-16T11:09:22.462168 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> queueing packet nr 4 type 5 len 28
>
> D, [2014-09-16T11:09:22.462207 #23163] DEBUG -- tcpsocket[11a5abc]: sent 
>> 52 bytes
>
> D, [2014-09-16T11:09:22.502792 #23163] DEBUG -- tcpsocket[11a5abc]: read 
>> 52 bytes
>
> D, [2014-09-16T11:09:22.502940 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> received packet nr 4 type 6 len 28
>
> D, [2014-09-16T11:09:22.503041 #23163] DEBUG -- 
>> net.ssh.authentication.session[12c4b14]: trying none
>
> D, [2014-09-16T11:09:22.503200 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> queueing packet nr 5 type 50 len 44
>
> D, [2014-09-16T11:09:22.503260 #23163] DEBUG -- tcpsocket[11a5abc]: sent 
>> 68 bytes
>
> D, [2014-09-16T11:09:22.504844 #23163] DEBUG -- tcpsocket[11a5abc]: read 
>> 100 bytes
>
> D, [2014-09-16T11:09:22.504939 #23163] DEBUG -- tcpsocket[11a5abc]: 
>> received packet nr 5 type 51 len 76
>
> D, [2014-09-16T11:09:22.505015 #23163] DEBUG -- 
>> net.ssh.authentication.session[12c4b14]: allowed methods: 
>> publickey,gssapi-keyex,gssapi-with-mic,keyboard-interactive
>
> D, [2014-09-16T11:09:22.505089 #23163] DEBUG -- 
>> net.ssh.authentication.methods.none[12c058c]: none failed
>
> D, [2014-09-16T11:09:22.505146 #23163] DEBUG -- 
>> net.ssh.authentication.session[12c4b14]: trying publickey
>
> D, [2014-09-16T11:09:22.505228 #23163] DEBUG -- 
>> net.ssh.authentication.agent[12b8aa8]: connecting to ssh-agent
>
> D, [2014-09-16T11:09:22.505335 #23163] DEBUG -- 
>> net.ssh.authentication.agent[12b8aa8]: sending agent request 1 len 44
>
> D, [2014-09-16T11:09:22.505518 #23163] DEBUG -- 
>> net.ssh.authentication.agent[12b8aa8]: received agent packet 2 len 5
>
> D, [2014-09-16T11:09:22.505564 #23163] DEBUG -- 
>> net.ssh.authentication.agent[12b8aa8]: sending agent request 11 len 0
>
> D, [2014-09-16T11:09:22.505698 #23163] DEBUG -- 
>> net.ssh.authentication.agent[12b8aa8]: received agent packet 12 len 5
>
> E, [2014-09-16T11:09:22.505752 #23163] ERROR -- 
>> net.ssh.authentication.session[12c4b14]: all authorization methods failed 
>> (tried none, publickey)
>
>
>> DEBUG ssh: == Net-SSH connection debug-level log END ==
>
>  INFO ssh: SSH not ready: #<Vagrant::Errors::SSHAuthenticationFailed: SSH 
>> authentication failed! This is typically caused by the public/private
>
> keypair for the SSH user not being properly set on the guest VM. Please
>
> verify that the guest VM is setup with the proper public key, and that
>
> the private key path for Vagrant is setup properly as well.>
>
>  INFO subprocess: Starting process: ["/usr/bin/VBoxManage", "showvminfo", 
>> "dcddf385-42eb-42d1-aa6b-e4ccb6f1e157", "--machinereadable"]
>
>
>>
>
Now once this fails, I can do 'vagrant ssh' which works just fine.

Thank you!
Matt


On Monday, September 15, 2014 9:44:28 PM UTC-4, Alvaro Miranda Aguilera 
wrote:
>
> can you provide more information?
>
> are you using a host plugin and using vagrant to configure physical hosts?
>
> Can you describe when this happen? say host os, vagrant version + which 
> virtualization?
>
> Thanks,
> Alvaro
>
> On Tue, Sep 16, 2014 at 5:06 AM, Matt Kubilus <[email protected] 
> <javascript:>> wrote:
>
>> So when doing username and password configuration of a system it would 
>> appear that the ssh prompt detection on system configuration looks for a 
>> strings along the lines of:
>>
>> user@host's password:
>>
>> If the system matches the above pattern, provisioning and configuration 
>> work just fine.  I have a system that uses a non-standard ssh prompt of the 
>> form:
>>
>> Password:
>>
>> I don't see a way to configure this in the Vagrantfile (yet?)  However, 
>> could someone point me to a location in the code base where I could change 
>> this directly?  Is there another way to make this work?
>>
>> -- 
>> You received this message because you are subscribed to the Google Groups 
>> "Vagrant" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to [email protected] <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to