vagrant ssh-config
to show ssh config.-
Host devops-box HostName 127.0.0.1 User vagrant Port 2222 UserKnownHostsFile /dev/null StrictHostKeyChecking no PasswordAuthentication no IdentityFile /Users/Someone/Documents/devops-box/.vagrant/machines/devops-box/virtualbox/private_key IdentitiesOnly yes LogLevel FATAL
- Open VScode and
⌘⇧P
and selecting Remote-SSH: Open Configuration File. - Paste the vagrant ssh config.
⌘⇧P
and selecting Remote-SSH: Connect to Host and selectdevops-box
.
sudo apt-get install ntpdate; sudo ntpdate ntp.ubuntu.com