Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bob Tanner
packer-windows
Commits
aaf48f79
Commit
aaf48f79
authored
Oct 12, 2014
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove ssh_host_ed25519_key as Vagrant's net-ssh 2.9.1 does not support it
parent
f8033371
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
scripts/openssh.ps1
scripts/openssh.ps1
+4
-0
No files found.
scripts/openssh.ps1
View file @
aaf48f79
...
...
@@ -50,6 +50,10 @@ $sshd_config = $sshd_config -replace 'Banner /etc/banner.txt', '#Banner /etc/ban
$sshd_config
=
$sshd_config
-replace
'Port 2222'
,
"Port 22"
Set-Content
"C:\Program Files\OpenSSH\etc\sshd_config"
$sshd_config
Write-Host
"Removing ed25519 key as Vagrant net-ssh 2.9.1 does not support it"
Remove-Item
-Force
-ErrorAction
SilentlyContinue
"C:\Program Files\OpenSSH\etc\ssh_host_ed25519_key"
Remove-Item
-Force
-ErrorAction
SilentlyContinue
"C:\Program Files\OpenSSH\etc\ssh_host_ed25519_key.pub"
# use c:\Windows\Temp as /tmp location
Write-Output
"Setting temp directory location"
Remove-Item
-Recurse
-Force
-ErrorAction
SilentlyContinue
"C:\Program Files\OpenSSH\tmp"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment