Changes between Version 12 and Version 13 of DRM4G/Tutorial
- Timestamp:
- Jun 26, 2016 4:15:18 PM (6 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
DRM4G/Tutorial
v12 v13 146 146 In order to configure a TORQUE/PBS cluster accessed through ssh protocol, you should follow the next steps: 147 147 148 1. Generate a public/private key pair without password : 149 {{{ 150 #!sh 151 [user@mycomputer~]$ ssh-keygen -t rsa -b 2048 -f $HOME/.ssh/meteo_rsa -N "" 152 }}} 153 148 154 1. Configure the `meteo` resource. If you do not have a [wiki:DRM4G#Resourcesection private_key] file, you can generate one by executing [http://www.openbsd.org/openssh/manual.html ssh-keygen]. This command will generate a public key (`~/.ssh/id_rsa.pub`) that will be necessary later on. 149 155 {{{ … … 155 161 username = user 156 162 frontend = ui.macc.unican.es 157 private_key = ~/.ssh/ id_rsa163 private_key = ~/.ssh/meteo_rsa 158 164 lrms = pbs 159 165 queue = qrid … … 168 174 meteo enabled 169 175 170 }}}171 1. Copy the public key (`~/.ssh/id_rsa.pub`) to `authorized_keys` file on the remote frond-end, and adds the private key to the agent for the ssh authorization:172 {{{173 #!sh174 175 [user@mycomputer~]$ drm4g id meteo init176 Starting ssh-agent ...177 WARNING: ssh-agent is already running178 --> Add '/home/user/.ssh/id_rsa' into ssh-agent for 168 hours179 Lifetime set to 7 days, 0:00:00180 --> Copy '/home/user/.ssh/id_rsa' to ~/.ssh/authorized_keys file on 'ui.macc.unican.es'181 182 }}}183 1. Show information about the identity:184 {{{185 #!sh186 [user@mycomputer~]$ drm4g id meteo info187 --> Display '/home/user/.ssh/id_rsa' key188 ssh-rsa AAAAB3NzaC1yc2EAAAADAQAABAQDcUYc9tDOYptqAWf7YzgN2NY9F+AtObtVvgh0PsIWZvDx1ml6j9n7zihiHFwnNIQh1q1EpIku/Jg8kyKOnbpm+2prnIhURoAWxO+rlzCF0Q4hHHW5svNNR6doCZ9mNNswi1uHaVpwhu8EKgfPyH+oNI/inSnJ/QQRHILyjUvaNbQPuXwVBpYjpvOAFOYA2VZqi+IfTq13lks7DCBfv3DK1w38aDQ9xFP/hYlQKwC/DwJo1q2CWxg5WZhgHFRG/1nyVH/nTbjOMTRZS61Gre58UUab/wSZQc6rTkrTitnCdAujIUx5eiOhM90JfDj+VUriLTnXCkwUC4+h189 }}}190 191 176 That's it! Now, you can summit jobs to `meteo`. 192 177