New User setup¶
Below are described some steps to setup a new user account.
Default folders¶
Here is the command to create the default folders for a given user when no physical connexion can be made to the Thoth subnetwork.
su <username>
cd /home/<username>
xdg-user-dirs-update
Remote SSH keys setup¶
When a new member <user>
starts remotely, admins should grant them
remote ssh access to <user_machine>
. The procedure is described
below:
(admin on <user_machine>)
su <user>
(admin on <user_machine>)
ssh-keygen
: save the keys to~/.ssh/id_rsa
and~/.ssh/id_rsa.pub
and set a temporary password(admin on <user_machine>)
cd ~/.ssh && cat id_rsa.pub > authorized_keys
send private key
id_rsa
asthoth_tmp
to user by email, who should save it to~/.ssh/thoth_tmp
on their pc- (on user pc) Edit
~/.ssh/config
with: IdentityFile ~/.ssh/thoth_tmp Host bastion HostName bastion.inrialpes.fr ProxyCommand none ForwardX11 yes User <user> Host *.inrialpes.fr ProxyCommand ssh -W %h:22 bastion ForwardX11 yes User <user> Host <user_machine> HostName <user_machine>.inrialpes.fr User <user> ForwardX11 yes ProxyCommand ssh -W %h:22 bastion Host edgar HostName edgar.inrialpes.fr User <user> ForwardX11 yes ProxyCommand ssh -W %h:22 bastion`` Replacing ``<user>`` and
Replace
<user_machine>
accordingly.
- (on user pc) Edit
(on user pc)
chmod 755 ~/.ssh/thoth_tmp
(on user pc) Check that everything works well with
ssh bastion
andssh <user_machine>
(user on <user_machine>)
ssh-keygen
: save the keys to~/.ssh/id_rsa_new
and~/.ssh/id_rsa_new.pub
and set a permanent password(on user pc)
scp <user_machine>:~/.ssh/id_rsa_new ~/.ssh/thoth
(user on <user_machine>)
``cd ~/.ssh && mv id_rsa_new id_rsa && mv id_rsa_new.pub id_rsa.pub && cat id_rsa.pub > authorized_keys``
(on user pc) Update
~/.ssh/config/
such that :IdentityFile ~/.ssh/thoth
(on user pc) Clean up :
rm ~/.ssh/thoth_tmp