如何通过ssh访问另一个流浪盒?

时间:2017-02-08 15:46:07

标签: ssh vagrant virtual-machine

我使用Vagrant 1.9.1并且框是config.vm.box =“centos / 7”。当调用“vagrant ssh”来连接盒子时,似乎使用了私钥。但是,我不确定这些键位于何处。非常感谢

亲切的问候 黛安娜

1 个答案:

答案 0 :(得分:0)

您可以运行$(".assignments-table tr").each(function() { var t = $(this).find("td:nth-child(1)"); // Here you were getting the current td // You should be looking for the tds with the same class instead if($(t).length){ // And here you were checking for the length of the td, that will allways be 1 console.log('more than one elements with same class exist'); $(t).addClass('same'); // do other stuff too } else { console.log('no elements with same class exist') }; }); 命令,例如

vagrant ssh-config

它将为您提供所使用的ssh密钥的信息