我正在尝试建立一个本地开发 Wordpress 网站,这样当我转到 example.test 时,基岩 wordpress 网站将加载 - 目前它没有加载,我从 wsl 终端收到以下错误:
流浪起来
流浪的ssh
root@comp:/mnt/c/users/user1/example.com/trellis# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: [vagrant-hostmanager:guests] Updating hosts file on active guest virtual machines...
==> default: [vagrant-hostmanager:host] Updating hosts file on your workstation (password may be required)...
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
==> default: Running action triggers after up ...
==> default: Running trigger...
==> default: Adding vagrant ssh-config for example.test to ~/.ssh/config
==> default: Machine 'default' has a post `vagrant up` message. This is a message
==> default: from the creator of the Vagrantfile, and not from Vagrant itself:
==> default:
==> default: Your Trellis Vagrant box is ready to use!
==> default: * Composer and WP-CLI commands need to be run on the virtual machine
==> default: for any post-provision modifications.
==> default: * You can SSH into the machine with `vagrant ssh`.
==> default: * Then navigate to your WordPress sites at `/srv/www`
==> default: or to your Trellis files at `/home/vagrant/trellis`.
root@comp:/mnt/c/users/user1/example.com/trellis# vagrant ssh
Bad owner or permissions on /root/.ssh/config
非常感谢您对此的任何帮助。我努力了:
ln -s /mnt/c/Users/user1/.ssh ~/.ssh
如此处所述:https ://florianbrinkmann.com/en/ssh-key-and-the-windows-subsystem-for-linux-3436/
vagrant up 似乎挂在这一行:
==> default: Adding vagrant ssh-config for example.test to ~/.ssh/config
目前我不确定如何克服这个 ssh 问题。