所以当我做无业游民时,我知道无业游民会生成一对公钥/私钥。我用自己的公用密钥覆盖了流浪映像中的公用密钥条目,所以现在流浪者ssh需要密码。
如何找到无用的公共密钥,以便可以将密钥附加到authourized_keys文件中?
无用的ssh-config
Host host1
HostName 127.0.0.1
User vagrant
Port 2222
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/hemant/couchbase/couchbase/mobile-testkit/vagrant/public_network/.vagrant/machines/host1/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL
Host host2
HostName 127.0.0.1
User vagrant
Port 2200
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/hemant/couchbase/couchbase/mobile-testkit/vagrant/public_network/.vagrant/machines/host2/virtualbox/private_key
IdentitiesOnly yes
LogLevel FATAL