标签:java vim ref ant pos following ide row restart type this commend to view your vagrant ssh-config: you will get some info like this: remember open Uncomment two rows: input commend to restart ssh service: you may encounter a password request and you forget your password, you can: then you can login your Vagrant VM now! Login Vagrant VM using Xshell 标签:java vim ref ant pos following ide row restart 原文地址:https://www.cnblogs.com/jmhwsrr/p/14851305.htmlConnect Vagrant VM by using Xshell
1. View your vagrant ssh-config
vagrant ssh-config
Host default
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile F:/Cygwin/home/jmh/ubuntu/.vagrant/machines/default/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
HostName
, post
.2. Modify sshd_config file
sshd_config
using vim:sudo vim /etc/ssh/sshd_config
yes
;yes
.3. Restart the ssh service
systemctl restart sshd
password
4. Login using Xshell
5. Useful References
发表评论 取消回复