provision ssh username set

39 views
Skip to first unread message

Nikolay Chokoev

unread,
Feb 14, 2015, 5:28:24 AM2/14/15
to vagra...@googlegroups.com
Hello,

How can I change the SSH Username when provisioning.

In my vagrantfile I have set 'config.ssh.username = "freebsd" ', but when vagrant try to connect via SSH it seems to use username 'root':

 INFO retryable: Retryable exception raised: #<RuntimeError: not ready>
DEBUG ssh: Checking whether SSH is ready...
 INFO ssh: Attempting SSH connection...
 INFO ssh: Attempting to connect to SSH...
 INFO ssh:   - Host: xxx.xxx.xxx.xxx
 INFO ssh:   - Port: 22
 INFO ssh:   - Username: root
 INFO ssh:   - Password? false
 INFO ssh:   - Key Path: ["C:/Work/Dropbox/Dropbox/DigitalOcean/keys/ssh-prv-key
.openssh"]

The 'vagrant ssh' works fine.


Alvaro Miranda Aguilera

unread,
Feb 14, 2015, 2:52:15 PM2/14/15
to vagra...@googlegroups.com
You you using Virtualbox ?

If not, what provider/plugin are you using?
> --
> 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 vagrant-up+...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Nikolay Chokoev

unread,
Feb 16, 2015, 6:33:23 AM2/16/15
to vagra...@googlegroups.com
Hi Alvaro,

Thanks for replying.

I think the overall problem was in my public key file format and that was the reason for refusing the SSH connection.
I don't know why it uses the username as root and if it is the right way doing so. I have to digg more and get some more logs after fixing the public key file.
The provider I'm using is DigitalOcean. I see the username 'root' hardcoded in their code...

Thanks.
Regards,
Nikolay

You received this message because you are subscribed to a topic in the Google Groups "Vagrant" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/vagrant-up/SvVTWn_JiUk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to vagrant-up+...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages