Identityfile is in quotes
stribert opened this issue · comments
Robert Strind commented
I run Ubuntu 12.04.2 LTS.
Output of 'vagrant ssh-config':
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile "/home/robert/.vagrant.d/insecure_private_key"
IdentitiesOnly yes```
As you can see IdentityFile is in quotes, so I need to do:
env.key_filename = v.keyfile().replace('"', '')
Or else:
IOError: [Errno 2] No such file or directory: '"/home/robert/.vagrant.d/insecure_private_key"'
Todd DeLuca commented
Fixed by zbal.