Difference between revisions of "Linux"

From orch
Jump to: navigation, search
(ssh keys)
Line 14: Line 14:
  
 
== ssh keys ==
 
== ssh keys ==
 +
 +
You should first go to your personal repository.
  
 
<code>
 
<code>
   .ssh/
+
   cd
 +
  ssh-keygen -t dsa
 +
</code>
 +
 
 +
You should get the following message,
 +
 
 +
<code>
 +
  Generating public/private dosa key pair
 +
  Enter file in which to save the key (/home/login/.ssh/id_dsa
 +
</code>
 +
 
 +
Just press enter. You must then copy the public key that you will in <code>.ssh/id_dsa.pub</code> to the file <code>.ssh/authorized_keys</code> of the distant host you want to give access to. This key should have the following format.
 +
 
 +
<code>
 +
  ssh -dss .....
 +
  @....local
 
</code>
 
</code>

Revision as of 16:36, 11 March 2016

Run on multi-procs

  mpirun -np 12 main

  mpirun -np 12 main <log &

.bashrc

ssh keys

You should first go to your personal repository.

  cd
  ssh-keygen -t dsa

You should get the following message,

  Generating public/private dosa 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 in .ssh/id_dsa.pub to the file .ssh/authorized_keys of the distant host you want to give access to. This key should have the following format.

  ssh -dss .....
  @....local