Create an user on the server

Admin

Create an user

 * 1. Please log in as root on server
 * 2. Start YaSt2
 * 3. Choose "Sicherheit und Benutzer"
 * 4. Then go to "Benutzer bearbeiten und anlegen"
 * 5. In "Verwaltung von Benutzern und Gruppen" will the user "Hinzufügen" be added.
 * 6. Type every needed informations and confirm it with "Übernehmen"
 * 7. Now press the buttom "Beenden" and the user will be created.

Grant rights log in to the server
ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub newUser@server
 * 1. Log in as root on the server and starts the following script with "./ssh-pw-login.sh"
 * 2. Create with the following command an SSH-key on your PC/Client for the authentication with the server.
 * 3. The default filename (id_rsa) can easyly confirmed with ⏎, if you wouldn't like to create an other key. I dissuade from using an empty passphrase, while everybody how came in the own of this file, he get immediately access to the associated systems.
 * 4 a). Now the public key, with ending .pub (id_rsa.pub), must be send to the host system. For that we use the application ssh-copy-id.
 * 5. And finally execute this script (./ssh-key-login.sh) as root

Grant admin rights for this user
ssh-keygen -t rsa ssh-copy-id -i ~/.ssh/id_rsa.pub root@server /etc/init.d/ssh reload
 * 1. Log in as root on the server and starts the following script with "./ssh-pw-login.sh".
 * 2. Log in on the Server with the new username, that the account will create.
 * 3. Create with the following command an SSH-key for the authentication with the server.
 * 4. The default filename (id_rsa) can easyly confirmed with ⏎, if you wouldn't like to create an other key. I dissuade from using an empty passphrase, while everybody how came in the own of this file, he get immediately access to the associated systems.
 * 5 a). Now the public key, with ending .pub (id_rsa.pub), must be send to the host system. For that we use the application ssh-copy-id.
 * 5 b) Alternative: You can also put your public key (id_rsa.pub) to the authorized_keys file on the server.
 * 6. Now the user can log in on the server with his SSH-Key also as root.
 * 7. Execute this script (./ssh-key-login.sh) as root
 * 8. And last but noch least restart of ssh with the following command:

Change Passphrase
If you like to change your passphrase on your ssh-key please enter

ssh-keygen -p -f id_rsa

Delete old key
On every changes about the key, for example reinstalling the server, the old key must be deleted. You can do it with the following command

ssh-keygen -R hostname