1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/bash
#
cat
<< _SSHCONFIG >
/etc/ssh/ssh
.banner
[-] welcome to the wonderland ...
[^]
. ____ . ____
/\\ ___
'\\ /\\ ____'
\\
\\ \\ _ \\ \\ \\ \\ \\ \\/
\\ \\ \\/\\ \\/ \\ \\ \\
\\ \\ - / \\ \\ \\
\\ \\ \\ \\ \\ \\
\\ \\ \\ \\ \\ \\
\\ \\ \\ \\ \\ \\ __/\\
\\ \\ \\ \\_\\
/____/
\\_\\/
[^]
[^]
'.'
: hard working now, take care!
_SSHCONFIG
sed
-i s/^Banner/
#Banner/ /etc/ssh/sshd_config
sed
-i /^
#Banner/d /etc/ssh/sshd_config
echo
"Banner /etc/ssh/ssh.banner"
>>
/etc/ssh/sshd_config
service sshd reload
|
本文转自 pcnk 51CTO博客,原文链接:http://blog.51cto.com/nosmoking/1594714,如需转载请自行联系原作者