Differences

This shows you the differences between two versions of the page.

Link to this comparison view

isc:info:virtualmachine [2023/10/15 20:39]
florin.stancu
isc:info:virtualmachine [2024/10/14 08:37] (current)
mihai.ciocan1508 [OpenStack]
Line 19: Line 19:
 # first, check if a keypair already exists # first, check if a keypair already exists
 you@yourlaptop:​~#​ ls -l ~/.ssh/ you@yourlaptop:​~#​ ls -l ~/.ssh/
-# if the files `id_rsa` and `id_rsa.pub` already exist, SKIP this next step: +# if the files `id_ed25519` and `id_ed25519.pub` already exist, SKIP this next step: 
-you@yourlaptop:​~#​ ssh-keygen+you@yourlaptop:​~#​ ssh-keygen ​-t ed25519 ​ # use elliptic curves, better + shorter keys!
 # answer the defaults (aka just press enter multiple times) # answer the defaults (aka just press enter multiple times)
 you@yourlaptop:​~#​ ls -l ~/.ssh/ you@yourlaptop:​~#​ ls -l ~/.ssh/
--rw------- 1 root root 2602 Oct 15 12:59 id_rsa ​    # <-- THE PRIVATE KEY, keep secret! +-rw------- 1 root root 2602 Oct 15 12:59 id_ed25519 ​    # <-- THE PRIVATE KEY, keep secret! 
--rw-r--r-- 1 root root  571 Oct 15 12:59 id_rsa.pub # <-- your PUBLIC key to give away! +-rw-r--r-- 1 root root  571 Oct 15 12:59 id_ed25519.pub # <-- your PUBLIC key to give away! 
-# print and copy the private key (including the 'ssh-rsa' prefix!): +# print and copy the private key (including the 'ssh-ed25519' prefix!): 
-you@yourlaptop:​~#​ cat ~/.ssh/id_rsa.pub +you@yourlaptop:​~#​ cat ~/.ssh/id_ed25519.pub 
-ssh-rsa AAAAB3NzaC... ​ # a very long line containing the public key number+ssh-ed25519 ​AAAAB3NzaC... ​ # a very long line containing the public key number
 </​code>​ </​code>​
   * Now, connect to the university'​s frontend processor machine (FEP): <code bash>   * Now, connect to the university'​s frontend processor machine (FEP): <code bash>
Line 36: Line 36:
 [moodle.username@fep8 ~]$ mkdir -p ~/.ssh/ [moodle.username@fep8 ~]$ mkdir -p ~/.ssh/
 [moodle.username@fep8 ~]$ nano ~/​.ssh/​authorized_keys [moodle.username@fep8 ~]$ nano ~/​.ssh/​authorized_keys
-# paste your public key, INCLUDING THE ssh-rsa prefix!+# paste your public key, INCLUDING THE ssh-ed25519 ​prefix!
 # save, then exit! # save, then exit!
 </​code>​ </​code>​
Line 42: Line 42:
   * **DO NOT LOSE (or share) THE PRIVATE KEY ON YOUR PC!** It can be used to authenticate on your behalf on FEP (and possibly more servers you setup the key with)!   * **DO NOT LOSE (or share) THE PRIVATE KEY ON YOUR PC!** It can be used to authenticate on your behalf on FEP (and possibly more servers you setup the key with)!
   * Now it's time to use [[https://​cloud.grid.pub.ro/​|OpenStack'​s Web UI]]! Open it in your browser, authenticate using ''​login.upb.ro'',​ then:   * Now it's time to use [[https://​cloud.grid.pub.ro/​|OpenStack'​s Web UI]]! Open it in your browser, authenticate using ''​login.upb.ro'',​ then:
-  * Compute -> Key Pairs -> Import Public Key, give it a suggestive name (e.g., "My Laptop"​),​ set //Key Type// to ''​SSH''​ and paste your public key (contents of ''​id_rsa.pub''​). **Note**: you only need to do this once per your device'​s lifetime (redo only if you lose and re-generate the key!).+  * Compute -> Key Pairs -> Import Public Key, give it a suggestive name (e.g., "My Laptop"​),​ set //Key Type// to ''​SSH''​ and paste your public key (contents of ''​id_ed25519.pub''​). **Note**: you only need to do this once per your device'​s lifetime (redo only if you lose and re-generate the key!).
   * One-time setup is over! Proceed to create a new Virtual Machine and connect to it using ssh (read the following steps).   * One-time setup is over! Proceed to create a new Virtual Machine and connect to it using ssh (read the following steps).
  
Line 49: Line 49:
   * Go to [[https://​cloud.grid.pub.ro/​]]. Click Compute -> Instances -> Launch Instance button!   * Go to [[https://​cloud.grid.pub.ro/​]]. Click Compute -> Instances -> Launch Instance button!
     * Fill the Instance Name (use //your name + lab number// for law & order);     * Fill the Instance Name (use //your name + lab number// for law & order);
-    * Go to the **Source** page, search the Available section for ''​ISC ​2023''​ then click the //up arrow// icon to select it;+    * Go to the **Source** page, search the Available section for ''​ISC ​2024 rev1''​ then click the //up arrow// icon to select it;
     * From **Flavor**, choose ''​m1.small''​ (1GB RAM, 10GB disk should be enough);     * From **Flavor**, choose ''​m1.small''​ (1GB RAM, 10GB disk should be enough);
     * From **Networks**,​ choose ''​vlan9''​ (click the //up arrow// icon);     * From **Networks**,​ choose ''​vlan9''​ (click the //up arrow// icon);
isc/info/virtualmachine.1697391589.txt.gz · Last modified: 2023/10/15 20:39 by florin.stancu
CC Attribution-Share Alike 3.0 Unported
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0