Ceci est une ancienne révision du document !
allo-psmn
node (whether when connecting from the ENS network of from outside), follow these instructions
To connect with SSH from outside the ENS network, you must use one of the SSH servers of the institution:
ssh.ens-lyon.fr
if you have an informatic account at ENS de Lyon, ssh.psmn.ens-lyon.fr
server (see infographic):Legend :
Use the following command:
ssh.ens-lyon.fr
Your SSH access to ssh.ens-lyon.fr
, need to be ACTIVATED, see the ENS documentation.
ssh -X -oProxyCommand="ssh yourlogin@ssh.ens-lyon.fr netcat -w1 allo-psmn %p" yourlogin@allo-psmn.psmn.ens-lyon.fr
Then, you must give your password twice.
yourlogin@ssh.ens-lyon.fr's password : yourlogin@allo-psmn's password :
ssh.psmn.ens-lyon.fr
ssh.psmn.ens-lyon.fr
server is a minimalistic gateway without access to your /home directory at PSMN. You only have enough space to copy your SSH public key and some configuration files (ssh/config, alias, …).
Two-steps connection:
ssh yourlogin@ssh.psmn.ens-lyon.fr yourlogin@ssh.psmn.ens-lyon.fr's password : $ ssh yourlogin@allo-psmn.psmn.ens-lyon.fr yourlogin@allo-psmn's password :
One-step connection:
ssh -X -oProxyCommand="ssh yourlogin@ssh.psmn.ens-lyon.fr netcat -w1 allo-psmn %p" yourlogin@allo-psmn.psmn.ens-lyon.fr
Then, you'll have to give your password twice:
yourlogin@ssh.psmn's password : yourlogin@allo-psmn's password :
et vous êtes connectés à allo-psmn
:
votrelogin@allo-psmn%
Une fois connecté à allo-psmn
, vous avez accès à votre home-directory du PSMN et à vos fichiers.
allo-psmn
est un serveur de connexion ; il vous permet d'avoir accès à vos fichiers et de les transférer, mais c'est tout.
allo-psmn
, sur l'un des serveurs de compilation
Pour cela, il faut taper la commande :
ssh -X nom_serveur_de_compilation
où nom_serveur_de_compilation est le nom de l'un des serveurs de compilation.
Vous pouvez simplifier votre usage des commandes SSH en utilisant un jeu de clefs, un agent SSH et une configuration adaptée (voir le paragraphe suivant et l'exemple de fichier de configuration).
Si vous disposez d'un jeu de clefs SSH (personnel, avec passphrase), vous pouvez ajouter votre clef publique (id_?sa.pub) au fichier ~/.ssh/authorized_keys
.
ssh.psmn.ens-lyon.fr
(home local)scp ~/.ssh/id_rsa.pub votrelogin@ssh.psmn.ens-lyon.fr:~/.ssh/id_rsa.pub.perso ssh votrelogin@ssh.psmn.ens-lyon.fr cat .ssh/id_rsa.pub.perso >> .ssh/authorized_keys
allo-psmn
(home PSMN)scp ~/.ssh/id_rsa.pub votrelogin@allo-psmn:~/.ssh/id_rsa.pub.perso ssh votrelogin@allo-psmn cat .ssh/id_rsa.pub.perso >> .ssh/authorized_keys