Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bob Tanner
packer-windows
Commits
28ffb36b
Commit
28ffb36b
authored
Dec 17, 2013
by
Rui Lopes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Reduce the login noise by disabling the login banner.
parent
6d699d69
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
scripts/openssh.ps1
scripts/openssh.ps1
+2
-0
No files found.
scripts/openssh.ps1
View file @
28ffb36b
...
...
@@ -39,6 +39,8 @@ $sshd_config = $sshd_config -replace '#PubkeyAuthentication yes', 'PubkeyAuthent
$sshd_config
=
$sshd_config
-replace
'#PermitUserEnvironment no'
,
'PermitUserEnvironment yes'
# disable the use of DNS to speed up the time it takes to establish a connection
$sshd_config
=
$sshd_config
-replace
'#UseDNS yes'
,
'UseDNS no'
# disable the login banner
$sshd_config
=
$sshd_config
-replace
'Banner /etc/banner.txt'
,
'#Banner /etc/banner.txt'
Set-Content
"C:\Program Files\OpenSSH\etc\sshd_config"
$sshd_config
# use c:\Windows\Temp as /tmp location
...
...
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