Skip to content

Commit

Permalink
modified: setup-wheezy.sh Create .ssh directory for the non root use…
Browse files Browse the repository at this point in the history
…r, if it doesn't exist
  • Loading branch information
Keith Fernie committed Jun 19, 2015
1 parent 87c0977 commit 4922610
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions setup-wheezy.sh
Expand Up @@ -155,6 +155,9 @@ END
ssh-keygen -f /root/.ssh/id_rsa -N "" -t rsa -b 4096
ssh-keygen -f /root/.ssh/id_ed25519 -N "" -t ed25519
ssh-keygen -f /etc/ssh/ssh_host_ed25519_key -N "" -t ed25519
if [ ! -d /home/$USER/.ssh ]; then
mkdir /home/$USER/.ssh
fi
ssh-keygen -f /home/$USER/.ssh/id_rsa -N "" -t rsa -b 4096
ssh-keygen -f /home/$USER/.ssh/id_ed25519 -N "" -t ed25519
sed -i "/ssh_host_dsa_key/c#HostKey \/etc\/ssh\/ssh_host_dsa_key/" /etc/ssh/sshd_config
Expand Down

0 comments on commit 4922610

Please sign in to comment.