In linux,
If I added a file or a directory in /etc/skel
, when I create a user this get the file or dir in skel.
with
ssh-keygen -t rsa
I can create the ssh keys
how I can automatically create the ssh keys each time when I added a user?
In linux,
If I added a file or a directory in /etc/skel
, when I create a user this get the file or dir in skel.
with
ssh-keygen -t rsa
I can create the ssh keys
how I can automatically create the ssh keys each time when I added a user?
man adduser under debian:
You should write a wrapper script around
useradd
that runsssh-keygen
and anything else you need when you create an account.