Difference between revisions of "Linux"

From orch
Jump to: navigation, search
(SSH keys)
(.bashrc)
Line 9: Line 9:
 
</code>
 
</code>
  
== .bashrc ==
+
== Manage your .bashrc ==
 
+
 
+
  
 
== SSH keys ==
 
== SSH keys ==

Revision as of 15:48, 11 March 2016

Run on multi-procs

  mpirun -np 12 main

  mpirun -np 12 main <log &

Manage your .bashrc

SSH keys

You should first go to your personal repository and generate a new key if there is no id_dsa.pub file in the .ssh directory.

  cd
  ssh-keygen -t dsa

You should get the following message,

  Generating public/private dsa key pair
  Enter file in which to save the key (/home/login/.ssh/id_dsa):

Just press enter. You must then copy the public key that you will find in .ssh/id_dsa.pub to the file .ssh/authorized_keys of the distant host you want to give access to. This public key should have the following format.

  ssh-dss AAAAB3NzaC................................................................................. login@machine