Unable to ssh into ubuntu/bionic64(error: The private key to connect to this box via SSH has invalid permissions)

58 views
Skip to first unread message

Mohit Khulbe

unread,
Mar 31, 2020, 1:35:21 PM3/31/20
to Vagrant
Hi Vagrant community,

I download the vagrant box ubuntu/bionic64
when I run 'vagrant up' this error showed
The private key to connect to this box via SSH has invalid permissions
set on it. The permissions of the private key should be set to 0600, otherwise SSH will
ignore the key. Vagrant tried to do this automatically for you but failed. Please set the
permissions on the following file to 0600 and then try running this command again:

/run/media/khg/149E4DD69E4DB0D2/uagrant/.vagrant/machines/default/virtualbox/private_key

Note that this error occurs after Vagrant automatically tries to
do this for you. The likely cause of this error is a lack of filesystem
permissions or even filesystem functionality. For example, if your
Vagrant data is on a USB stick, a common case is that chmod is
not supported. The key will need to be moved to a filesystem that
supports chmod.

   
need suggestions, to work this issue
thanks 
  
Screenshot from 2020-03-31 22-41-45.png

Alvaro Miranda Aguilera

unread,
Mar 31, 2020, 4:23:08 PM3/31/20
to vagra...@googlegroups.com
where are you running vagrant?

whats the filesystem on this path /run/media/khg/149E4DD69E4DB0D2/uagrant

whats your OS ?

vagrant is failing to set the permissions of the private key to 0600 

of this file

/run/media/khg/149E4DD69E4DB0D2/uagrant/.vagrant/machines/default/virtualbox/private_key

alvaro

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/8b6c2a6d-2433-4734-955d-ecf70482846b%40googlegroups.com.


--
Alvaro

Mohit Khulbe

unread,
Apr 1, 2020, 10:09:54 AM4/1/20
to Vagrant
Hi,
I am using manjaro Linux,
the file system to the path is 'NTFS'

thanks for asking,
 what should I do now?
To unsubscribe from this group and stop receiving emails from it, send an email to vagra...@googlegroups.com.


--
Alvaro

Alvaro Miranda Aguilera

unread,
Apr 3, 2020, 3:16:45 PM4/3/20
to vagra...@googlegroups.com
try if you can change the permission of the file

chmod 0600 /run/media/khg/149E4DD69E4DB0D2/uagrant/.vagrant/machines/default/virtualbox/private_key
echo $?

if this doesnt work then you way want to use a different filesystem on this guest



To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/5197f30d-5f48-4c17-b111-fc839416cc52%40googlegroups.com.


--
Alvaro

Reply all
Reply to author
Forward
0 new messages