Skip to content

Commit

Permalink
Added ssh startup script
Browse files Browse the repository at this point in the history
  • Loading branch information
bio-boris committed Dec 31, 2020
1 parent 6cc6102 commit f93a749
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions scripts/start_ssh.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/env bash
set -e
set -x

echo "kbase:kbase" | /usr/sbin/chpasswd

ssh-keygen -t rsa -f /etc/ssh/ssh_host_rsa_key -N '' \
&& ssh-keygen -t dsa -f /etc/ssh/ssh_host_dsa_key -N '' \
&& ssh-keygen -t ecdsa -f /etc/ssh/ssh_host_ecdsa_key -N '' \
&& ssh-keygen -t ed25519 -f /etc/ssh/ssh_host_ed25519_key -N ''

chmod 0600 /etc/ssh/ssh_host_rsa_key
mkdir /home/kbase && chmod 0777 /home/kbase

/usr/sbin/sshd

0 comments on commit f93a749

Please sign in to comment.