projects
/
hdw-linux
/
hdw-linux.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
packages updates = helper improvements
[hdw-linux/hdw-linux.git]
/
packages
/
security
/
openssh
/
openssh.setup
1
setup_block() {
2
useradd -u 1025 -c 'sshd server' sshd || true
3
echo "creating ssh host keys ..."
4
/usr/bin/ssh-keygen -t dsa -b 1024 \
5
-f /etc/ssh/ssh_host_dsa_key -N ""
6
/usr/bin/ssh-keygen -t rsa -b 1024 \
7
-f /etc/ssh/ssh_host_rsa_key -N ""
8
echo "done. "
9
}
10
11
uninstall_block() {
12
userdel sshd || true
13
}