agroportal / project-management

Repository used to consolidate documentation about the AgroPortal project and track content related issues.
http://agroportal.lirmm.fr
7 stars 0 forks source link

Create a user for Bilel in our servers #555

Closed syphax-bouazzouni closed 6 months ago

syphax-bouazzouni commented 6 months ago

Steps

  1. Go root sudo su

  2. Create user

    root@remote $ adduser <username>
  3. Change his password

    root@remote $ sudo passwd <username>

    4 Make his admin

    root@remote $ sudo usermod -aG wheel <username>
  4. Connect as this user sudo su <username>

  5. Add his public sshkey in the authorized keys

    root@remote$ su - <username> 
    <username>@remote$ cd ~
    <username>@remote$ mkdir .ssh
    <username>@remote$ echo "your public key" >> .ssh/authorized_keys
    <username>@remote$ chmod 700 .ssh
    <username>@remote$ chmod 600 .ssh/authorized_keys
  6. to connect to the server you need to use the LIRMM VPN

    openfortivpn gate-e.lirmm.fr:80 -u <VPN username> --trusted-cert <VPN cert>

    you will need to install openfortivpn if needed, in macos it is by doing brew install openfortivpn

    TODO

syphax-bouazzouni commented 6 months ago

Documentation migrated to https://doc.jonquetlab.lirmm.fr/share/7c28cb12-614d-41c5-b5e9-7d89f4640224 and confirmed with @Bilelkihal that it works.