Closed syphax-bouazzouni closed 6 months ago
Go root sudo su
sudo su
Create user
root@remote $ adduser <username>
Change his password
root@remote $ sudo passwd <username>
4 Make his admin
root@remote $ sudo usermod -aG wheel <username>
Connect as this user sudo su <username>
sudo su <username>
Add his public sshkey in the authorized keys
sshkey
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
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
you will need to install openfortivpn if needed, in macos it is by doing brew install openfortivpn
openfortivpn
brew install openfortivpn
Documentation migrated to https://doc.jonquetlab.lirmm.fr/share/7c28cb12-614d-41c5-b5e9-7d89f4640224 and confirmed with @Bilelkihal that it works.
Steps
Go root
sudo su
Create user
Change his password
4 Make his admin
Connect as this user
sudo su <username>
Add his public
sshkey
in the authorized keysto connect to the server you need to use the LIRMM VPN