Ceci est une ancienne révision du document !
Machine virtuelle Grifon pour le Liberespace.
# VM 2 : Nom: fdl, Nom VM: proxience02, Pseudo fdl IPv4: 89.234.186.115, 2a00:5884:820d::/48 Signature serveur SSH : 2048 90:3c:04:61:60:d3:34:80:1b:c4:4c:79:bf:f4:57:9f 89.234.186.115 (RSA) 256 0c:36:f3:cb:51:f4:33:72:de:ab:81:2e:ac:9a:17:7e 89.234.186.115 (ECDSA) 256 18:d4:d2:58:13:55:7f:d8:8b:4f:55:b5:83:55:ac:32 89.234.186.115 (ED25519) - - Le mot de passe des VM est inscrit dans le fichier : ".postinstall" dans le HOME de fdl. S'il y a un problème, n'exitez pas à contacter : adminsys@grifon.fr - -- David Joly pour grifon
ssh-keyscan 89.234.186.115 2> /dev/null | ssh-keygen -l -E md5 -f - 2048 MD5:90:3c:04:61:60:d3:34:80:1b:c4:4c:79:bf:f4:57:9f 89.234.186.115 (RSA) 256 MD5:0c:36:f3:cb:51:f4:33:72:de:ab:81:2e:ac:9a:17:7e 89.234.186.115 (ECDSA) 256 MD5:18:d4:d2:58:13:55:7f:d8:8b:4f:55:b5:83:55:ac:32 89.234.186.115 (ED25519)
ssh-keyscan 2a00:5884:820d::1 2> /dev/null | ssh-keygen -l -E md5 -f - 2048 MD5:90:3c:04:61:60:d3:34:80:1b:c4:4c:79:bf:f4:57:9f 2a00:5884:820d::1 (RSA) 256 MD5:0c:36:f3:cb:51:f4:33:72:de:ab:81:2e:ac:9a:17:7e 2a00:5884:820d::1 (ECDSA) 256 MD5:18:d4:d2:58:13:55:7f:d8:8b:4f:55:b5:83:55:ac:32 2a00:5884:820d::1 (ED25519)
$ slogin fdl@89.234.186.115
last fdl pts/0 did35-1-88-189-2 Wed Nov 15 22:21 still logged in reboot system boot 3.16.0-4-amd64 Wed Nov 15 20:37 - 22:22 (01:45) wtmp begins Wed Nov 15 20:37:04 2017
uname -a Linux proxience02 3.16.0-4-amd64 #1 SMP Debian 3.16.43-2+deb8u5 (2017-09-19) x86_64 GNU/Linux
lscpu Architecture : x86_64 Mode(s) opératoire(s) des processeurs : 32-bit, 64-bit Boutisme : Little Endian Processeur(s) : 1 Liste de processeur(s) en ligne : 0 Thread(s) par coeur : 1 Coeur(s) par socket : 1 Socket(s) : 1 Noeud(s) NUMA : 1 Identifiant constructeur : GenuineIntel Famille de processeur : 15 Modèle : 6 Nom de modèle : Common KVM processor Révision : 1 Vitesse du processeur en MHz : 2394.268 BogoMIPS : 4788.53 Constructeur d'hyperviseur : KVM Type de virtualisation : complet Cache L1d : 32K Cache L1i : 32K Cache L2 : 4096K Cache L3 : 16384K Noeud NUMA 0 de processeur(s) : 0
cat /proc/cpuinfo processor : 0 vendor_id : GenuineIntel cpu family : 15 model : 6 model name : Common KVM processor stepping : 1 microcode : 0x1 cpu MHz : 2394.268 cache size : 16384 KB physical id : 0 siblings : 1 core id : 0 cpu cores : 1 apicid : 0 initial apicid : 0 fpu : yes fpu_exception : yes cpuid level : 13 wp : yes flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 syscall nx lm constant_tsc nopl xtopology pni cx16 x2apic hypervisor lahf_lm bogomips : 4788.53 clflush size : 64 cache_alignment : 128 address sizes : 40 bits physical, 48 bits virtual power management:
$ sudo su
(dans .postinstall)
# cat postinstall
Reading package lists... Building dependency tree... Reading state information... The following NEW packages will be installed: sudo 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 854 kB of archives. After this operation, 2391 kB of additional disk space will be used. Get:1 http://ftp.fr.debian.org/debian/ jessie/main sudo amd64 1.8.10p3-1+deb8u4 [854 kB] Fetched 854 kB in 0s (5454 kB/s) Selecting previously unselected package sudo. (Reading database ... 20981 files and directories currently installed.) Preparing to unpack .../sudo_1.8.10p3-1+deb8u4_amd64.deb ... Unpacking sudo (1.8.10p3-1+deb8u4) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for systemd (215-17+deb8u7) ... Setting up sudo (1.8.10p3-1+deb8u4) ... Processing triggers for systemd (215-17+deb8u7) ... # 05. Create new User # ret usermod : 0 # 06. Disable Root # ret disable root account : 0
mkdir /root/.ssh && cat > /root/.ssh/authorized_keys << CLEF ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCokW87FwkPOGwekQOlv0Jja8g/py6l2V+6CrwqjBrq7vDvgQzGXQu9rqiYSYcaT8Am/v5Knw5YlP8Ep7yq281Re+rJt0acrevPFkJromUztxg/+1Y5OiIpfXqSzITFVygLC8FsY57k+879HXfCqn80M6MHLAyTUeRB4Rs43WJLQEHPqNyU5HW9ITfZJWDzywwhagztvHm2MTnbV7w0B6SqeG68JlnXtQ8h/rTcXI3AomIdHQh354WwzHJrt5XFNPtZPUdSl4YxCIsbh3Woy8kEJ1ebkpQttGHBP/h/8zwiTMd2CXEtTZlkFoakzF4JWjxmvHp9YH1eYSLUTQr3q+49 fdl@amalthee CLEF
# apt update
$ slogin root@2a00:5884:820d::1
# editor /etc/hosts
127.0.0.1 localhost 89.234.186.115 proxience02 2a00:5884:820d::11 proxience02 # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
devient
127.0.0.1 localhost 89.234.186.115 hermes.liberespace.org hermes 2a00:5884:820d::1 hermes.liberespace.org hermes # The following lines are desirable for IPv6 capable hosts ::1 localhost ip6-localhost ip6-loopback ff02::1 ip6-allnodes ff02::2 ip6-allrouters
# editor /etc/hostname
proxience02
devient
hermes.liberespace.org
# hostname -F /etc/hostname