Update user creation with keeping public key on the server
With this I can check if I have added that key already to avoid ssh key double creations
This commit is contained in:
@@ -11,7 +11,7 @@ The folder holding the script must be owned by *root* and have *600* permissions
|
||||
|
||||
```sh
|
||||
cd /root/
|
||||
git clone http://git.tequila.jp/ScriptsCollections/AwsUserCreate.git users
|
||||
git clone https://git.tequila.jp/ScriptsCollections/AwsUserCreate.git users
|
||||
chown root. users
|
||||
chgrp 600 users
|
||||
```
|
||||
@@ -52,9 +52,7 @@ user2;othername;group-a;;
|
||||
|
||||
### User with existing PEM key
|
||||
|
||||
If we want to create a user that already has a PEM key or we want to have the user use the same PEM key for login we can copy the existing pub key into the ssh key folder
|
||||
|
||||
If the folder `ssh-keygen` does not exist, the folder is automatically created as a sub folder to the folder where the '*user_list.txt*' is located. An additional `zip` folder is created that will hold the current run created user data.
|
||||
If we want to create a user that already has a PEM key or we want to have the user use the same PEM key for login we can copy the existing pub key into the ssh key folder `ssh-keygen-created-pub`
|
||||
|
||||
The public PEM key file format is as followed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user