mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-08-26 00:00:09 +02:00
7 lines
315 B
Batchfile
7 lines
315 B
Batchfile
|
:: vagrant public key
|
||
|
if exist a:\vagrant.pub (
|
||
|
copy a:\vagrant.pub C:\Users\vagrant\.ssh\authorized_keys
|
||
|
) else (
|
||
|
powershell -Command "(New-Object System.Net.WebClient).DownloadFile('https://raw.githubusercontent.com/mitchellh/vagrant/master/keys/vagrant.pub', 'C:\Users\vagrant\.ssh\authorized_keys')" <NUL
|
||
|
)
|