Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentesRévision précédente
Prochaine révision
Révision précédente
elearning:workbooks:redhat:rh124en:l112 [2024/11/12 12:58] adminelearning:workbooks:redhat:rh124en:l112 [2024/11/29 08:45] (Version actuelle) admin
Ligne 34: Ligne 34:
       * 1.2 - Name Resolution        * 1.2 - Name Resolution 
       * 1.3 - Adding a Second IP Address to a Profile       * 1.3 - Adding a Second IP Address to a Profile
-      * 1.4 - The hostname command +      * 1.4 - The hostname Command 
-      * 1.5 - The ip command +      * 1.5 - The ip Command 
-      * 1.6 - Manually enabling/disabling an interface +      * 1.6 - Manually Enabling/Disabling an Interface 
-      * 1.7 - Static routing +      * 1.7 - Static Routing 
-        * The ip command +        * The ip Command 
-        * Enabling/disabling routing on the server+        * Enable Routing on the Server
     * LAB #2 - Network diagnostics     * LAB #2 - Network diagnostics
       * 2.1 - ping       * 2.1 - ping
Ligne 53: Ligne 53:
           * SSH-1           * SSH-1
           * SSH-2           * SSH-2
-        * Password authentication +        * Password Authentication 
-        * Asymmetric key authentication +        * Asymmetric key Authentication 
-        * Server configuration +        * Server Configuration 
-        * Client configuration +        * Client Configuration 
-        * SSH tunnels+        * SSH Tunnels
       * 3.5 - SCP       * 3.5 - SCP
         * Overview         * Overview
         * Usage         * Usage
-      * 3.6 - Setting up asymmetric keys+      * 3.6 - Setting up Asymmetric Keys
  
 =====Understanding IPv4===== =====Understanding IPv4=====
Ligne 67: Ligne 67:
 ==== TCP headers ==== ==== TCP headers ====
  
-The TCP header is encoded in 4 bytes, i.e. 32 bits: +The TCP header is encoded on 4 bytes, i.e. 32 bits: 
  
 ^ 1st byte ^ 2nd byte ^ 3rd byte ^ 4th byte ^ ^ 1st byte ^ 2nd byte ^ 3rd byte ^ 4th byte ^
Ligne 99: Ligne 99:
 ==== UDP headers ==== ==== UDP headers ====
  
-The UDP header is encoded in 4 bytes, i.e. 32 bits: +The UDP header is encoded on 4 bytes, i.e. 32 bits: 
  
 ^ 1st byte ^ 2nd byte ^ 3rd byte ^ 4th byte ^ ^ 1st byte ^ 2nd byte ^ 3rd byte ^ 4th byte ^
Ligne 105: Ligne 105:
 |  Length  ||  Checksum  || |  Length  ||  Checksum  ||
 |  Data  |||| |  Data  ||||
- 
-The UDP header is 8 bytes long. 
  
 ==== Fragmentation and Re-encapsulation ==== ==== Fragmentation and Re-encapsulation ====
Ligne 157: Ligne 155:
 |  IP address  |  192  |  168  |  10  |  1  | |  IP address  |  192  |  168  |  10  |  1  |
 |  Binary  |  11000000  |  10101000  |  000001010  |  00000001  | |  Binary  |  11000000  |  10101000  |  000001010  |  00000001  |
-|  Calculation of network address  |||||+|  Calculation of the network address  |||||
 |  Binary  |  11000000  |  10101000  |  000001010  |  **00000000**  | |  Binary  |  11000000  |  10101000  |  000001010  |  **00000000**  |
 |  Network address  |  192  |  168  |  10  |  0  | |  Network address  |  192  |  168  |  10  |  0  |
-|  Calculation of broadcast address  |||||+|  Calculation of the broadcast address  |||||
 |  Binary |  11000000 |  10101000  |  000001010  |  **11111111**  | |  Binary |  11000000 |  10101000  |  000001010  |  **11111111**  |
 |  Broadcast address  |  192  |  168  |  10  |  255  | |  Broadcast address  |  192  |  168  |  10  |  255  |
Ligne 166: Ligne 164:
 ==== Subnet Masks ==== ==== Subnet Masks ====
  
-Like the IP address, the subnet mask has 4 octets or 32 bits. Subnet masks are used to identify the Net ID and Host ID:+Like the IP address, the subnet mask has 4 bytes or 32 bits. Subnet masks are used to identify the Net ID and Host ID:
  
 ^  Class  ^  Mask  ^  CIDR notation  ^ ^  Class  ^  Mask  ^  CIDR notation  ^
Ligne 203: Ligne 201:
 |  Network address  |   192     168    10  |  0  | |  Network address  |   192     168    10  |  0  |
  
-Since the network address is identical in both cases, the sending host assumes that the destination host is on its network and sends the packets directly to the network without addressing its default gateway.+Since the network address is identical in both cases, the sending host assumes that the destination host is on its network and sends the packets directly to the network.
  
 The sending host is now trying to communicate with a host with an IP address of 192.168.2.1. It therefore performs the same calculation by applying **its own subnet mask** to the IP address of the destination host: The sending host is now trying to communicate with a host with an IP address of 192.168.2.1. It therefore performs the same calculation by applying **its own subnet mask** to the IP address of the destination host:
Ligne 215: Ligne 213:
 |  Network address  |   192     168    2  |  0  | |  Network address  |   192     168    2  |  0  |
  
-In this case, the sending host finds that the destination network 192.168.2.0 is not identical to its own network 192.168.10.0. It therefore addresses the packets to the default gateway.+In this case, the sending host finds that the destination network 192.168.2.0 is not identical to its own network 192.168.10.0. It therefore sends the packets to the default gateway.
  
 ==== VLSM ==== ==== VLSM ====
Ligne 250: Ligne 248:
 We can use the following two subnets: We can use the following two subnets:
  
-* 192.168.1.01XXXXXX +  * 192.168.1.01XXXXXX 
-* 192.168.1.10XXXXXX+  * 192.168.1.10XXXXXX
  
 For the first subnet, the network address and broadcast address are : For the first subnet, the network address and broadcast address are :
Ligne 259: Ligne 257:
 |  Binary  |   11000000     10101000    00000001  |  01**000000** | |  Binary  |   11000000     10101000    00000001  |  01**000000** |
 |  Network address |   192     168    1  |  **64**  | |  Network address |   192     168    1  |  **64**  |
-|  Calculation of broadcast address  |||||+|  Calculation of the broadcast address  |||||
 |  Binary |   11000000     10101000    00000001  |  01**111111**  | |  Binary |   11000000     10101000    00000001  |  01**111111**  |
 |  Broadcast address|   192     168    1  |  **127**  | |  Broadcast address|   192     168    1  |  **127**  |
Ligne 274: Ligne 272:
 |  Binary  |   11000000     10101000    00000001  |  10**000000** | |  Binary  |   11000000     10101000    00000001  |  10**000000** |
 |  Network address |   192     168    1  |  **128**  | |  Network address |   192     168    1  |  **128**  |
-|  Calculation of broadcast address  |||||+|  Calculation of the broadcast address  |||||
 |  Binary |   11000000     10101000    00000001  |  10**111111**  | |  Binary |   11000000     10101000    00000001  |  10**111111**  |
 |  Broadcast address|   192     168    1  |  **191**  | |  Broadcast address|   192     168    1  |  **191**  |
Ligne 566: Ligne 564:
 An IPv6 address is a 128-bit number, normally expressed as eight groups of four hexadecimal **nibbles** (half-bytes) separated by a colon. Each nibble represents four bits of the IPv6 address, so that each group represents 16 bits of the IPv6 address. An IPv6 address is a 128-bit number, normally expressed as eight groups of four hexadecimal **nibbles** (half-bytes) separated by a colon. Each nibble represents four bits of the IPv6 address, so that each group represents 16 bits of the IPv6 address.
  
-2001:0db8:0000:0010:0000:0000:0000:0001+  2001:0db8:0000:0010:0000:0000:0000:0001
  
-To make it easier to write IPv6 addresses, it is not necessary to write zeros at the head of a group separated by a colon. However, at least one hexadecimal digit must be written in each group separated by a colon:+To make it easier to write IPv6 addresses, it is not necessary to write zeros at the start of a group separated by a colon. However, at least one hexadecimal digit must be written in each group separated by a colon:
  
   2001:db8:0:10:0:0:0:1   2001:db8:0:10:0:0:0:1
Ligne 577: Ligne 575:
  
   * Remove leading zeros in a group.   * Remove leading zeros in a group.
-  * Use : : to shorten as much as possible. +  * Use : : to shorten the address as much as possible. 
-  * If an address contains two consecutive groups of zeros of the same length, it is preferable to shorten the leftmost groups of zeros to : : and the rightmost groups in :0 : for each group.+  * If an address contains two consecutive groups of zeros of the same length, it is preferable to shorten the leftmost groups of zeros to : : and the rightmost groups to :0 : for each group.
   * Although permitted, do not use :: to shorten a group of zeros. Instead, use :0 : and keep : : for consecutive groups of zeros.   * Although permitted, do not use :: to shorten a group of zeros. Instead, use :0 : and keep : : for consecutive groups of zeros.
   * Always use lower case letters for hexadecimal numbers from a to f.   * Always use lower case letters for hexadecimal numbers from a to f.
Ligne 593: Ligne 591:
  
   * The network prefix,   * The network prefix,
-  * The prefix identifies the subnet.+    * The prefix identifies the subnet.
   * The interface identifier,    * The interface identifier, 
-  * Two network interfaces on the same subnet cannot have the same identifier, +    * Two network interfaces on the same subnet cannot have the same identifier, 
-  * An interface identifier identifies a particular interface on the subnet.+    * An interface identifier identifies a particular interface on the subnet.
  
 ====Subnet Masks==== ====Subnet Masks====
Ligne 669: Ligne 667:
 In summary, the host sends a DHCPv6 request to the multicast address **all-dhcp-servers**, **ff02::1:2** on port **547/udp**. In return, the host receives the requested information on the **546/udp** port of its Link-local address. In summary, the host sends a DHCPv6 request to the multicast address **all-dhcp-servers**, **ff02::1:2** on port **547/udp**. In return, the host receives the requested information on the **546/udp** port of its Link-local address.
  
-=====Configure Network=====+=====Configuring the Network=====
  
 RHEL 9 uses **Network Manager** to manage the network. Network Manager has two components: RHEL 9 uses **Network Manager** to manage the network. Network Manager has two components:
  
-* a service that manages network connections and reports their status, +  * a service that manages network connections and reports their status, 
-* front-ends that use an API to configure the service.+  * front-ends that use an API to configure the service.
  
 <WRAP center round important 60%> <WRAP center round important 60%>
Ligne 685: Ligne 683:
 [root@redhat9 ~]# systemctl status NetworkManager.service [root@redhat9 ~]# systemctl status NetworkManager.service
 ● NetworkManager.service - Network Manager ● NetworkManager.service - Network Manager
-Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: enabled) +     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: enabled) 
-Active: active (running) since Sat 2024-09-28 15:37:17 CEST; 20h ago +     Active: active (running) since Sat 2024-09-28 15:37:17 CEST; 20h ago 
-Docs: man:NetworkManager(8) +       Docs: man:NetworkManager(8) 
-Main PID: 857 (NetworkManager) +   Main PID: 857 (NetworkManager) 
-Tasks: 3 (limit: 48800) +      Tasks: 3 (limit: 48800) 
-Memory: 12.0M +     Memory: 12.0M 
-CPU: 1.834s +        CPU: 1.834s 
-CGroup: /system.slice/NetworkManager.service +     CGroup: /system.slice/NetworkManager.service 
-└─857 /usr/sbin/NetworkManager --no-daemon+             └─857 /usr/sbin/NetworkManager --no-daemon
  
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.6471] device (ens18): state change: config -> ip-config (reason none, sys-iface-state: managed+Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.6471] device (ens18): state change: config -> ip-config (reason 'none', sys-iface-state: 'managed'
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.6481] policy: set ens18’ (ens18) as default for IPv4 routing and DNS +Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.6481] policy: set 'ens18(ens18) as default for IPv4 routing and DNS 
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.7310] device (ens18): state change: ip-config -> ip-check (reason none, sys-iface-state: managed+Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.7310] device (ens18): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'managed'
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.7327] device (ens18): state change: ip-check -> secondaries (reason none, sys-iface-state: managed+Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.7327] device (ens18): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'managed'
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.7328] device (ens18): state change: secondaries -> activated (reason none, sys-iface-state: managed+Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.7328] device (ens18): state change: secondaries -> activated (reason 'none', sys-iface-state: 'managed'
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.7331] manager: NetworkManager state is now CONNECTED_SITE +Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.7331] manager: NetworkManager state is now CONNECTED_SITE 
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.7333] device (ens18): Activation: successful, device activated. +Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.7333] device (ens18): Activation: successful, device activated. 
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.7338] manager: NetworkManager state is now CONNECTED_GLOBAL +Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.7338] manager: NetworkManager state is now CONNECTED_GLOBAL 
-Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530638.7340] manager: startup complete +Sep 28 15:37:18 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530638.7340] manager: startup complete 
-Sep 28 15:37:29 redhat9.ittraining.loc NetworkManager[857]: <info> [1727530649.0717] agent-manager: agent[3c1f9786a5e709c2,:1.25/org.gnome.Shell.NetworkAgent/42]: agent registered+Sep 28 15:37:29 redhat9.ittraining.loc NetworkManager[857]: <info>  [1727530649.0717] agent-manager: agent[3c1f9786a5e709c2,:1.25/org.gnome.Shell.NetworkAgent/42]: agent registered
 </code> </code>
  
Ligne 711: Ligne 709:
 The **nmcli** (Network Manager Command Line Interface) command is used to configure NetworkManager. The **nmcli** (Network Manager Command Line Interface) command is used to configure NetworkManager.
  
-Options and sub-commands can be accessed using the following commands:+Command line switches and sub-commands can be viewed using the following command:
  
 <code> <code>
Ligne 718: Ligne 716:
  
 OPTIONS OPTIONS
--a, --ask ask for missing parameters +  -a, --ask                                ask for missing parameters 
--c, --colors auto|yes|no whether to use colors in output +  -c, --colors auto|yes|no                 whether to use colors in output 
--e, --escape yes|no escape columns separators in values +  -e, --escape yes|no                      escape columns separators in values 
--f, --fields <field,...>|all|common specify fields to output +  -f, --fields <field,...>|all|common      specify fields to output 
--g, --get-values <field,...>|all|common shortcut for -m tabular -t -f +  -g, --get-values <field,...>|all|common  shortcut for -m tabular -t -f 
--h, --help print this help +  -h, --help                               print this help 
--m, --mode tabular|multiline output mode +  -m, --mode tabular|multiline             output mode 
--o, --overview overview mode +  -o, --overview                           overview mode 
--p, --pretty pretty output +  -p, --pretty                             pretty output 
--s, --show-secrets allow displaying passwords +  -s, --show-secrets                       allow displaying passwords 
--t, --terse terse output +  -t, --terse                              terse output 
--v, --version show program version +  -v, --version                            show program version 
--w, --wait <seconds> set timeout waiting for finishing operations+  -w, --wait <seconds>                     set timeout waiting for finishing operations
  
 OBJECT OBJECT
-g[eneral] NetworkManager's general status and operations +  g[eneral]       NetworkManager's general status and operations 
-n[etworking] overall networking control +  n[etworking]    overall networking control 
-r[adio] NetworkManager radio switches +  r[adio]         NetworkManager radio switches 
-c[onnection] NetworkManager's connections +  c[onnection]    NetworkManager's connections 
-d[evice] devices managed by NetworkManager +  d[evice]        devices managed by NetworkManager 
-a[gent] NetworkManager secret agent or polkit agent +  a[gent]         NetworkManager secret agent or polkit agent 
-m[onitor] monitor NetworkManager changes+  m[onitor]       monitor NetworkManager changes
 </code> </code>
  
 =====LAB #1 - Network Configuration===== =====LAB #1 - Network Configuration=====
  
-001.1 - Connections and Profiles====+====1.1 - Connections and Profiles====
  
 NetworkManager includes the notion of **connections** or **profiles** allowing different configurations depending on the location. To view the current connections, use the **nmcli c** command with the **show** sub-command: NetworkManager includes the notion of **connections** or **profiles** allowing different configurations depending on the location. To view the current connections, use the **nmcli c** command with the **show** sub-command:
Ligne 750: Ligne 748:
 <code> <code>
 [root@redhat9 ~]# nmcli c show [root@redhat9 ~]# nmcli c show
-NAME UUID TYPE DEVICE  +NAME   UUID                                  TYPE      DEVICE  
-ens18 ea4c8254-6236-3130-8323-8b3f71d807a1 ethernet ens18  +ens18  ea4c8254-6236-3130-8323-8b3f71d807a1  ethernet  ens18   
-lo 8df82174-1d45-4506-9248-6bfcd2d20240 loopback lo +lo     8df82174-1d45-4506-9248-6bfcd2d20240  loopback  lo   
 </code> </code>
  
-Create fixed IP profile attached to the **ens18** device:+Now create another IP profile attached to the **ens18** device:
  
 <code> <code>
-[root@redhat9 ~]# nmcli connection add con-name ip_fixe ifname ens18 type ethernet ip4 10.0.2.102/24 gw4 10.0.2.1 +[root@redhat9 ~]# nmcli connection add con-name ip_fixed ifname ens18 type ethernet ip4 10.0.2.102/24 gw4 10.0.2.1 
-Connection ‘ip_fixe’ (b3d51921-4deb-4975-ad52-f31993b2af0c) successfully added.+Connection 'ip_fixed' (b3d51921-4deb-4975-ad52-f31993b2af0c) successfully added.
 </code> </code>
  
Ligne 766: Ligne 764:
 <code> <code>
 [root@redhat9 ~]# nmcli c show [root@redhat9 ~]# nmcli c show
-NAME UUID TYPE DEVICE  +NAME     UUID                                  TYPE      DEVICE  
-ens18 ea4c8254-6236-3130-8323-8b3f71d807a1 ethernet ens18  +ens18    ea4c8254-6236-3130-8323-8b3f71d807a1  ethernet  ens18   
-lo 8df82174-1d45-4506-9248-6bfcd2d20240 loopback lo  +lo       8df82174-1d45-4506-9248-6bfcd2d20240  loopback  lo      
-ip_fix b3d51921-4deb-4975-ad52-f31993b2af0c ethernet -- +ip_fixed b3d51921-4deb-4975-ad52-f31993b2af0c  ethernet  --   
 </code> </code>
  
-Note that the output does not indicate that the **ip_fix** profile is associated with the **ens18** device because the **ip_fix** profile is not enabled:+Note that the output does not indicate that the **ip_fixed** profile is associated with the **ens18** device because the **ip_fixed** profile is not enabled:
  
 <code> <code>
 [root@redhat9 ~]# nmcli d show [root@redhat9 ~]# nmcli d show
-GENERAL.DEVICE: ens18 +GENERAL.DEVICE:                         ens18 
-GENERAL.TYPE: ethernet +GENERAL.TYPE:                           ethernet 
-GENERAL.HWADDR: 92:86:D7:66:E7:5A +GENERAL.HWADDR:                         92:86:D7:66:E7:5A 
-GENERAL.MTU: 1500 +GENERAL.MTU:                            1500 
-GENERAL.STATE: 100 (connected) +GENERAL.STATE:                          100 (connected) 
-GENERAL.CONNECTION: ens18 +GENERAL.CONNECTION:                     ens18 
-GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/+GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/
-WIRED-PROPERTIES.CARRIER: on +WIRED-PROPERTIES.CARRIER:               on 
-IP4.ADDRESS[1]: 10.0.2.101/24 +IP4.ADDRESS[1]:                         10.0.2.101/24 
-IP4.GATEWAY: 10.0.2.1 +IP4.GATEWAY:                            10.0.2.1 
-IP4.ROUTE[1]: dst = 10.0.2.0/24, nh = 0.0.0.0, mt = 100 +IP4.ROUTE[1]:                           dst = 10.0.2.0/24, nh = 0.0.0.0, mt = 100 
-IP4.ROUTE[2]: dst = 0.0.0.0/0, nh = 10.0.2.1, mt = 100 +IP4.ROUTE[2]:                           dst = 0.0.0.0/0, nh = 10.0.2.1, mt = 100 
-IP4.DNS[1]: 8.8.8.8 +IP4.DNS[1]:                             8.8.8.8 
-IP6.ADDRESS[1]: fe80::9086:d7ff:fe66:e75a/64 +IP6.ADDRESS[1]:                         fe80::9086:d7ff:fe66:e75a/64 
-IP6.GATEWAY: -- +IP6.GATEWAY:                            -- 
-IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 1024+IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 1024
  
-GENERAL.DEVICE: lo +GENERAL.DEVICE:                         lo 
-GENERAL.TYPE: loopback +GENERAL.TYPE:                           loopback 
-GENERAL.HWADDR: 00:00:00:00:00:00 +GENERAL.HWADDR:                         00:00:00:00:00:00 
-GENERAL.MTU: 65536 +GENERAL.MTU:                            65536 
-GENERAL.STATE: 100 (connected (externally)) +GENERAL.STATE:                          100 (connected (externally)) 
-GENERAL.CONNECTION: lo +GENERAL.CONNECTION:                     lo 
-GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/+GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/
-IP4.ADDRESS[1]: 127.0.0.1/+IP4.ADDRESS[1]:                         127.0.0.1/
-IP4.GATEWAY: -- +IP4.GATEWAY:                            -- 
-IP6.ADDRESS[1]: ::1/128 +IP6.ADDRESS[1]:                         ::1/128 
-IP6.GATEWAY: -- +IP6.GATEWAY:                            -- 
-IP6.ROUTE[1]: dst = ::1/128, nh = ::, mt = 256+IP6.ROUTE[1]:                           dst = ::1/128, nh = ::, mt = 256
 </code> </code>
  
-To activate the ip_fix profile, use the following command :+To activate the ip_fixed profile, use the following command :
  
 <code> <code>
-[root@redhat9 ~]# nmcli connection up ip_fixe+[root@redhat9 ~]# nmcli connection up ip_fixed
  
 </code> </code>
Ligne 817: Ligne 815:
  
 <WRAP center round todo 60%> <WRAP center round todo 60%>
-**To do** - Return to the Guacamole home page and reconnect to the VM as a trainee using the **RedHat9_SSH_10.0.2.102** connection.+**To do** - Return to the Guacamole home page and reconnect to the VM as a trainee using the **RedHat9_10.0.2.102_SSH** connection.
 </WRAP> </WRAP>
  
-The ip_fix profile is now enabled while the ens18 profile has been disabled:+The ip_fixed profile is now enabled while the ens18 profile has been disabled:
  
 <code> <code>
 [root@redhat9 ~]# nmcli c show [root@redhat9 ~]# nmcli c show
-NAME UUID TYPE DEVICE  +NAME     UUID                                  TYPE      DEVICE  
-ip_fix b3d51921-4deb-4975-ad52-f31993b2af0c ethernet ens18  +ip_fixed b3d51921-4deb-4975-ad52-f31993b2af0c  ethernet  ens18   
-lo 8df82174-1d45-4506-9248-6bfcd2d20240 loopback lo  +lo       8df82174-1d45-4506-9248-6bfcd2d20240  loopback  lo      
-ens18 ea4c8254-6236-3130-8323-8b3f71d807a1 ethernet --  +ens18    ea4c8254-6236-3130-8323-8b3f71d807a1  ethernet  --   
 +   
 [root@redhat9 ~]# nmcli d show [root@redhat9 ~]# nmcli d show
-GENERAL.DEVICE: ens18 +GENERAL.DEVICE:                         ens18 
-GENERAL.TYPE: ethernet +GENERAL.TYPE:                           ethernet 
-GENERAL.HWADDR: 92:86:D7:66:E7:5A +GENERAL.HWADDR:                         92:86:D7:66:E7:5A 
-GENERAL.MTU: 1500 +GENERAL.MTU:                            1500 
-GENERAL.STATE: 100 (connected) +GENERAL.STATE:                          100 (connected) 
-GENERAL.CONNECTION: ip_fix +GENERAL.CONNECTION:                     ip_fixed 
-GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/+GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/
-WIRED-PROPERTIES.CARRIER: on +WIRED-PROPERTIES.CARRIER:               on 
-IP4.ADDRESS[1]: 10.0.2.102/24 +IP4.ADDRESS[1]:                         10.0.2.102/24 
-IP4.GATEWAY: 10.0.2.1 +IP4.GATEWAY:                            10.0.2.1 
-IP4.ROUTE[1]: dst = 10.0.2.0/24, nh = 0.0.0.0, mt = 100 +IP4.ROUTE[1]:                           dst = 10.0.2.0/24, nh = 0.0.0.0, mt = 100 
-IP4.ROUTE[2]: dst = 0.0.0.0/0, nh = 10.0.2.1, mt = 100 +IP4.ROUTE[2]:                           dst = 0.0.0.0/0, nh = 10.0.2.1, mt = 100 
-IP6.ADDRESS[1]: fe80::2da3:cf78:c904:b9b9/64 +IP6.ADDRESS[1]:                         fe80::2da3:cf78:c904:b9b9/64 
-IP6.GATEWAY: -- +IP6.GATEWAY:                            -- 
-IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 1024+IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 1024
  
-GENERAL.DEVICE: lo +GENERAL.DEVICE:                         lo 
-GENERAL.TYPE: loopback +GENERAL.TYPE:                           loopback 
-GENERAL.HWADDR: 00:00:00:00:00:00 +GENERAL.HWADDR:                         00:00:00:00:00:00 
-GENERAL.MTU: 65536 +GENERAL.MTU:                            65536 
-GENERAL.STATE: 100 (connected (externally)) +GENERAL.STATE:                          100 (connected (externally)) 
-GENERAL.CONNECTION: lo +GENERAL.CONNECTION:                     lo 
-GENERAL.CON-PATH: /org/freedesktop/NetworkManager/ActiveConnection/+GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/ActiveConnection/
-IP4.ADDRESS[1]: 127.0.0.1/+IP4.ADDRESS[1]:                         127.0.0.1/
-IP4.GATEWAY: -- +IP4.GATEWAY:                            -- 
-IP6.ADDRESS[1]: ::1/128 +IP6.ADDRESS[1]:                         ::1/128 
-IP6.GATEWAY: -- +IP6.GATEWAY:                            -- 
-IP6.ROUTE[1]: dst = ::1/128, nh = ::, mt = 256+IP6.ROUTE[1]:                           dst = ::1/128, nh = ::, mt = 256
 </code> </code>
  
Ligne 865: Ligne 863:
 [root@redhat9 ~]# nmcli -p connection show ens18 [root@redhat9 ~]# nmcli -p connection show ens18
 =============================================================================== ===============================================================================
-Connection profile details (ens18)+                      Connection profile details (ens18)
 =============================================================================== ===============================================================================
-connection.id: ens18 +connection.id:                          ens18 
-connection.uuid: ea4c8254-6236-3130-8323-8b3f71d807a1 +connection.uuid:                        ea4c8254-6236-3130-8323-8b3f71d807a1 
-connection.stable-id: -- +connection.stable-id:                   -- 
-connection.type: 802-3-ethernet +connection.type:                        802-3-ethernet 
-connection.interface-name: ens18 +connection.interface-name:              ens18 
-connection.autoconnect: yes +connection.autoconnect:                 yes 
-connection.autoconnect-priority: -999 +connection.autoconnect-priority:        -999 
-connection.autoconnect-retries: -1 (default) +connection.autoconnect-retries:         -1 (default) 
-connection.multi-connect: 0 (default) +connection.multi-connect:               0 (default) 
-connection.auth-retries: -1 +connection.auth-retries:                -1 
-connection.timestamp: 1727605468 +connection.timestamp:                   1727605468 
-connection.permissions: -- +connection.permissions:                 -- 
-connection.zone: -- +connection.zone:                        -- 
-connection.controller: -- +connection.controller:                  -- 
-connection.master: -- +connection.master:                      -- 
-connection.slave-type: -- +connection.slave-type:                  -- 
-connection.port-type: -- +connection.port-type:                   -- 
-connection.autoconnect-slaves: -1 (default) +connection.autoconnect-slaves:          -1 (default) 
-connection.autoconnect-ports: -1 (default) +connection.autoconnect-ports:           -1 (default) 
-connection.secondaries: -- +connection.secondaries:                 -- 
-connection.gateway-ping-timeout:+connection.gateway-ping-timeout:        
-connection.metered: unknown +connection.metered:                     unknown 
-connection.lldp: default +connection.lldp:                        default 
-connection.mdns: -1 (default) +connection.mdns:                        -1 (default) 
-connection.llmnr: -1 (default) +connection.llmnr:                       -1 (default) 
-connection.dns-over-tls: -1 (default) +connection.dns-over-tls:                -1 (default) 
-connection.mptcp-flags: 0x0 (default) +connection.mptcp-flags:                 0x0 (default) 
-connection.wait-device-timeout: -1 +connection.wait-device-timeout:         -1 
-connection.wait-activation-delay: -1+connection.wait-activation-delay:       -1
 ------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-802-3-ethernet.port: -- +802-3-ethernet.port:                    -- 
-802-3-ethernet.speed:+802-3-ethernet.speed:                   
-802-3-ethernet.duplex: -- +802-3-ethernet.duplex:                  -- 
-802-3-ethernet.auto-negotiate: no +802-3-ethernet.auto-negotiate:          no 
-802-3-ethernet.mac-address: -- +802-3-ethernet.mac-address:             -- 
-802-3-ethernet.cloned-mac-address: --+802-3-ethernet.cloned-mac-address:      --
 802-3-ethernet.generate-mac-address-mask:-- 802-3-ethernet.generate-mac-address-mask:--
-802-3-ethernet.mac-address-blacklist: -- +802-3-ethernet.mac-address-blacklist:   -- 
-802-3-ethernet.mtu: auto +802-3-ethernet.mtu:                     auto 
-802-3-ethernet.s390-subchannels: -- +802-3-ethernet.s390-subchannels:        -- 
-802-3-ethernet.s390-nettype: -- +802-3-ethernet.s390-nettype:            -- 
-802-3-ethernet.s390-options: -- +802-3-ethernet.s390-options:            -- 
-802-3-ethernet.wake-on-lan: default +802-3-ethernet.wake-on-lan:             default 
-802-3-ethernet.wake-on-lan-password: --+802-3-ethernet.wake-on-lan-password:    --
 802-3-ethernet.accept-all-mac-addresses:-1 (default) 802-3-ethernet.accept-all-mac-addresses:-1 (default)
 ------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-ipv4.method: manual +ipv4.method:                            manual 
-ipv4.dns: 8.8.8.8 +ipv4.dns:                               8.8.8.8 
-ipv4.dns-search: -- +ipv4.dns-search:                        -- 
-ipv4.dns-options: -- +ipv4.dns-options:                       -- 
-ipv4.dns-priority:+ipv4.dns-priority:                      
-ipv4.addresses: 10.0.2.101/24+ipv4.addresses:                         10.0.2.101/24
 lines 1-55 lines 1-55
 [q] [q]
 </code> </code>
- +Similarly, to view the **ip_fixed** profile parameters, use the following command:
-Similarly, to view the **ip_fixe** profile parameters, use the following command:+
  
 <code> <code>
-[root@redhat9 ~]# nmcli -p connection show ip_fixe+[root@redhat9 ~]# nmcli -p connection show ip_fixed
 =============================================================================== ===============================================================================
-Connection profile details (ip_fix)+                     Connection profile details (ip_fixed)
 =============================================================================== ===============================================================================
-connection.id: ip_fixe +connection.id:                          ip_fixed 
-connection.uuid: b3d51921-4deb-4975-ad52-f31993b2af0c +connection.uuid:                        b3d51921-4deb-4975-ad52-f31993b2af0c 
-connection.stable-id: -- +connection.stable-id:                   -- 
-connection.type: 802-3-ethernet +connection.type:                        802-3-ethernet 
-connection.interface-name: ens18 +connection.interface-name:              ens18 
-connection.autoconnect: yes +connection.autoconnect:                 yes 
-connection.autoconnect-priority:+connection.autoconnect-priority:        
-connection.autoconnect-retries: -1 (default) +connection.autoconnect-retries:         -1 (default) 
-connection.multi-connect: 0 (default) +connection.multi-connect:               0 (default) 
-connection.auth-retries: -1 +connection.auth-retries:                -1 
-connection.timestamp: 1727605469 +connection.timestamp:                   1727605469 
-connection.permissions: -- +connection.permissions:                 -- 
-connection.zone: -- +connection.zone:                        -- 
-connection.controller: -- +connection.controller:                  -- 
-connection.master: -- +connection.master:                      -- 
-connection.slave-type: -- +connection.slave-type:                  -- 
-connection.port-type: -- +connection.port-type:                   -- 
-connection.autoconnect-slaves: -1 (default) +connection.autoconnect-slaves:          -1 (default) 
-connection.autoconnect-ports: -1 (default) +connection.autoconnect-ports:           -1 (default) 
-connection.secondaries: -- +connection.secondaries:                 -- 
-connection.gateway-ping-timeout:+connection.gateway-ping-timeout:        
-connection.metered: unknown +connection.metered:                     unknown 
-connection.lldp: default +connection.lldp:                        default 
-connection.mdns: -1 (default) +connection.mdns:                        -1 (default) 
-connection.llmnr: -1 (default) +connection.llmnr:                       -1 (default) 
-connection.dns-over-tls: -1 (default) +connection.dns-over-tls:                -1 (default) 
-connection.mptcp-flags: 0x0 (default) +connection.mptcp-flags:                 0x0 (default) 
-connection.wait-device-timeout: -1 +connection.wait-device-timeout:         -1 
-connection.wait-activation-delay: -1+connection.wait-activation-delay:       -1
 ------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-802-3-ethernet.port: -- +802-3-ethernet.port:                    -- 
-802-3-ethernet.speed:+802-3-ethernet.speed:                   
-802-3-ethernet.duplex: -- +802-3-ethernet.duplex:                  -- 
-802-3-ethernet.auto-negotiate: no +802-3-ethernet.auto-negotiate:          no 
-802-3-ethernet.mac-address: -- +802-3-ethernet.mac-address:             -- 
-802-3-ethernet.cloned-mac-address: --+802-3-ethernet.cloned-mac-address:      --
 802-3-ethernet.generate-mac-address-mask:-- 802-3-ethernet.generate-mac-address-mask:--
-802-3-ethernet.mac-address-blacklist: -- +802-3-ethernet.mac-address-blacklist:   -- 
-802-3-ethernet.mtu: auto +802-3-ethernet.mtu:                     auto 
-802-3-ethernet.s390-subchannels: -- +802-3-ethernet.s390-subchannels:        -- 
-802-3-ethernet.s390-nettype: -- +802-3-ethernet.s390-nettype:            -- 
-802-3-ethernet.s390-options: -- +802-3-ethernet.s390-options:            -- 
-802-3-ethernet.wake-on-lan: default +802-3-ethernet.wake-on-lan:             default 
-802-3-ethernet.wake-on-lan-password: --+802-3-ethernet.wake-on-lan-password:    --
 802-3-ethernet.accept-all-mac-addresses:-1 (default) 802-3-ethernet.accept-all-mac-addresses:-1 (default)
 ------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-ipv4.method: manual +ipv4.method:                            manual 
-ipv4.dns: -- +ipv4.dns:                               -- 
-ipv4.dns-search: -- +ipv4.dns-search:                        -- 
-ipv4.dns-options: -- +ipv4.dns-options:                       -- 
-ipv4.dns-priority:+ipv4.dns-priority:                      
-ipv4.addresses: 10.0.2.102/24+ipv4.addresses:                         10.0.2.102/24
 lines 1-55 lines 1-55
 [q] [q]
Ligne 991: Ligne 988:
 [root@redhat9 ~]# nmcli -f CONNECTIONS device show ens18 [root@redhat9 ~]# nmcli -f CONNECTIONS device show ens18
 CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/1,/org/freedesktop/NetworkManager/Settings/3 CONNECTIONS.AVAILABLE-CONNECTION-PATHS: /org/freedesktop/NetworkManager/Settings/1,/org/freedesktop/NetworkManager/Settings/3
-CONNECTIONS.AVAILABLE-CONNECTIONS[1]: ea4c8254-6236-3130-8323-8b3f71d807a1 | ens18 +CONNECTIONS.AVAILABLE-CONNECTIONS[1]:   ea4c8254-6236-3130-8323-8b3f71d807a1 | ens18 
-CONNECTIONS.AVAILABLE-CONNECTIONS[2]: b3d51921-4deb-4975-ad52-f31993b2af0c | ip_fix+CONNECTIONS.AVAILABLE-CONNECTIONS[2]:   b3d51921-4deb-4975-ad52-f31993b2af0c | ip_fixed
 </code> </code>
  
Ligne 1000: Ligne 997:
 [root@redhat9 ~]# ls -l /etc/NetworkManager/system-connections [root@redhat9 ~]# ls -l /etc/NetworkManager/system-connections
 total 8 total 8
--rw-------. 1 root root 253 Oct 19 2023 ens18.nmconnection +-rw-------. 1 root root 253 Oct 19  2023 ens18.nmconnection 
--rw-------. 1 root root 218 Sep 29 12:21 ip_fix.nmconnection+-rw-------. 1 root root 218 Sep 29 12:21 ip_fixed.nmconnection
 </code> </code>
  
-====.2 - Name resolution====+====1.2 - Name resolution====
  
-A study of the **/etc/NetworkManager/system-connections/ip_fixe.nmconnection** file shows that there are no directives concerning DNS :+A study of the **/etc/NetworkManager/system-connections/ip_fixed.nmconnection** file shows that there are no directives concerning DNS :
  
 <code> <code>
-[root@redhat9 ~]# cat /etc/NetworkManager/system-connections/ip_fixe.nmconnection +[root@redhat9 ~]# cat /etc/NetworkManager/system-connections/ip_fixed.nmconnection 
 [connection] [connection]
-id=ip_fixe+id=ip_fixed
 uuid=b3d51921-4deb-4975-ad52-f31993b2af0c uuid=b3d51921-4deb-4975-ad52-f31993b2af0c
 type=ethernet type=ethernet
Ligne 1036: Ligne 1033:
 </code> </code>
  
-Modify the configuration of the **ip_fixe** profile:+Modify the configuration of the **ip_fixed** profile:
  
 <code> <code>
-[root@redhat9 ~]# nmcli connection mod ip_fix ipv4.dns 8.8.8.8+[root@redhat9 ~]# nmcli connection mod ip_fixed ipv4.dns 8.8.8.8
 </code> </code>
  
-A look at the **/etc/NetworkManager/system-connections/ip_fixe.nmconnection** file shows that the DNS server directive has been added:+A look at the **/etc/NetworkManager/system-connections/ip_fixed.nmconnection** file shows that the DNS server directive has been added:
  
 <code> <code>
-[root@redhat9 ~]# cat /etc/NetworkManager/system-connections/ip_fixe.nmconnection +[root@redhat9 ~]# cat /etc/NetworkManager/system-connections/ip_fixed.nmconnection 
 [connection] [connection]
-id=ip_fixe+id=ip_fixed
 uuid=b3d51921-4deb-4975-ad52-f31993b2af0c uuid=b3d51921-4deb-4975-ad52-f31993b2af0c
 type=ethernet type=ethernet
Ligne 1074: Ligne 1071:
 [root@redhat9 ~]# systemctl status NetworkManager.service [root@redhat9 ~]# systemctl status NetworkManager.service
 ● NetworkManager.service - Network Manager ● NetworkManager.service - Network Manager
-Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: enabled) +     Loaded: loaded (/usr/lib/systemd/system/NetworkManager.service; enabled; preset: enabled) 
-Active: active (running) since Sun 2024-09-29 12:36:35 CEST; 11s ago +     Active: active (running) since Sun 2024-09-29 12:36:35 CEST; 11s ago 
-Docs: man:NetworkManager(8) +       Docs: man:NetworkManager(8) 
-Main PID: 4456 (NetworkManager) +   Main PID: 4456 (NetworkManager) 
-Tasks: 4 (limit: 48800) +      Tasks: 4 (limit: 48800) 
-Memory: 5.5M +     Memory: 5.5M 
-CPU: 82ms +        CPU: 82ms 
-CGroup: /system.slice/NetworkManager.service +     CGroup: /system.slice/NetworkManager.service 
-└─4456 /usr/sbin/NetworkManager --no-daemon+             └─4456 /usr/sbin/NetworkManager --no-daemon
  
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5342] device (lo): state change: secondaries -> activated (reason none, sys-iface-state: external+Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5342] device (lo): state change: secondaries -> activated (reason 'none', sys-iface-state: 'external'
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5347] device (lo): Activation: successful, device activated. +Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5347] device (lo): Activation: successful, device activated. 
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5360] device (ens18): state change: ip-config -> ip-check (reason none, sys-iface-state: assume+Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5360] device (ens18): state change: ip-config -> ip-check (reason 'none', sys-iface-state: 'assume'
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5654] device (ens18): state change: ip-check -> secondaries (reason none, sys-iface-state: assume+Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5654] device (ens18): state change: ip-check -> secondaries (reason 'none', sys-iface-state: 'assume'
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5660] device (ens18): state change: secondaries -> activated (reason none, sys-iface-state: assume+Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5660] device (ens18): state change: secondaries -> activated (reason 'none', sys-iface-state: 'assume'
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5663] manager: NetworkManager state is now CONNECTED_SITE +Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5663] manager: NetworkManager state is now CONNECTED_SITE 
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5666] device (ens18): Activation: successful, device activated. +Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5666] device (ens18): Activation: successful, device activated. 
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5671] manager: NetworkManager state is now CONNECTED_GLOBAL +Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5671] manager: NetworkManager state is now CONNECTED_GLOBAL 
-Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606195.5673] manager: startup complete +Sep 29 12:36:35 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606195.5673] manager: startup complete 
-Sep 29 12:36:36 redhat9.ittraining.loc NetworkManager[4456]: <info> [1727606196.0852] agent-manager: agent[923443df876692f7,:1.25/org.gnome.Shell.NetworkAgent/42]: agent registered+Sep 29 12:36:36 redhat9.ittraining.loc NetworkManager[4456]: <info>  [1727606196.0852] agent-manager: agent[923443df876692f7,:1.25/org.gnome.Shell.NetworkAgent/42]: agent registered
 </code> </code>
  
Ligne 1120: Ligne 1117:
  
 <WRAP center round important 60%> <WRAP center round important 60%>
-**Important** : Note that there is a text-mode graphical front-end, **nmtui**, for configuring NetworkManager.+**Important** : Note that there is a graphical front-end, **nmtui**, for configuring NetworkManager.
 </WRAP> </WRAP>
  
-====.3 - Adding a Second IP Address to a Profile====+====1.3 - Adding a Second IP Address to a Profile====
  
 To add a second IP address to a profile under RHEL 9, use the following command: To add a second IP address to a profile under RHEL 9, use the following command:
  
 <code> <code>
-[root@redhat9 ~]# nmcli connection mod ip_fix +ipv4.addresses 192.168.1.2/24+[root@redhat9 ~]# nmcli connection mod ip_fixed +ipv4.addresses 192.168.1.2/24
 </code> </code>
  
Ligne 1134: Ligne 1131:
  
 <code> <code>
-[root@redhat9 ~]# nmcli con up ip_fixe+[root@redhat9 ~]# nmcli con up ip_fixed
 Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3) Connection successfully activated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/3)
 </code> </code>
Ligne 1141: Ligne 1138:
  
 <code> <code>
-[root@redhat9 ~]# nmcli connection show ip_fixe +[root@redhat9 ~]# nmcli connection show ip_fixed 
-connection.id: ip_fixe +connection.id:                          ip_fixed 
-connection.uuid: b3d51921-4deb-4975-ad52-f31993b2af0c +connection.uuid:                        b3d51921-4deb-4975-ad52-f31993b2af0c 
-connection.stable-id: -- +connection.stable-id:                   -- 
-connection.type: 802-3-ethernet +connection.type:                        802-3-ethernet 
-connection.interface-name: ens18 +connection.interface-name:              ens18 
-connection.autoconnect: yes +connection.autoconnect:                 yes 
-connection.autoconnect-priority:+connection.autoconnect-priority:        
-connection.autoconnect-retries: -1 (default) +connection.autoconnect-retries:         -1 (default) 
-connection.multi-connect: 0 (default) +connection.multi-connect:               0 (default) 
-connection.auth-retries: -1 +connection.auth-retries:                -1 
-connection.timestamp: 1727606325 +connection.timestamp:                   1727606325 
-connection.permissions: -- +connection.permissions:                 -- 
-connection.zone: -- +connection.zone:                        -- 
-connection.controller: -- +connection.controller:                  -- 
-connection.master: -- +connection.master:                      -- 
-connection.slave-type: -- +connection.slave-type:                  -- 
-connection.port-type: -- +connection.port-type:                   -- 
-connection.autoconnect-slaves: -1 (default) +connection.autoconnect-slaves:          -1 (default) 
-connection.autoconnect-ports: -1 (default) +connection.autoconnect-ports:           -1 (default) 
-connection.secondaries: -- +connection.secondaries:                 -- 
-connection.gateway-ping-timeout:+connection.gateway-ping-timeout:        
-connection.metered: unknown +connection.metered:                     unknown 
-connection.lldp: default +connection.lldp:                        default 
-connection.mdns: -1 (default) +connection.mdns:                        -1 (default) 
-connection.llmnr: -1 (default) +connection.llmnr:                       -1 (default) 
-connection.dns-over-tls: -1 (default) +connection.dns-over-tls:                -1 (default) 
-connection.mptcp-flags: 0x0 (default) +connection.mptcp-flags:                 0x0 (default) 
-connection.wait-device-timeout: -1 +connection.wait-device-timeout:         -1 
-connection.wait-activation-delay: -1 +connection.wait-activation-delay:       -1 
-802-3-ethernet.port: -- +802-3-ethernet.port:                    -- 
-802-3-ethernet.speed:+802-3-ethernet.speed:                   
-802-3-ethernet.duplex: -- +802-3-ethernet.duplex:                  -- 
-802-3-ethernet.auto-negotiate: no +802-3-ethernet.auto-negotiate:          no 
-802-3-ethernet.mac-address: -- +802-3-ethernet.mac-address:             -- 
-802-3-ethernet.cloned-mac-address: --+802-3-ethernet.cloned-mac-address:      --
 802-3-ethernet.generate-mac-address-mask:-- 802-3-ethernet.generate-mac-address-mask:--
-802-3-ethernet.mac-address-blacklist: -- +802-3-ethernet.mac-address-blacklist:   -- 
-802-3-ethernet.mtu: auto +802-3-ethernet.mtu:                     auto 
-802-3-ethernet.s390-subchannels: -- +802-3-ethernet.s390-subchannels:        -- 
-802-3-ethernet.s390-nettype: -- +802-3-ethernet.s390-nettype:            -- 
-802-3-ethernet.s390-options: -- +802-3-ethernet.s390-options:            -- 
-802-3-ethernet.wake-on-lan: default +802-3-ethernet.wake-on-lan:             default 
-802-3-ethernet.wake-on-lan-password: --+802-3-ethernet.wake-on-lan-password:    --
 802-3-ethernet.accept-all-mac-addresses:-1 (default) 802-3-ethernet.accept-all-mac-addresses:-1 (default)
-ipv4.method: manual +ipv4.method:                            manual 
-ipv4.dns: 8.8.8.8 +ipv4.dns:                               8.8.8.8 
-ipv4.dns-search: -- +ipv4.dns-search:                        -- 
-ipv4.dns-options: -- +ipv4.dns-options:                       -- 
-ipv4.dns-priority:+ipv4.dns-priority:                      
-ipv4.addresses: 10.0.2.102/24, 192.168.1.2/24 +ipv4.addresses:                         10.0.2.102/24, 192.168.1.2/24 
-ipv4.gateway: 10.0.2.1 +ipv4.gateway:                           10.0.2.1 
-ipv4.routes: -- +ipv4.routes:                            -- 
-ipv4.route-metric: -1 +ipv4.route-metric:                      -1 
-ipv4.route-table: 0 (unspec) +ipv4.route-table:                       0 (unspec) 
-ipv4.routing-rules: -- +ipv4.routing-rules:                     -- 
-ipv4.replace-local-rule: -1 (default) +ipv4.replace-local-rule:                -1 (default) 
-ipv4.ignore-auto-routes: no +ipv4.ignore-auto-routes:                no 
-ipv4.ignore-auto-dns: no +ipv4.ignore-auto-dns:                   no 
-ipv4.dhcp-client-id: -- +ipv4.dhcp-client-id:                    -- 
-ipv4.dhcp-iaid: -- +ipv4.dhcp-iaid:                         -- 
-ipv4.dhcp-dscp: -- +ipv4.dhcp-dscp:                         -- 
-ipv4.dhcp-timeout: 0 (default) +ipv4.dhcp-timeout:                      0 (default) 
-ipv4.dhcp-send-hostname: yes +ipv4.dhcp-send-hostname:                yes 
-ipv4.dhcp-hostname: -- +ipv4.dhcp-hostname:                     -- 
-ipv4.dhcp-fqdn: -- +ipv4.dhcp-fqdn:                         -- 
-ipv4.dhcp-hostname-flags: 0x0 (none) +ipv4.dhcp-hostname-flags:               0x0 (none) 
-ipv4.never-default: no +ipv4.never-default:                     no 
-ipv4.may-fail: yes +ipv4.may-fail:                          yes 
-ipv4.required-timeout: -1 (default) +ipv4.required-timeout:                  -1 (default) 
-ipv4.dad-timeout: -1 (default) +ipv4.dad-timeout:                       -1 (default) 
-ipv4.dhcp-vendor-class-identifier: -- +ipv4.dhcp-vendor-class-identifier:      -- 
-ipv4.link-local: 0 (default) +ipv4.link-local:                        0 (default) 
-ipv4.dhcp-reject-servers: -- +ipv4.dhcp-reject-servers:               -- 
-ipv4.auto-route-ext-gw: -1 (default) +ipv4.auto-route-ext-gw:                 -1 (default) 
-ipv6.method: auto +ipv6.method:                            auto 
-ipv6.dns: -- +ipv6.dns:                               -- 
-ipv6.dns-search: -- +ipv6.dns-search:                        -- 
-ipv6.dns-options: -- +ipv6.dns-options:                       -- 
-ipv6.dns-priority:+ipv6.dns-priority:                      
-ipv6.addresses: -- +ipv6.addresses:                         -- 
-ipv6.gateway: -- +ipv6.gateway:                           -- 
-ipv6.routes: -- +ipv6.routes:                            -- 
-ipv6.route-metric: -1 +ipv6.route-metric:                      -1 
-ipv6.route-table: 0 (unspec) +ipv6.route-table:                       0 (unspec) 
-ipv6.routing-rules: -- +ipv6.routing-rules:                     -- 
-ipv6.replace-local-rule: -1 (default) +ipv6.replace-local-rule:                -1 (default) 
-ipv6.ignore-auto-routes: no +ipv6.ignore-auto-routes:                no 
-ipv6.ignore-auto-dns: no +ipv6.ignore-auto-dns:                   no 
-ipv6.never-default: no +ipv6.never-default:                     no 
-ipv6.may-fail: yes +ipv6.may-fail:                          yes 
-ipv6.required-timeout: -1 (default) +ipv6.required-timeout:                  -1 (default) 
-ipv6.ip6-privacy: -1 (unknown) +ipv6.ip6-privacy:                       -1 (unknown) 
-ipv6.addr-gen-mode: default +ipv6.addr-gen-mode:                     default 
-ipv6.ra-timeout: 0 (default) +ipv6.ra-timeout:                        0 (default) 
-ipv6.mtu: auto +ipv6.mtu:                               auto 
-ipv6.dhcp-pd-hint: -- +ipv6.dhcp-pd-hint:                      -- 
-ipv6.dhcp-duid: -- +ipv6.dhcp-duid:                         -- 
-ipv6.dhcp-iaid: -- +ipv6.dhcp-iaid:                         -- 
-ipv6.dhcp-timeout: 0 (default) +ipv6.dhcp-timeout:                      0 (default) 
-ipv6.dhcp-send-hostname: yes +ipv6.dhcp-send-hostname:                yes 
-ipv6.dhcp-hostname: -- +ipv6.dhcp-hostname:                     -- 
-ipv6.dhcp-hostname-flags: 0x0 (none) +ipv6.dhcp-hostname-flags:               0x0 (none) 
-ipv6.auto-route-ext-gw: -1 (default) +ipv6.auto-route-ext-gw:                 -1 (default) 
-ipv6.token: -- +ipv6.token:                             -- 
-proxy.method: none +proxy.method:                           none 
-proxy.browser-only: no +proxy.browser-only:                     no 
-proxy.pac-url: -- +proxy.pac-url:                          -- 
-proxy.pac-script: -- +proxy.pac-script:                       -- 
-GENERAL.NAME: ip_fix +GENERAL.NAME:                           ip_fixed 
-GENERAL.UUID: b3d51921-4deb-4975-ad52-f31993b2af0c +GENERAL.UUID:                           b3d51921-4deb-4975-ad52-f31993b2af0c 
-GENERAL.DEVICES: ens18 +GENERAL.DEVICES:                        ens18 
-GENERAL.IP-IFACE: ens18 +GENERAL.IP-IFACE:                       ens18 
-GENERAL.STATE: activated +GENERAL.STATE:                          activated 
-GENERAL.DEFAULT: yes +GENERAL.DEFAULT:                        yes 
-GENERAL.DEFAULT6: no +GENERAL.DEFAULT6:                       no 
-GENERAL.SPEC-OBJECT: -- +GENERAL.SPEC-OBJECT:                    -- 
-GENERAL.VPN: no +GENERAL.VPN:                            no 
-GENERAL.DBUS-PATH: /org/freedesktop/NetworkManager/ActiveConnection/+GENERAL.DBUS-PATH:                      /org/freedesktop/NetworkManager/ActiveConnection/
-GENERAL.CON-PATH: /org/freedesktop/NetworkManager/Settings/+GENERAL.CON-PATH:                       /org/freedesktop/NetworkManager/Settings/
-GENERAL.ZONE: -- +GENERAL.ZONE:                           -- 
-GENERAL.MASTER-PATH: -- +GENERAL.MASTER-PATH:                    -- 
-IP4.ADDRESS[1]: 192.168.1.2/24 +IP4.ADDRESS[1]:                         192.168.1.2/24 
-IP4.ADDRESS[2]: 10.0.2.102/24 +IP4.ADDRESS[2]:                         10.0.2.102/24 
-IP4.GATEWAY: 10.0.2.1 +IP4.GATEWAY:                            10.0.2.1 
-IP4.ROUTE[1]: dst = 10.0.2.0/24, nh = 0.0.0.0, mt = 100 +IP4.ROUTE[1]:                           dst = 10.0.2.0/24, nh = 0.0.0.0, mt = 100 
-IP4.ROUTE[2]: dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100 +IP4.ROUTE[2]:                           dst = 192.168.1.0/24, nh = 0.0.0.0, mt = 100 
-IP4.ROUTE[3]: dst = 0.0.0.0/0, nh = 10.0.2.1, mt = 100 +IP4.ROUTE[3]:                           dst = 0.0.0.0/0, nh = 10.0.2.1, mt = 100 
-IP4.DNS[1]: 8.8.8.8 +IP4.DNS[1]:                             8.8.8.8 
-IP6.ADDRESS[1]: fe80::2da3:cf78:c904:b9b9/64 +IP6.ADDRESS[1]:                         fe80::2da3:cf78:c904:b9b9/64 
-IP6.GATEWAY: -- +IP6.GATEWAY:                            -- 
-IP6.ROUTE[1]: dst = fe80::/64, nh = ::, mt = 1024+IP6.ROUTE[1]:                           dst = fe80::/64, nh = ::, mt = 1024
 lines 77-131/131 (END) lines 77-131/131 (END)
 [q] [q]
Ligne 1281: Ligne 1278:
 </WRAP> </WRAP>
  
-Now look at the contents of the **/etc/NetworkManager/system-connections/ip_fix.nmconnection** file:+Now look at the contents of the **/etc/NetworkManager/system-connections/ip_fixed.nmconnection** file:
  
 <code> <code>
-[root@redhat9 ~]# cat /etc/NetworkManager/system-connections/ip_fixe.nmconnection +[root@redhat9 ~]# cat /etc/NetworkManager/system-connections/ip_fixed.nmconnection 
 [connection] [connection]
-id=ip_fixe+id=ip_fixed
 uuid=b3d51921-4deb-4975-ad52-f31993b2af0c uuid=b3d51921-4deb-4975-ad52-f31993b2af0c
 type=ethernet type=ethernet
Ligne 1311: Ligne 1308:
 </WRAP> </WRAP>
  
-====.4 - The hostname==== command+====1.4 - The hostname Command====
  
 The hostname modification procedure is simplified and takes effect immediately: The hostname modification procedure is simplified and takes effect immediately:
Ligne 1336: Ligne 1333:
 </code> </code>
  
-====.5 - The ip==== command+====1.5 - The ip Command==== 
  
 Under RHEL 9 the **ip** command is preferred to the ifconfig command: Under RHEL 9 the **ip** command is preferred to the ifconfig command:
Ligne 1343: Ligne 1340:
 [root@redhat9 ~]# ip address [root@redhat9 ~]# ip address
 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000 1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
-link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 +    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00 
-inet 127.0.0.1/8 scope host lo +    inet 127.0.0.1/8 scope host lo 
-valid_lft forever preferred_lft forever +       valid_lft forever preferred_lft forever 
-inet6 ::1/128 scope host  +    inet6 ::1/128 scope host  
-valid_lft forever preferred_lft forever+       valid_lft forever preferred_lft forever
 2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000 2: ens18: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP group default qlen 1000
-link/ether 92:86:d7:66:e7:5a brd ff:ff:ff:ff:ff:ff +    link/ether 92:86:d7:66:e7:5a brd ff:ff:ff:ff:ff:ff 
-altname enp0s18 +    altname enp0s18 
-inet 10.0.2.102/24 brd 10.0.2.255 scope global noprefixroute ens18 +    inet 10.0.2.102/24 brd 10.0.2.255 scope global noprefixroute ens18 
-valid_lft forever preferred_lft forever +       valid_lft forever preferred_lft forever 
-inet 192.168.1.2/24 brd 192.168.1.255 scope global noprefixroute ens18 +    inet 192.168.1.2/24 brd 192.168.1.255 scope global noprefixroute ens18 
-valid_lft forever preferred_lft forever +       valid_lft forever preferred_lft forever 
-inet6 fe80::2da3:cf78:c904:b9b9/64 scope link noprefixroute  +    inet6 fe80::2da3:cf78:c904:b9b9/64 scope link noprefixroute  
-valid_lft forever preferred_lft forever+       valid_lft forever preferred_lft forever
 </code> </code>
  
-===Command options ip===+===Command Line Switches===
  
 The command line switches for this command are : The command line switches for this command are :
Ligne 1366: Ligne 1363:
 [root@redhat9 ~]# ip --help [root@redhat9 ~]# ip --help
 Usage: ip [ OPTIONS ] OBJECT { COMMAND | help } Usage: ip [ OPTIONS ] OBJECT { COMMAND | help }
-ip [ -force ] -batch filename +       ip [ -force ] -batch filename 
-where OBJECT := { address | addrlabel | amt | fou | help | ila | ioam | l2tp | +where  OBJECT := { address | addrlabel | amt | fou | help | ila | ioam | l2tp | 
-link | macsec | maddress | monitor | mptcp | mroute | mrule | +                   link | macsec | maddress | monitor | mptcp | mroute | mrule | 
-neighbor | neighbour | netconf | netns | nexthop | ntable | +                   neighbor | neighbour | netconf | netns | nexthop | ntable | 
-ntbl | route | rule | sr | tap | tcpmetrics | +                   ntbl | route | rule | sr | tap | tcpmetrics | 
-token | tunnel | tuntap | vrf | xfrm } +                   token | tunnel | tuntap | vrf | xfrm } 
-OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | +       OPTIONS := { -V[ersion] | -s[tatistics] | -d[etails] | -r[esolve] | 
--h[uman-readable] | -iec | -j[son] | -p[retty] | +                    -h[uman-readable] | -iec | -j[son] | -p[retty] | 
--f[amily] { inet | inet6 | mpls | bridge | link } | +                    -f[amily] { inet | inet6 | mpls | bridge | link } | 
--4 | -6 | -M | -B | -0 | +                    -4 | -6 | -M | -B | -0 | 
--l[oops] { maximum-addr-flush-attempts } | -br[ief] | +                    -l[oops] { maximum-addr-flush-attempts } | -br[ief] | 
--o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] | +                    -o[neline] | -t[imestamp] | -ts[hort] | -b[atch] [filename] | 
--rc[vbuf] [size] | -n[etns] name | -N[umeric] | -a[ll] | +                    -rc[vbuf] [size] | -n[etns] name | -N[umeric] | -a[ll] | 
--c[olor]}+                    -c[olor]}
  
 </code> </code>
  
-====.6 - Manually Enable/Disable an Interface====+====1.6 - Manually Enabling/Disabling an Interface====
  
 There are two commands for manually deactivating and activating a network interface: There are two commands for manually deactivating and activating a network interface:
Ligne 1396: Ligne 1393:
 </WRAP> </WRAP>
  
-====.7 - Static Routing====+====1.7 - Static Routing====
  
-===The ip command===+===The ip Command===
  
 Under RHEL 9, to delete the route to the 192.168.1.0 network, use the ip command and not the route command: Under RHEL 9, to delete the route to the 192.168.1.0 network, use the ip command and not the route command:
Ligne 1430: Ligne 1427:
 </WRAP> </WRAP>
  
-===Enable routing on the server===+===Enable Routing on the Server===
  
 To enable IPv4 routing on the server, packet retransmission must be enabled: To enable IPv4 routing on the server, packet retransmission must be enabled:
Ligne 1474: Ligne 1471:
 </code> </code>
  
-===Options for the ping command===+===Command Line Switches for the ping command===
  
 The command line switches for this command are : The command line switches for this command are :
Ligne 1480: Ligne 1477:
 <code> <code>
 [root@redhat9 ~]# ping --help [root@redhat9 ~]# ping --help
-ping: invalid option -- -+ping: invalid option -- '-'
  
 Usage Usage
-ping [options] <destination>+  ping [options] <destination>
  
 Options: Options:
-<destination> dns name or ip address +  <destination>      dns name or ip address 
--a use audible ping +  -a                 use audible ping 
--A use adaptive ping +  -A                 use adaptive ping 
--B sticky source address +  -B                 sticky source address 
--<count> stop after <count> replies +  -<count>         stop after <count> replies 
--D print timestamps +  -D                 print timestamps 
--d use SO_DEBUG socket option +  -d                 use SO_DEBUG socket option 
--f flood ping +  -f                 flood ping 
--h print help and exit +  -h                 print help and exit 
--I <interface> either interface name or address +  -I <interface>     either interface name or address 
--i <interval> seconds between sending each packet +  -i <interval>      seconds between sending each packet 
--L suppress loopback of multicast packets +  -L                 suppress loopback of multicast packets 
--l <preload> send <preload> number of packages while waiting replies +  -l <preload>       send <preload> number of packages while waiting replies 
--m <mark> tag the packets going out +  -m <mark>          tag the packets going out 
--M <pmtud opt> define mtu discovery, can be one of <do|dont|want> +  -M <pmtud opt>     define mtu discovery, can be one of <do|dont|want> 
--n no dns name resolution +  -n                 no dns name resolution 
--O report outstanding replies +  -O                 report outstanding replies 
--p <pattern> contents of padding byte +  -p <pattern>       contents of padding byte 
--q quiet output +  -q                 quiet output 
--Q <tclass> use quality of service <tclass> bits +  -Q <tclass>        use quality of service <tclass> bits 
--s <size> use <size> as number of data bytes to be sent +  -s <size>          use <size> as number of data bytes to be sent 
--S <size> use <size> as SO_SNDBUF socket option value +  -S <size>          use <size> as SO_SNDBUF socket option value 
--t <ttl> define time to live +  -t <ttl>           define time to live 
--U print user-to-user latency +  -U                 print user-to-user latency 
--v verbose output +  -v                 verbose output 
--V print version and exit +  -V                 print version and exit 
--w <deadline> reply wait <deadline> in seconds +  -w <deadline>      reply wait <deadline> in seconds 
--W <timeout> time to wait for response+  -W <timeout>       time to wait for response
  
 IPv4 options: IPv4 options:
--4 use IPv4 +  -4                 use IPv4 
--b allow pinging broadcast +  -b                 allow pinging broadcast 
--R record route +  -R                 record route 
--T <timestamp> define timestamp, can be one of <tsonly|tsandaddr|tsprespec>+  -T <timestamp>     define timestamp, can be one of <tsonly|tsandaddr|tsprespec>
  
 IPv6 options: IPv6 options:
--6 use IPv6 +  -6                 use IPv6 
--F <flowlabel> define flow label, default is random +  -F <flowlabel>     define flow label, default is random 
--N <nodeinfo opt> use icmp6 node info query, try <help> as argument+  -N <nodeinfo opt>  use icmp6 node info query, try <help> as argument
  
 For more details see ping(8). For more details see ping(8).
Ligne 1536: Ligne 1533:
 [root@redhat9 ~]# netstat -i [root@redhat9 ~]# netstat -i
 Kernel Interface table Kernel Interface table
-Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg +Iface             MTU    RX-OK RX-ERR RX-DRP RX-OVR    TX-OK TX-ERR TX-DRP TX-OVR Flg 
-ens18 1500 18785 0 0 0 12157 0 0 0 BMRU +ens18            1500    18785           0 0         12157                0 BMRU 
-lo 65536 105 0 0 0 105 0 0 0 LRU+lo              65536      105           0 0           105                0 LRU
 </code> </code>
  
-===Command options netstat===+===Command Line Switches===
  
 The command line switches for this command are : The command line switches for this command are :
Ligne 1547: Ligne 1544:
 <code> <code>
 [root@redhat9 ~]# netstat --help [root@redhat9 ~]# netstat --help
-usage: netstat [-vWeenNcCF] [<Af>] -r netstat {-V|--version|-h|--help} +usage: netstat [-vWeenNcCF] [<Af>] -r         netstat {-V|--version|-h|--help} 
-netstat [-vWnNcaeol] [<Socket> ...] +       netstat [-vWnNcaeol] [<Socket> ...] 
-netstat { [-vWeenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s [-6tuw] } [delay]+       netstat { [-vWeenNac] -I[<Iface>] | [-veenNac] -i | [-cnNe] -M | -s [-6tuw] } [delay]
  
--r, --route display routing table +        -r, --route              display routing table 
--I, --interfaces=<Iface> display interface table for <Iface> +        -I, --interfaces=<Iface> display interface table for <Iface> 
--i, --interfaces display interface table +        -i, --interfaces         display interface table 
--g, --groups display multicast group memberships +        -g, --groups             display multicast group memberships 
--s, --statistics display networking statistics (like SNMP) +        -s, --statistics         display networking statistics (like SNMP) 
--M, --masquerade display masqueraded connections+        -M, --masquerade         display masqueraded connections
  
--v, --verbose be verbose +        -v, --verbose            be verbose 
--W, --wide don't truncate IP addresses +        -W, --wide               don't truncate IP addresses 
--n, --numeric don't resolve names +        -n, --numeric            don't resolve names 
---numeric-hosts don't resolve host names +        --numeric-hosts          don't resolve host names 
---numeric-ports don't resolve port names +        --numeric-ports          don't resolve port names 
---numeric-users don't resolve user names +        --numeric-users          don't resolve user names 
--N, --symbolic resolve hardware names +        -N, --symbolic           resolve hardware names 
--e, --extend display other/more information +        -e, --extend             display other/more information 
--p, --programs display PID/Program name for sockets +        -p, --programs           display PID/Program name for sockets 
--o, --timers display timers +        -o, --timers             display timers 
--c, --continuous continuous listing+        -c, --continuous         continuous listing
  
--l, --listening display listening server sockets +        -l, --listening          display listening server sockets 
--a, --all display all sockets (default: connected) +        -a, --all                display all sockets (default: connected) 
--F, --fib display Forwarding Information Base (default) +        -F, --fib                display Forwarding Information Base (default) 
--C, --cache display routing cache instead of FIB +        -C, --cache              display routing cache instead of FIB 
--Z, --context display SELinux security context for sockets+        -Z, --context            display SELinux security context for sockets
  
-<Socket>={-t|--tcp} {-u|--udp} {-U|--udplite} {-S|--sctp} {-w|--raw} +  <Socket>={-t|--tcp} {-u|--udp} {-U|--udplite} {-S|--sctp} {-w|--raw} 
-{-x|--unix} --ax25 --ipx --netrom +           {-x|--unix} --ax25 --ipx --netrom 
-<AF>=Use -6|-4’ or -A <af>’ or --<af>; default: inet +  <AF>=Use '-6|-4or '-A <af>or '--<af>'; default: inet 
-List of possible address families (which support routing): +  List of possible address families (which support routing): 
-inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)  +    inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25)  
-netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)  +    netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP)  
-x25 (CCITT X.25) +    x25 (CCITT X.25) 
 </code> </code>
  
 ====2.3 - traceroute==== ====2.3 - traceroute====
  
-The ping command is the basis of the **traceroute** command. This command is used to find out the route taken to access a given site:+The ping command is the basis of the **traceroute** command. This command is used to find out the route taken to reach a given host:
  
 <code> <code>
 [root@redhat9 ~]# traceroute www.ittraining.team [root@redhat9 ~]# traceroute www.ittraining.team
 bash: traceroute: command not found... bash: traceroute: command not found...
-Install package traceroute’ to provide command traceroute? [N/y] y+Install package 'tracerouteto provide command 'traceroute'? [N/y] y
  
  
-* Waiting in queue...  + * Waiting in queue...  
-* Loading list of packages.... + * Loading list of packages.... 
 The following packages have to be installed: The following packages have to be installed:
-traceroute-3:2.1.0-18.el9.x86_64 Traces the route taken by packets over an IPv4/IPv6 network+ traceroute-3:2.1.0-18.el9.x86_64       Traces the route taken by packets over an IPv4/IPv6 network
 Proceed with changes? [N/y] y Proceed with changes? [N/y] y
  
  
-* Waiting in queue...  + * Waiting in queue...  
-* Waiting for authentication...  + * Waiting for authentication...  
-* Waiting in queue...  + * Waiting in queue...  
-* Downloading packages...  + * Downloading packages...  
-* Requesting data...  + * Requesting data...  
-* Testing changes...  + * Testing changes...  
-* Installing packages... + * Installing packages... 
 traceroute to www.ittraining.team (136.143.190.199), 30 hops max, 60 byte packets traceroute to www.ittraining.team (136.143.190.199), 30 hops max, 60 byte packets
-1 _gateway (10.0.2.1) 0.437 ms 0.396 ms 0.380 ms +  _gateway (10.0.2.1)  0.437 ms  0.396 ms  0.380 ms 
-2 51.79.19.252 (51.79.19.252) 0.554 ms 0.689 ms 0.818 ms +  51.79.19.252 (51.79.19.252)  0.554 ms  0.689 ms  0.818 ms 
-3 10.161.82.50 (10.161.82.50) 0.372 ms 10.161.82.52 (10.161.82.52) 0.444 ms 10.161.82.50 (10.161.82.50) 0.372 ms +  10.161.82.50 (10.161.82.50)  0.372 ms 10.161.82.52 (10.161.82.52)  0.444 ms 10.161.82.50 (10.161.82.50)  0.372 ms 
-4 10.34.98.50 (10.34.98.50) 0.483 ms 0.580 ms 0.973 ms +  10.34.98.50 (10.34.98.50)  0.483 ms  0.580 ms  0.973 ms 
-5 10.74.8.92 (10.74.8.92) 0.232 ms 10.74.8.90 (10.74.8.90) 9.825 ms 10.74.8.94 (10.74.8.94) 0.206 ms +  10.74.8.92 (10.74.8.92)  0.232 ms 10.74.8.90 (10.74.8.90)  9.825 ms 10.74.8.94 (10.74.8.94)  0.206 ms 
-6 10.95.81.10 (10.95.81.10) 0.712 ms 10.95.81.8 (10.95.81.8) 1.103 ms 10.95.81.10 (10.95.81.10) 1.435 ms +  10.95.81.10 (10.95.81.10)  0.712 ms 10.95.81.8 (10.95.81.8)  1.103 ms 10.95.81.10 (10.95.81.10)  1.435 ms 
-7 be101.chi-ch2-sbb1-8k.il.us (198.27.73.207) 17.425 ms be101.chi-ch2-sbb2-8k.il.us (192.99.146.141) 17.089 ms be101.chi-ch2-sbb1-8k.il.us (198.27.73.207) 17.055 ms +  be101.chi-ch2-sbb1-8k.il.us (198.27.73.207)  17.425 ms be101.chi-ch2-sbb2-8k.il.us (192.99.146.141)  17.089 ms be101.chi-ch2-sbb1-8k.il.us (198.27.73.207)  17.055 ms 
-8 * * * +  * * * 
-9 10.200.1.1 (10.200.1.1) 66.593 ms 68.592 ms * +  10.200.1.1 (10.200.1.1)  66.593 ms  68.592 ms * 
-10 * 10.200.1.1 (10.200.1.1) 68.518 ms * +10  * 10.200.1.1 (10.200.1.1)  68.518 ms * 
-11 * * * +11  * * * 
-12 * * * +12  * * * 
-13 * * * +13  * * * 
-14 * * * +14  * * * 
-15 * * * +15  * * * 
-16 * * * +16  * * * 
-17 * * * +17  * * * 
-18 * * * +18  * * * 
-19 * * * +19  * * * 
-20 * * * +20  * * * 
-21 * *^C+21  * *^C
 </code> </code>
  
-===Options for the traceroute command===+===Command Line Switches===
  
 The command line switches for this command are : The command line switches for this command are :
Ligne 1640: Ligne 1637:
 [root@redhat9 ~]# traceroute --help [root@redhat9 ~]# traceroute --help
 Usage: Usage:
-traceroute [ -46dFITnreAUDV ] [ -f first_ttl ] [ -g gate,... ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w MAX,HERE,NEAR ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] [ --fwmark=num ] host [ packetlen ]+  traceroute [ -46dFITnreAUDV ] [ -f first_ttl ] [ -g gate,... ] [ -i device ] [ -m max_ttl ] [ -N squeries ] [ -p port ] [ -t tos ] [ -l flow_label ] [ -w MAX,HERE,NEAR ] [ -q nqueries ] [ -s src_addr ] [ -z sendwait ] [ --fwmark=num ] host [ packetlen ]
 Options: Options:
--4 Use IPv4 +  -4                          Use IPv4 
--6 Use IPv6 +  -6                          Use IPv6 
--d --debug Enable socket level debugging +  -d  --debug                 Enable socket level debugging 
--F --dont-fragment Do not fragment packets +  -F  --dont-fragment         Do not fragment packets 
--f first_ttl --first=first_ttl +  -f first_ttl  --first=first_ttl 
-Start from the first_ttl hop (instead from 1) +                              Start from the first_ttl hop (instead from 1) 
--g gate,... --gateway=gate,... +  -g gate,...  --gateway=gate,... 
-Route packets through the specified gateway +                              Route packets through the specified gateway 
-(maximum 8 for IPv4 and 127 for IPv6) +                              (maximum 8 for IPv4 and 127 for IPv6) 
--I --icmp Use ICMP ECHO for tracerouting +  -I  --icmp                  Use ICMP ECHO for tracerouting 
--T --tcp Use TCP SYN for tracerouting (default port is 80) +  -T  --tcp                   Use TCP SYN for tracerouting (default port is 80) 
--i device --interface=device +  -i device  --interface=device 
-Specify a network interface to operate with +                              Specify a network interface to operate with 
--m max_ttl --max-hops=max_ttl +  -m max_ttl  --max-hops=max_ttl 
-Set the max number of hops (max TTL to be +                              Set the max number of hops (max TTL to be 
-reached). Default is 30 +                              reached). Default is 30 
--N squeries --sim-queries=squeries +  -N squeries  --sim-queries=squeries 
-Set the number of probes to be tried +                              Set the number of probes to be tried 
-simultaneously (default is 16) +                              simultaneously (default is 16) 
--n Do not resolve IP addresses to their domain names +  -n                          Do not resolve IP addresses to their domain names 
--p port --port=port Set the destination port to use. It is either +  -p port  --port=port        Set the destination port to use. It is either 
-initial udp port value for default’ method +                              initial udp port value for "defaultmethod 
-(incremented by each probe, default is 33434), or +                              (incremented by each probe, default is 33434), or 
-initial seq for icmp’ (incremented as well, +                              initial seq for "icmp(incremented as well, 
-default from 1), or some constant destination +                              default from 1), or some constant destination 
-port for other methods (with default of 80 for +                              port for other methods (with default of 80 for 
-tcp, 53 for udp, etc.) +                              "tcp", 53 for "udp", etc.) 
--t tos --tos=tos Set the TOS (IPv4 type of service) or TC (IPv6 +  -t tos  --tos=tos           Set the TOS (IPv4 type of service) or TC (IPv6 
-traffic class) value for outgoing packets +                              traffic class) value for outgoing packets 
--l flow_label --flowlabel=flow_label +  -l flow_label  --flowlabel=flow_label 
-Use specified flow_label for IPv6 packets +                              Use specified flow_label for IPv6 packets 
--w MAX,HERE,NEAR --wait=MAX,HERE,NEAR +  -w MAX,HERE,NEAR  --wait=MAX,HERE,NEAR 
-Wait for a probe no more than HERE (default 3) +                              Wait for a probe no more than HERE (default 3) 
-times longer than a response from the same hop, +                              times longer than a response from the same hop, 
-or no more than NEAR (default 10) times than some +                              or no more than NEAR (default 10) times than some 
-next hop, or MAX (default 5.0) seconds (float +                              next hop, or MAX (default 5.0) seconds (float 
-point values allowed too) +                              point values allowed too) 
--q nqueries --queries=nqueries +  -q nqueries  --queries=nqueries 
-Set the number of probes per each hop. Default is +                              Set the number of probes per each hop. Default is 
-+                              
--r Bypass the normal routing and send directly to a +  -r                          Bypass the normal routing and send directly to a 
-host on an attached network +                              host on an attached network 
--s src_addr --source=src_addr +  -s src_addr  --source=src_addr 
-Use source src_addr for outgoing packets +                              Use source src_addr for outgoing packets 
--z sendwait --sendwait=sendwait +  -z sendwait  --sendwait=sendwait 
-Minimal time interval between probes (default 0). +                              Minimal time interval between probes (default 0). 
-If the value is more than 10, then it specifies a +                              If the value is more than 10, then it specifies a 
-number in milliseconds, else it is a number of +                              number in milliseconds, else it is a number of 
-seconds (float point values allowed too) +                              seconds (float point values allowed too) 
--e --extensions Show ICMP extensions (if present), including MPLS +  -e  --extensions            Show ICMP extensions (if present), including MPLS 
--A --as-path-lookups Perform AS path lookups in routing registries and +  -A  --as-path-lookups       Perform AS path lookups in routing registries and 
-print results directly after the corresponding +                              print results directly after the corresponding 
-addresses +                              addresses 
--M name --module=name Use specified module (either builtin or external) +  -M name  --module=name      Use specified module (either builtin or external) 
-for traceroute operations. Most methods have +                              for traceroute operations. Most methods have 
-their shortcuts (`-I‘ means `-M icmp’ etc.) +                              their shortcuts (`-Imeans `-M icmpetc.) 
--O OPTS,... --options=OPTS,... +  -O OPTS,...  --options=OPTS,... 
-Use module-specific option OPTS for the +                              Use module-specific option OPTS for the 
-traceroute module. Several OPTS allowed, +                              traceroute module. Several OPTS allowed, 
-separated by comma. If OPTS is help, print info +                              separated by comma. If OPTS is "help", print info 
-about available options +                              about available options 
---sport=num Use source port num for outgoing packets. Implies +  --sport=num                 Use source port num for outgoing packets. Implies 
-`-N 1' +                              `-N 1' 
---fwmark=num Set firewall mark for outgoing packets +  --fwmark=num                Set firewall mark for outgoing packets 
--U --udp Use UDP to particular port for tracerouting +  -U  --udp                   Use UDP to particular port for tracerouting 
-(instead of increasing the port per each probe), +                              (instead of increasing the port per each probe), 
-default port is 53 +                              default port is 53 
--UL Use UDPLITE for tracerouting (default dest port +  -UL                         Use UDPLITE for tracerouting (default dest port 
-is 53) +                              is 53) 
--D --dccp Use DCCP Request for tracerouting (default port +  -D  --dccp                  Use DCCP Request for tracerouting (default port 
-is 33434) +                              is 33434) 
--P prot --protocol=prot Use raw packet of protocol prot for tracerouting +  -P prot  --protocol=prot    Use raw packet of protocol prot for tracerouting 
---mtu Discover MTU along the path being traced. Implies +  --mtu                       Discover MTU along the path being traced. Implies 
-`-F -N 1' +                              `-F -N 1' 
---back Guess the number of hops in the backward path and +  --back                      Guess the number of hops in the backward path and 
-print if it differs +                              print if it differs 
--V --version Print version info and exit +  -V  --version               Print version info and exit 
---help Read this help and exit+  --help                      Read this help and exit
  
 Arguments: Arguments:
-+ host The host to traceroute to +    host          The host to traceroute to 
-packetlen The full packet length (default is the length of an IP +      packetlen     The full packet length (default is the length of an IP 
-header plus 40). Can be ignored or increased to a minimal +                    header plus 40). Can be ignored or increased to a minimal 
-allowed value+                    allowed value
 </code> </code>
  
Ligne 1734: Ligne 1731:
 <code> <code>
 [root@redhat9 ~]# tracepath www.ittraining.team [root@redhat9 ~]# tracepath www.ittraining.team
-1?: [LOCALHOST] pmtu 1500 + 1?: [LOCALHOST]                      pmtu 1500 
-1: _gateway 0.199ms  + 1:  _gateway                                              0.199ms  
-1: _gateway 0.138ms  + 1:  _gateway                                              0.138ms  
-2: 51.79.19.252 0.651ms  + 2:  51.79.19.252                                          0.651ms  
-3: 10.161.82.52 0.704ms  + 3:  10.161.82.52                                          0.704ms  
-4: 10.34.98.56 0.628ms  + 4:  10.34.98.56                                           0.628ms  
-5: 10.74.8.88 0.301ms  + 5:  10.74.8.88                                            0.301ms  
-6: 10.95.81.8 36.365ms  + 6:  10.95.81.8                                           36.365ms  
-7: be101.chi-ch2-sbb2-8k.il.us 17.152ms  + 7:  be101.chi-ch2-sbb2-8k.il.us                          17.152ms  
-8: be101.chi-ch2-sbb2-8k.il.us 17.442ms asymm 7  + 8:  be101.chi-ch2-sbb2-8k.il.us                          17.442ms asymm  7  
-9: 10.200.1.1 69.375ms  + 9:  10.200.1.1                                           69.375ms  
-10: 10.200.1.1 68.618ms asymm 9  +10:  10.200.1.1                                           68.618ms asymm  9  
-11: no reply +11:  no reply 
-12: no reply +12:  no reply 
-13: no reply +13:  no reply 
-14: no reply+14:  no reply
 ^C ^C
 </code> </code>
  
-===Options for the tracepath command===+===Command Line Switches===
  
 The command line switches for this command are : The command line switches for this command are :
Ligne 1759: Ligne 1756:
 <code> <code>
 [root@redhat9 ~]# tracepath --help [root@redhat9 ~]# tracepath --help
-tracepath: invalid option -- -+tracepath: invalid option -- '-'
  
 Usage Usage
-tracepath [options] <destination>+  tracepath [options] <destination>
  
 Options: Options:
--4 use IPv4 +  -4             use IPv4 
--6 use IPv6 +  -6             use IPv6 
--b print both name and ip +  -b             print both name and ip 
--l <length> use packet <length> -m use maximum +  -l <length>    use packet <length> 
--m <hops> use maximum <hops> -n no dns name resolution +  -m <hops>      use maximum <hops> 
--n no dns name resolution +  -n             no dns name resolution 
--p <port> use destination <port> -p <port> use destination <port> V print version +  -p <port>      use destination <port> 
--V print version and exit +  -V             print version and exit 
-<destination> dns name or ip address+  <destination>  dns name or ip address
  
 For more details see tracepath(8). For more details see tracepath(8).
Ligne 1783: Ligne 1780:
  
 <WRAP center round important> <WRAP center round important>
-**Important** - If the **telnet** command is not installed under RedHat 9, install it using the **dnf install telnet** command as root.+**Important** - If the **telnet** command is not installed, install it using the **dnf install telnet** command as root.
 </WRAP> </WRAP>
  
Ligne 1796: Ligne 1793:
 </WRAP> </WRAP>
  
-===Options for the telnet command===+===Command Line Switches===
  
 The command line switches for this command are : The command line switches for this command are :
Ligne 1802: Ligne 1799:
 <code> <code>
 [root@redhat9 ~]# telnet --help [root@redhat9 ~]# telnet --help
-telnet: invalid option -- -+telnet: invalid option -- '-'
 Usage: telnet [-4] [-6] [-8] [-E] [-L] [-S tos] [-a] [-c] [-d] [-e char] [-l user] Usage: telnet [-4] [-6] [-8] [-E] [-L] [-S tos] [-a] [-c] [-d] [-e char] [-l user]
-[-n tracefile] [-b hostalias ] [-r]  +        [-n tracefile] [-b hostalias ] [-r]  
-[host-name [port]]+ [host-name [port]]
 </code> </code>
  
Ligne 1814: Ligne 1811:
 <code> <code>
 [root@redhat9 ~]# wget https://www.dropbox.com/scl/fi/c0cbo91y2i7qwjexeldgt/wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx [root@redhat9 ~]# wget https://www.dropbox.com/scl/fi/c0cbo91y2i7qwjexeldgt/wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx
---2024-09-29 13:56:10-- https://www.dropbox.com/scl/fi/c0cbo91y2i7qwjexeldgt/wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx+--2024-09-29 13:56:10--  https://www.dropbox.com/scl/fi/c0cbo91y2i7qwjexeldgt/wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx
 Resolving www.dropbox.com (www.dropbox.com)... 162.125.11.18, 2620:100:6050:18::a27d:b12 Resolving www.dropbox.com (www.dropbox.com)... 162.125.11.18, 2620:100:6050:18::a27d:b12
 Connecting to www.dropbox.com (www.dropbox.com)|162.125.11.18|:443... connected. Connecting to www.dropbox.com (www.dropbox.com)|162.125.11.18|:443... connected.
 HTTP request sent, awaiting response... 302 Found HTTP request sent, awaiting response... 302 Found
 Location: https://uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com/cd/0/inline/CbfNI4-pa7NlBqzKN3_KWHUoXFn8kcMiV99ekpnDl2iVRanx9yx3YdpDcC5FHk8MJqHFfDnbPFeENko4TWJUAKMwZJ82s18b69iKmgbpMCFyd5oGQHLZs6uB3xy0_nmJl59Ru2MjCGeyEo9ikQ3UaaqY/file# [following] Location: https://uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com/cd/0/inline/CbfNI4-pa7NlBqzKN3_KWHUoXFn8kcMiV99ekpnDl2iVRanx9yx3YdpDcC5FHk8MJqHFfDnbPFeENko4TWJUAKMwZJ82s18b69iKmgbpMCFyd5oGQHLZs6uB3xy0_nmJl59Ru2MjCGeyEo9ikQ3UaaqY/file# [following]
---2024-09-29 13:56:11-- https://uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com/cd/0/inline/CbfNI4-pa7NlBqzKN3_KWHUoXFn8kcMiV99ekpnDl2iVRanx9yx3YdpDcC5FHk8MJqHFfDnbPFeENko4TWJUAKMwZJ82s18b69iKmgbpMCFyd5oGQHLZs6uB3xy0_nmJl59Ru2MjCGeyEo9ikQ3UaaqY/file+--2024-09-29 13:56:11--  https://uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com/cd/0/inline/CbfNI4-pa7NlBqzKN3_KWHUoXFn8kcMiV99ekpnDl2iVRanx9yx3YdpDcC5FHk8MJqHFfDnbPFeENko4TWJUAKMwZJ82s18b69iKmgbpMCFyd5oGQHLZs6uB3xy0_nmJl59Ru2MjCGeyEo9ikQ3UaaqY/file
 Resolving uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com (uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com)... 162.125.11.15, 2620:100:6050:15::a27d:b0f Resolving uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com (uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com)... 162.125.11.15, 2620:100:6050:15::a27d:b0f
 Connecting to uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com (uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com)|162.125.11.15|:443... connected. Connecting to uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com (uc22f408c6cacfcc03fb4dbb269d.dl.dropboxusercontent.com)|162.125.11.15|:443... connected.
Ligne 1826: Ligne 1823:
 Saving to: ‘wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx’ Saving to: ‘wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx’
  
-wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx 100%[====================================================================================================================>] 46 --.-KB/s in 0s +wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx        100%[====================================================================================================================>     46  --.-KB/   in 0s      
  
 2024-09-29 13:56:11 (40.9 MB/s) - ‘wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx’ saved [46/46] 2024-09-29 13:56:11 (40.9 MB/s) - ‘wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx’ saved [46/46]
Ligne 1834: Ligne 1831:
 </code> </code>
  
-===Options for the wget command===+===Command Line Switches===
  
 The command line switches for this command are : The command line switches for this command are :
Ligne 1846: Ligne 1843:
  
 Startup: Startup:
--V, --version display the version of Wget and exit +  -V,  --version                   display the version of Wget and exit 
--h, --help print this help +  -h,  --help                      print this help 
--b, --background go to background after startup +  -b,  --background                go to background after startup 
--e, --execute=COMMAND execute a `.wgetrc'-style command+  -e,  --execute=COMMAND           execute a `.wgetrc'-style command
  
 Logging and input file: Logging and input file:
--o, --output-file=FILE log messages to FILE +  -o,  --output-file=FILE          log messages to FILE 
--a, --append-output=FILE append messages to FILE +  -a,  --append-output=FILE        append messages to FILE 
--d, --debug print lots of debugging information +  -d,  --debug                     print lots of debugging information 
--q, --quiet quiet (no output) +  -q,  --quiet                     quiet (no output) 
--v, --verbose be verbose (this is the default) +  -v,  --verbose                   be verbose (this is the default) 
--nv, --no-verbose turn off verboseness, without being quiet +  -nv, --no-verbose                turn off verboseness, without being quiet 
---report-speed=TYPE output bandwidth as TYPE. TYPE can be bits +       --report-speed=TYPE         output bandwidth as TYPE.  TYPE can be bits 
--i, --input-file=FILE download URLs found in local or external FILE +  -i,  --input-file=FILE           download URLs found in local or external FILE 
--F, --force-html treat input file as HTML +  -F,  --force-html                treat input file as HTML 
--B, --base=URL resolves HTML input-file links (-i -F) +  -B,  --base=URL                  resolves HTML input-file links (-i -F) 
-relative to URL +                                     relative to URL 
---config=FILE specify config file to use +       --config=FILE               specify config file to use 
---no-config do not read any config file +       --no-config                 do not read any config file 
---rejected-log=FILE log reasons for URL rejection to FILE+       --rejected-log=FILE         log reasons for URL rejection to FILE
  
 Download: Download:
--t, --tries=NUMBER set number of retries to NUMBER (0 unlimits) +  -t,  --tries=NUMBER              set number of retries to NUMBER (0 unlimits) 
---retry-connrefused retry even if connection is refused +       --retry-connrefused         retry even if connection is refused 
---retry-on-http-error=ERRORS comma-separated list of HTTP errors to retry +       --retry-on-http-error=ERRORS    comma-separated list of HTTP errors to retry 
--O, --output-document=FILE write documents to FILE +  -O,  --output-document=FILE      write documents to FILE 
--nc, --no-clobber skip downloads that would download to +  -nc, --no-clobber                skip downloads that would download to 
-existing files (overwriting them) +                                     existing files (overwriting them) 
---no-netrc don't try to obtain credentials from .netrc +       --no-netrc                  don't try to obtain credentials from .netrc 
--c, --continue resume getting a partially-downloaded file +  -c,  --continue                  resume getting a partially-downloaded file 
---start-pos=OFFSET start downloading from zero-based position OFFSET +       --start-pos=OFFSET          start downloading from zero-based position OFFSET 
---progress=TYPE select progress gauge type +       --progress=TYPE             select progress gauge type 
---show-progress display the progress bar in any verbosity mode +       --show-progress             display the progress bar in any verbosity mode 
--N, --timestamping don't re-retrieve files unless newer than +  -N,  --timestamping              don't re-retrieve files unless newer than 
-local +                                     local 
---no-if-modified-since don't use conditional if-modified-since get +       --no-if-modified-since      don't use conditional if-modified-since get 
-requests in timestamping mode +                                     requests in timestamping mode 
---no-use-server-timestamps don't set the local file's timestamp by +       --no-use-server-timestamps  don't set the local file's timestamp by 
-the one on the server +                                     the one on the server 
--S, --server-response print server response +  -S,  --server-response           print server response 
---spider don't download anything +       --spider                    don't download anything 
--T, --timeout=SECONDS set all timeout values to SECONDS +  -T,  --timeout=SECONDS           set all timeout values to SECONDS 
---dns-timeout=SECS set the DNS lookup timeout to SECS +       --dns-timeout=SECS          set the DNS lookup timeout to SECS 
---connect-timeout=SECS set the connect timeout to SECS +       --connect-timeout=SECS      set the connect timeout to SECS 
---read-timeout=SECS set the read timeout to SECS +       --read-timeout=SECS         set the read timeout to SECS 
--w, --wait=SECONDS wait SECONDS between retrievals +  -w,  --wait=SECONDS              wait SECONDS between retrievals 
-(applies if more then 1 URL is to be retrieved) +                                     (applies if more then 1 URL is to be retrieved) 
---waitretry=SECONDS wait 1..SECONDS between retries of a retrieval +       --waitretry=SECONDS         wait 1..SECONDS between retries of a retrieval 
-(applies if more then 1 URL is to be retrieved) +                                     (applies if more then 1 URL is to be retrieved) 
---random-wait wait from 0.5*WAIT...1.5*WAIT secs between retrievals +       --random-wait               wait from 0.5*WAIT...1.5*WAIT secs between retrievals 
-(applies if more then 1 URL is to be retrieved) +                                     (applies if more then 1 URL is to be retrieved) 
---no-proxy explicitly turn off proxy +       --no-proxy                  explicitly turn off proxy 
--Q, --quota=NUMBER set retrieval quota to NUMBER +  -Q,  --quota=NUMBER              set retrieval quota to NUMBER 
---bind-address=ADDRESS bind to ADDRESS (hostname or IP) on local host +       --bind-address=ADDRESS      bind to ADDRESS (hostname or IP) on local host 
---limit-rate=RATE limit download rate to RATE +       --limit-rate=RATE           limit download rate to RATE 
---no-dns-cache disable caching DNS lookups +       --no-dns-cache              disable caching DNS lookups 
---restrict-file-names=OS restrict chars in file names to ones OS allows +       --restrict-file-names=OS    restrict chars in file names to ones OS allows 
---ignore-case ignore case when matching files/directories +       --ignore-case               ignore case when matching files/directories 
--4, --inet4-only connect only to IPv4 addresses +  -4,  --inet4-only                connect only to IPv4 addresses 
--6, --inet6-only connect only to IPv6 addresses +  -6,  --inet6-only                connect only to IPv6 addresses 
---prefer-family=FAMILY connect first to addresses of specified family, +       --prefer-family=FAMILY      connect first to addresses of specified family, 
-one of IPv6, IPv4, or none +                                     one of IPv6, IPv4, or none 
---user=USER set both ftp and http user to USER +       --user=USER                 set both ftp and http user to USER 
---password=PASS set both ftp and http password to PASS +       --password=PASS             set both ftp and http password to PASS 
---ask-password prompt for passwords +       --ask-password              prompt for passwords 
---use-askpass=COMMAND specify credential handler for requesting  +       --use-askpass=COMMAND       specify credential handler for requesting  
-username and password. If no COMMAND is  +                                     username and password.  If no COMMAND is  
-specified the WGET_ASKPASS or the SSH_ASKPASS  +                                     specified the WGET_ASKPASS or the SSH_ASKPASS  
-environment variable is used. +                                     environment variable is used. 
---no-iri turn off IRI support +       --no-iri                    turn off IRI support 
---local-encoding=ENC use ENC as the local encoding for IRIs +       --local-encoding=ENC        use ENC as the local encoding for IRIs 
---remote-encoding=ENC use ENC as the default remote encoding +       --remote-encoding=ENC       use ENC as the default remote encoding 
---unlink remove file before clobber +       --unlink                    remove file before clobber 
---xattr turn on storage of metadata in extended file attributes+       --xattr                     turn on storage of metadata in extended file attributes
  
 Directories: Directories:
--nd, --no-directories don't create directories +  -nd, --no-directories            don't create directories 
--x, --force-directories force creation of directories +  -x,  --force-directories         force creation of directories 
--nH, --no-host-directories don't create host directories +  -nH, --no-host-directories       don't create host directories 
---protocol-directories use protocol name in directories +       --protocol-directories      use protocol name in directories 
--P, --directory-prefix=PREFIX save files to PREFIX/... +  -P,  --directory-prefix=PREFIX   save files to PREFIX/.. 
---cut-dirs=NUMBER ignore NUMBER remote directory components+       --cut-dirs=NUMBER           ignore NUMBER remote directory components
  
 HTTP options: HTTP options:
---http-user=USER set http user to USER +       --http-user=USER            set http user to USER 
---http-password=PASS set http password to PASS +       --http-password=PASS        set http password to PASS 
---no-cache disallow server-cached data +       --no-cache                  disallow server-cached data 
---default-page=NAME change the default page name (normally +       --default-page=NAME         change the default page name (normally 
-this is index.html.) +                                     this is 'index.html'.) 
--E, --adjust-extension save HTML/CSS documents with proper extensions +  -E,  --adjust-extension          save HTML/CSS documents with proper extensions 
---ignore-length ignore Content-Length’ header field +       --ignore-length             ignore 'Content-Lengthheader field 
---header=STRING insert STRING among the headers +       --header=STRING             insert STRING among the headers 
---compression=TYPE choose compression, one of auto, gzip and none. (default: none) +       --compression=TYPE          choose compression, one of auto, gzip and none. (default: none) 
---max-redirect maximum redirections allowed per page +       --max-redirect              maximum redirections allowed per page 
---proxy-user=USER set USER as proxy username +       --proxy-user=USER           set USER as proxy username 
---proxy-password=PASS set PASS as proxy password +       --proxy-password=PASS       set PASS as proxy password 
---referer=URL include Referer: URL' header in HTTP request +       --referer=URL               include 'Referer: URL' header in HTTP request 
---save-headers save the HTTP headers to file +       --save-headers              save the HTTP headers to file 
--U, --user-agent=AGENT identify as AGENT instead of Wget/VERSION +  -U,  --user-agent=AGENT          identify as AGENT instead of Wget/VERSION 
---no-http-keep-alive disable HTTP keep-alive (persistent connections) +       --no-http-keep-alive        disable HTTP keep-alive (persistent connections) 
---no-cookies don't use cookies +       --no-cookies                don't use cookies 
---load-cookies=FILE load cookies from FILE before session +       --load-cookies=FILE         load cookies from FILE before session 
---save-cookies=FILE save cookies to FILE after session +       --save-cookies=FILE         save cookies to FILE after session 
---keep-session-cookies load and save session (non-permanent) cookies +       --keep-session-cookies      load and save session (non-permanent) cookies 
---post-data=STRING use the POST method; send STRING as the data +       --post-data=STRING          use the POST method; send STRING as the data 
---post-file=FILE use the POST method; send contents of FILE +       --post-file=FILE            use the POST method; send contents of FILE 
---method=HTTPMethod use method HTTPMethod’ in the request +       --method=HTTPMethod         use method "HTTPMethodin the request 
---body-data=STRING send STRING as data. --method MUST be set +       --body-data=STRING          send STRING as data. --method MUST be set 
---body-file=FILE send contents of FILE. --method MUST be set +       --body-file=FILE            send contents of FILE. --method MUST be set 
---content-disposition honor the Content-Disposition header when +       --content-disposition       honor the Content-Disposition header when 
-choosing local file names (EXPERIMENTAL) +                                     choosing local file names (EXPERIMENTAL) 
---content-on-error output the received content on server errors +       --content-on-error          output the received content on server errors 
---auth-no-challenge send Basic HTTP authentication information +       --auth-no-challenge         send Basic HTTP authentication information 
-without first waiting for the server'+                                     without first waiting for the server'
-challenge+                                     challenge
  
 HTTPS (SSL/TLS) options: HTTPS (SSL/TLS) options:
---secure-protocol=PR choose secure protocol, one of auto, SSLv2, +       --secure-protocol=PR        choose secure protocol, one of auto, SSLv2, 
-SSLv3, TLSv1, TLSv1_1, TLSv1_2 and PFS +                                     SSLv3, TLSv1, TLSv1_1, TLSv1_2 and PFS 
---https-only follow secure HTTPS links +       --https-only                only follow secure HTTPS links 
---no-check-certificate don't validate the server's certificate +       --no-check-certificate      don't validate the server's certificate 
---certificate=FILE client certificate file +       --certificate=FILE          client certificate file 
---certificate-type=TYPE client certificate type, PEM or DER +       --certificate-type=TYPE     client certificate type, PEM or DER 
---private-key=FILE private key file +       --private-key=FILE          private key file 
---private-key-type=TYPE private key type, PEM or DER +       --private-key-type=TYPE     private key type, PEM or DER 
---ca-certificate=FILE file with the bundle of CAs +       --ca-certificate=FILE       file with the bundle of CAs 
---ca-directory=DIR directory where hash list of CAs is stored +       --ca-directory=DIR          directory where hash list of CAs is stored 
---crl-file=FILE file with bundle of CRLs +       --crl-file=FILE             file with bundle of CRLs 
---pinnedpubkey=FILE/HASHES Public key (PEM/DER) file, or any number +       --pinnedpubkey=FILE/HASHES  Public key (PEM/DER) file, or any number 
-of base64 encoded sha256 hashes preceded by +                                   of base64 encoded sha256 hashes preceded by 
-sha256//’ and separated by ;, to verify +                                   'sha256//and separated by ';', to verify 
-peer against+                                   peer against
  
---ciphers=STR Set the priority string (GnuTLS) or cipher list string (OpenSSL) directly. +       --ciphers=STR           Set the priority string (GnuTLS) or cipher list string (OpenSSL) directly. 
-Use with care. This option overrides --secure-protocol. +                                   Use with care. This option overrides --secure-protocol. 
-The format and syntax of this string depend on the specific SSL/TLS engine.+                                   The format and syntax of this string depend on the specific SSL/TLS engine.
 HSTS options: HSTS options:
---no-hsts disable HSTS +       --no-hsts                   disable HSTS 
---hsts-file path of HSTS database (will override default)+       --hsts-file                 path of HSTS database (will override default)
  
 FTP options: FTP options:
---ftp-user=USER set ftp user to USER +       --ftp-user=USER             set ftp user to USER 
---ftp-password=PASS set ftp password to PASS +       --ftp-password=PASS         set ftp password to PASS 
---no-remove-listing don't remove .listing’ files +       --no-remove-listing         don't remove '.listingfiles 
---no-glob turn off FTP file name globbing +       --no-glob                   turn off FTP file name globbing 
---no-passive-ftp disable the passive’ transfer mode +       --no-passive-ftp            disable the "passivetransfer mode 
---preserve-permissions preserve remote file permissions +       --preserve-permissions      preserve remote file permissions 
---retr-symlinks when recursing, get linked-to files (not dir)+       --retr-symlinks             when recursing, get linked-to files (not dir)
  
 FTPS options: FTPS options:
---ftps-implicit use implicit FTPS (default port is 990) +       --ftps-implicit                 use implicit FTPS (default port is 990) 
---ftps-resume-ssl resume the SSL/TLS session started in the control connection when +       --ftps-resume-ssl               resume the SSL/TLS session started in the control connection when 
-opening a data connection +                                         opening a data connection 
---ftps-clear-data-connection cipher the control channel only; all the data will be in plaintext +       --ftps-clear-data-connection    cipher the control channel only; all the data will be in plaintext 
---ftps-fallback-to-ftp fall back to FTP if FTPS is not supported in the target server+       --ftps-fallback-to-ftp          fall back to FTP if FTPS is not supported in the target server
 WARC options: WARC options:
---warc-file=FILENAME save request/response data to a .warc.gz file +       --warc-file=FILENAME        save request/response data to a .warc.gz file 
---warc-header=STRING insert STRING into the warcinfo record +       --warc-header=STRING        insert STRING into the warcinfo record 
---warc-max-size=NUMBER set maximum size of WARC files to NUMBER +       --warc-max-size=NUMBER      set maximum size of WARC files to NUMBER 
---warc-cdx write CDX index files +       --warc-cdx                  write CDX index files 
---warc-dedup=FILENAME do not store records listed in this CDX file +       --warc-dedup=FILENAME       do not store records listed in this CDX file 
---no-warc-compression do not compress WARC files with GZIP +       --no-warc-compression       do not compress WARC files with GZIP 
---no-warc-digests do not calculate SHA1 digests +       --no-warc-digests           do not calculate SHA1 digests 
---no-warc-keep-log do not store the log file in a WARC record +       --no-warc-keep-log          do not store the log file in a WARC record 
---warc-tempdir=DIRECTORY location for temporary files created by the +       --warc-tempdir=DIRECTORY    location for temporary files created by the 
-WARC writer+                                     WARC writer
  
 Recursive download: Recursive download:
--r, --recursive specify recursive download +  -r,  --recursive                 specify recursive download 
--l, --level=NUMBER maximum recursion depth (inf or 0 for infinite) +  -l,  --level=NUMBER              maximum recursion depth (inf or 0 for infinite) 
---delete-after delete files locally after downloading them +       --delete-after              delete files locally after downloading them 
--k, --convert-links make links in downloaded HTML or CSS point to +  -k,  --convert-links             make links in downloaded HTML or CSS point to 
-local files +                                     local files 
---convert-file-only convert the file part of the URLs only (usually known as the basename) +       --convert-file-only         convert the file part of the URLs only (usually known as the basename) 
---backups=N before writing file X, rotate up to N backup files +       --backups=N                 before writing file X, rotate up to N backup files 
--K, --backup-converted before converting file X, back up as X.orig +  -K,  --backup-converted          before converting file X, back up as X.orig 
--m, --mirror shortcut for -N -r -l inf --no-remove-listing +  -m,  --mirror                    shortcut for -N -r -l inf --no-remove-listing 
--p, --page-requisites get all images, etc. needed to display HTML page +  -p,  --page-requisites           get all images, etc. needed to display HTML page 
---strict-comments turn on strict (SGML) handling of HTML comments+       --strict-comments           turn on strict (SGML) handling of HTML comments
  
 Recursive accept/reject: Recursive accept/reject:
--A, --accept=LIST comma-separated list of accepted extensions +  -A,  --accept=LIST               comma-separated list of accepted extensions 
--R, --reject=LIST comma-separated list of rejected extensions +  -R,  --reject=LIST               comma-separated list of rejected extensions 
---accept-regex=REGEX regex matching accepted URLs +       --accept-regex=REGEX        regex matching accepted URLs 
---reject-regex=REGEX regex matching rejected URLs +       --reject-regex=REGEX        regex matching rejected URLs 
---regex-type=TYPE regex type (posix|pcre) +       --regex-type=TYPE           regex type (posix|pcre) 
--D, --domains=LIST comma-separated list of accepted domains +  -D,  --domains=LIST              comma-separated list of accepted domains 
---exclude-domains=LIST comma-separated list of rejected domains +       --exclude-domains=LIST      comma-separated list of rejected domains 
---follow-ftp follow FTP links from HTML documents +       --follow-ftp                follow FTP links from HTML documents 
---follow-tags=LIST comma-separated list of followed HTML tags +       --follow-tags=LIST          comma-separated list of followed HTML tags 
---ignore-tags=LIST comma-separated list of ignored HTML tags +       --ignore-tags=LIST          comma-separated list of ignored HTML tags 
--H, --span-hosts go to foreign hosts when recursive +  -H,  --span-hosts                go to foreign hosts when recursive 
--L, --relative follow relative links only +  -L,  --relative                  follow relative links only 
--I, --include-directories=LIST list of allowed directories +  -I,  --include-directories=LIST  list of allowed directories 
---trust-server-names use the name specified by the redirection +       --trust-server-names        use the name specified by the redirection 
-URL's last component +                                     URL's last component 
--X, --exclude-directories=LIST list of excluded directories +  -X,  --exclude-directories=LIST  list of excluded directories 
--np, --no-parent don't ascend to the parent directory+  -np, --no-parent                 don't ascend to the parent directory
  
 Email bug reports, questions, discussions to <bug-wget@gnu.org> Email bug reports, questions, discussions to <bug-wget@gnu.org>
Ligne 2052: Ligne 2049:
  
 <WRAP center round important 60%> <WRAP center round important 60%>
-**Important** - If the **ftp** command is not installed under RedHat 9, install it using the **dnf install ftp** command as root.+**Important** - If the **ftp** command is not installed, install it using the **dnf install ftp** command as root.
 </WRAP> </WRAP>
  
Ligne 2060: Ligne 2057:
 [root@redhat9 ~]# ftp [root@redhat9 ~]# ftp
 ftp> help ftp> help
-Commands may be abbreviated. Commands are:+Commands may be abbreviated.  Commands are:
  
-! debug mdir sendport site +              debug           mdir            sendport        site 
-dir mget put size +$               dir             mget            put             size 
-account disconnect mkdir pwd status +account         disconnect      mkdir           pwd             status 
-append exit mls quit struct +append          exit            mls             quit            struct 
-ascii form mode quote system +ascii           form            mode            quote           system 
-bell get modtime recv sunique +bell            get             modtime         recv            sunique 
-binary glob mput reget tenex +binary          glob            mput            reget           tenex 
-bye hash newer rstatus tick +bye             hash            newer           rstatus         tick 
-case help nmap rhelp trace +case            help            nmap            rhelp           trace 
-cd idle nlist rename type +cd              idle            nlist           rename          type 
-cdup image ntrans reset user +cdup            image           ntrans          reset           user 
-chmod lcd open restart umask +chmod           lcd             open            restart         umask 
-close ls prompt rmdir verbose +close           ls              prompt          rmdir           verbose 
-cr macdef passive runique ? +cr              macdef          passive         runique         
-delete mdelete proxy send+delete          mdelete         proxy           send
 ftp> ftp>
 </code> </code>
Ligne 2123: Ligne 2120:
 ====3.4 - SSH==== ====3.4 - SSH====
  
-===Introduction===+===Overview===
  
 The **[[wpfr>Ssh|ssh]]** command is the successor and replacement for the **[[wpfr>Rlogin|rlogin]]** command. It is used to establish secure connections with a remote machine. SSH has five players: The **[[wpfr>Ssh|ssh]]** command is the successor and replacement for the **[[wpfr>Rlogin|rlogin]]** command. It is used to establish secure connections with a remote machine. SSH has five players:
  
-* the **SSH server** +  * the **SSH server** 
-* The sshd daemon, which handles client authentication and authorisation,  +    * The sshd daemon, which handles client authentication and authorisation,  
-* The **SSH client**. +  * The **SSH client**. 
-* ssh or scp, which connects and talks to the server, +    * ssh or scp, which connects and talks to the server, 
-* The **session**, which represents the current connection and starts immediately after successful authentication, +  * The **session**, which represents the current connection and starts immediately after successful authentication, 
-* The **keys** +  * The **keys** 
-* Asymmetric** and persistent user key pairs which ensure a user's identity and which are stored on the hard disk, +    * **Asymmetric** and persistent user key pairs which ensure a user's identity and which are stored on the hard disk, 
-* **Asymmetric and persistent** host key guaranteeing the identity of the server and stored on hard disk. +    * **Asymmetric and persistent** host key guaranteeing the identity of the server and stored on the hard disk. 
-* Temporary asymmetric server key** used by the SSH1 protocol to encrypt the session key, +    * **Temporary asymmetric server key** used by the SSH1 protocol to encrypt the session key, 
-* Symmetric session key** which is generated at random and is used to encrypt the communication between the client and the server. It is destroyed at the end of the session. SSH-1 uses a single key, while SSH-2 uses one key for each direction of communication, +    * **Symmetric session key** which is generated at random and is used to encrypt the communication between the client and the server. It is destroyed at the end of the session. SSH-1 uses a single key, while SSH-2 uses one key for each direction of communication, 
-* The **known hosts database** which stores the keys of previous connections.+  * The **known hosts database** which stores the keys of previous connections.
  
 SSH works as follows to set up a secure channel: SSH works as follows to set up a secure channel:
  
-* The client contacts the server on port 22, +  * The client contacts the server on port 22, 
-* The client and server exchange their versions of SSH. If the two versions do not match, one of them terminates the process, +  * The client and server exchange their versions of SSH. If the two versions do not match, one of them terminates the process, 
-* The SSH server identifies itself to the client by providing : +  * The SSH server identifies itself to the client by providing : 
-* Its host key, +    * Its host key, 
-* Its server key, +    * Its server key, 
-* A random sequence of eight bytes to be included in future client responses, +    * A random sequence of eight bytes to be included in future client responses, 
-* A list of encryption, compression and authentication methods, +    * A list of encryption, compression and authentication methods, 
-* The client and server produce an identical identifier, a 128-bit MD5 hash containing the host key, the server key and the random sequence, +  * The client and server produce an identical identifier, a 128-bit MD5 hash containing the host key, the server key and the random sequence, 
-* The client generates its symmetrical session key and encrypts it twice, once with the server's host key and the second time with the server key. The client sends this key to the server along with the random sequence and a choice of supported algorithms, +  * The client generates its symmetrical session key and encrypts it twice, once with the server's host key and the second time with the server key. The client sends this key to the server along with the random sequence and a choice of supported algorithms, 
-* The server decrypts the session key, +  * The server decrypts the session key, 
-* The client and server set up the secure channel.+  * The client and server set up the secure channel.
  
 ==SSH-1== ==SSH-1==
Ligne 2159: Ligne 2156:
 In order to identify itself, the client tries each of the following six methods: In order to identify itself, the client tries each of the following six methods:
  
-* **Kerberos**, +  * **Kerberos**, 
-**Rhosts**, +  **Rhosts**, 
-**%%RhostsRSA%%**, +  **%%RhostsRSA%%**, 
-By **asymmetric key**, +  Using **asymmetric keys**, 
-* **TIS**, +  * **TIS**, 
-By **password**.+  Using a **password**.
  
 ==SSH-2== ==SSH-2==
Ligne 2170: Ligne 2167:
 SSH-2 uses **DSA** or **RSA**. It ensures data integrity using the **HMAC** algorithm. SSH-2 is organised into three **layers**: SSH-2 uses **DSA** or **RSA**. It ensures data integrity using the **HMAC** algorithm. SSH-2 is organised into three **layers**:
  
-**SSH-TRANS** - Transport Layer Protocol, +  * **SSH-TRANS** - Transport Layer Protocol, 
-**SSH-AUTH** - Authentication Protocol, +  **SSH-AUTH** - Authentication Protocol, 
-* SSH-CONN** - Connection Protocol.+  * **SSH-CONN** - Connection Protocol.
  
 SSH-2 differs from SSH-1 mainly in the authentication phase.  SSH-2 differs from SSH-1 mainly in the authentication phase. 
Ligne 2178: Ligne 2175:
 There are three authentication methods: There are three authentication methods:
  
-By **asymmetric key**, +  Using **asymmetric keys**, 
-* Identical to SSH-1 except with the DSA algorithm, +  * **%%RhostsRSA%%**, 
-* **%%RhostsRSA%%**, +  Using a **password**.
-By **password**.+
  
-==Command options==+==Command Line Switches==
  
 The command line switches for this command are : The command line switches for this command are :
Ligne 2191: Ligne 2187:
 unknown option -- - unknown option -- -
 usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface] usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
-[-b bind_address] [-c cipher_spec] [-D [bind_address:]port] +           [-b bind_address] [-c cipher_spec] [-D [bind_address:]port] 
-[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] +           [-E log_file] [-e escape_char] [-F configfile] [-I pkcs11] 
-[-i identity_file] [-J [user@]host[:port]] [-L address] +           [-i identity_file] [-J [user@]host[:port]] [-L address] 
-[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] +           [-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port] 
-[-Q query_option] [-R address] [-S ctl_path] [-W host:port] +           [-Q query_option] [-R address] [-S ctl_path] [-W host:port] 
-[-w local_tun[:remote_tun]] destination [command]+           [-w local_tun[:remote_tun]] destination [command]
 </code> </code>
  
-===Password authentication===+===Password Authentication===
  
 The user provides the ssh client with a password. The ssh client transmits it securely to the ssh server and then the server checks the password and accepts it or not. The user provides the ssh client with a password. The ssh client transmits it securely to the ssh server and then the server checks the password and accepts it or not.
  
 Advantages: Advantages:
-* No asymmetric key configuration required.+ 
 +  * No asymmetric key configuration required.
  
 Disadvantages: Disadvantages:
-* The user must provide a login and password for each connection, 
-* Less secure than an asymmetric key system. 
  
-===Asymmetric key authentication===+  * The user must provide a login and password for each connection, 
 +  * Less secure than asymmetric keys. 
 + 
 +===Asymmetric Key Authentication===
  
-* The **client** sends the server an asymmetric key authentication request containing the key module to be used, +   * The **client** sends the server an asymmetric key authentication request containing the key module to be used, 
-* The **server** looks for a match for this module in the **~/.ssh/authorized_keys** authorised keys file, +   * The **server** looks for a match for this module in the **~/.ssh/authorized_keys** authorised keys file, 
-* If no match is found, the server terminates communication, +     * If no match is found, the server terminates communication, 
-* If a match is not found, the server generates a 256-bit random string called a **challenge** and encrypts it with the client's **public key**, +     * If a match is found, the server generates a 256-bit random string called a **challenge** and encrypts it with the client's **public key**, 
-* The **client** receives the challenge and decrypts it using the private part of its key. It combines the challenge with the session identifier and encrypts the result. It then sends the encrypted result to the server. +   * The **client** receives the challenge and decrypts it using the private part of its key. It combines the challenge with the session identifier and encrypts the result. It then sends the encrypted result to the server. 
-* The **server** generates the same hash and compares it with the one received from the client. If the two hashes are identical, authentication is successful.+   * The **server** generates the same hash and compares it with the one received from the client. If the two hashes are identical, authentication is successful.
  
 ===Server Configuration=== ===Server Configuration===
Ligne 2225: Ligne 2223:
 <code> <code>
 [root@redhat9 ~]# cat /etc/ssh/sshd_config [root@redhat9 ~]# cat /etc/ssh/sshd_config
-# $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $+      $OpenBSD: sshd_config,v 1.104 2021/07/02 05:11:21 dtucker Exp $
  
-# This is the sshd server system-wide configuration file. See+# This is the sshd server system-wide configuration file.  See
 # sshd_config(5) for more information. # sshd_config(5) for more information.
  
Ligne 2234: Ligne 2232:
 # The strategy used for options in the default sshd_config shipped with # The strategy used for options in the default sshd_config shipped with
 # OpenSSH is to specify options with their default value where # OpenSSH is to specify options with their default value where
-# possible, but leave them commented. Uncommented options override the+# possible, but leave them commented.  Uncommented options override the
 # default value. # default value.
  
-# To modify the system-wide sshd configuration, create a *.conf file under +# To modify the system-wide sshd configuration, create a  *.conf  file under 
-# /etc/ssh/sshd_config.d/ which will be automatically included below+ /etc/ssh/sshd_config.d/  which will be automatically included below
 Include /etc/ssh/sshd_config.d/*.conf Include /etc/ssh/sshd_config.d/*.conf
  
Ligne 2273: Ligne 2271:
 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2 # The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
 # but this is overridden so installations will only check .ssh/authorized_keys # but this is overridden so installations will only check .ssh/authorized_keys
-AuthorizedKeysFile .ssh/authorized_keys+AuthorizedKeysFile      .ssh/authorized_keys
  
 #AuthorizedPrincipalsFile none #AuthorizedPrincipalsFile none
Ligne 2309: Ligne 2307:
 #GSSAPIEnablek5users no #GSSAPIEnablek5users no
  
-# Set this to yes’ to enable PAM authentication, account processing,+# Set this to 'yesto enable PAM authentication, account processing,
 # and session processing. If this is enabled, PAM authentication will # and session processing. If this is enabled, PAM authentication will
 # be allowed through the KbdInteractiveAuthentication and # be allowed through the KbdInteractiveAuthentication and
-# PasswordAuthentication. Depending on your PAM configuration,+# PasswordAuthentication.  Depending on your PAM configuration,
 # PAM authentication via KbdInteractiveAuthentication may bypass # PAM authentication via KbdInteractiveAuthentication may bypass
-# the setting of PermitRootLogin without-password.+# the setting of "PermitRootLogin without-password".
 # If you just want the PAM account and session checks to run without # If you just want the PAM account and session checks to run without
 # PAM authentication, then enable this but set PasswordAuthentication # PAM authentication, then enable this but set PasswordAuthentication
-# and KbdInteractiveAuthentication to no+# and KbdInteractiveAuthentication to 'no'
-# WARNING: UsePAM no’ is not supported in RHEL and may cause several+# WARNING: 'UsePAM nois not supported in RHEL and may cause several
 # problems. # problems.
 #UsePAM no #UsePAM no
Ligne 2347: Ligne 2345:
  
 # override default of no subsystems # override default of no subsystems
-Subsystem sftp /usr/libexec/openssh/sftp-server+Subsystem       sftp    /usr/libexec/openssh/sftp-server
  
 # Example of overriding settings on a per-user basis # Example of overriding settings on a per-user basis
 #Match User anoncvs #Match User anoncvs
-# X11Forwarding no +      X11Forwarding no 
-# AllowTcpForwarding no +      AllowTcpForwarding no 
-# PermitTTY no +      PermitTTY no 
-# ForceCommand cvs server+      ForceCommand cvs server
 </code> </code>
  
-To remove the comment lines in this file, use the following command: 
- 
-<code> 
-[root@redhat9 ~]# cd /tmp ; grep -E -v ‘^(#|$)’ /etc/ssh/sshd_config > sshd_config 
- 
-[root@redhat9 tmp]# cat sshd_config  
-Include /etc/ssh/sshd_config.d/*.conf 
-AuthorizedKeysFile .ssh/authorized_keys 
-Subsystem sftp /usr/libexec/openssh/sftp-server 
-</code> 
  
 To secure the ssh server, add or modify the following directives : To secure the ssh server, add or modify the following directives :
Ligne 2404: Ligne 2392:
 X11Forwarding no X11Forwarding no
 Include /etc/ssh/sshd_config.d/*.conf Include /etc/ssh/sshd_config.d/*.conf
-AuthorizedKeysFile .ssh/authorized_keys +AuthorizedKeysFile      .ssh/authorized_keys 
-Subsystem sftp /usr/libexec/openssh/sftp-server+Subsystem       sftp    /usr/libexec/openssh/sftp-server
 </code> </code>
  
Ligne 2428: Ligne 2416:
 [root@redhat9 tmp]# systemctl status sshd [root@redhat9 tmp]# systemctl status sshd
 ● sshd.service - OpenSSH server daemon ● sshd.service - OpenSSH server daemon
-Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: enabled) +     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: enabled) 
-Active: active (running) since Sun 2024-09-29 14:06:49 CEST; 9s ago +     Active: active (running) since Sun 2024-09-29 14:06:49 CEST; 9s ago 
-Docs: man:sshd(8) +       Docs: man:sshd(8) 
-man:sshd_config(5) +             man:sshd_config(5) 
-Main PID: 5560 (sshd) +   Main PID: 5560 (sshd) 
-Tasks: 1 (limit: 48800) +      Tasks: 1 (limit: 48800) 
-Memory: 1.4M +     Memory: 1.4M 
-CPU: 13ms +        CPU: 13ms 
-CGroup: /system.slice/sshd.service +     CGroup: /system.slice/sshd.service 
-└─5560 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups+             └─5560 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
  
 Sep 29 14:06:49 redhat9.ittraining.loc systemd[1]: Starting OpenSSH server daemon... Sep 29 14:06:49 redhat9.ittraining.loc systemd[1]: Starting OpenSSH server daemon...
Ligne 2471: Ligne 2459:
 The key's randomart image is: The key's randomart image is:
 +---[DSA 1024]----+ +---[DSA 1024]----+
-| +o++o| +           +o++o| 
-| . o o+..| +        o o+..| 
-| o . .. +.| +    . ..    +.| 
-|. E . . . o.+| +|. E   .  .. . o.+| 
-|.. + . .S . + oo| +|.. + . .S  . + oo| 
-|*.* B . . . .| +|*.* B .     . . .| 
-|oX.* + | +|oX.* +           
-|o *o+ o | +|o *o+ o          
-| +++.+ |+| +++.+           |
 +----[SHA256]-----+ +----[SHA256]-----+
 </code>  </code> 
Ligne 2499: Ligne 2487:
 The key's randomart image is: The key's randomart image is:
 +---[RSA 3072]----+ +---[RSA 3072]----+
-| ...==o.oo.o.+o| +  ...==o.oo.o.+o| 
-| o.+= = E.=.o| +   o.+= =  E.=.o| 
-| o +o.*.o .+.= | +  o +o.*.o .+.= | 
-| o.o*o.ooo.+ | +   o.o*o.ooo.+  
-| ...S ++ . | +    ...S ++   . | 
-| . . * | +    . . *       
-| . * | +     . *        
-| o | +              
-| |+                |
 +----[SHA256]-----+ +----[SHA256]-----+
  
Ligne 2523: Ligne 2511:
 The key's randomart image is: The key's randomart image is:
 +---[ECDSA 256]---+ +---[ECDSA 256]---+
-| ..=== .E | +  ..===   .E    
-| +.o = . | +   +.o = .      
-| . + = o | +| .   + = o       
-|o. . O o | +|o.. O o        
-|+ =o.= +S. | +|+ =o.= +S.       
-|.Bo+* ..o | +|.Bo+* ..o        
-|+.o+.++ . | +|+.o+.++        
-|. o+=. | +|.  o+=.          
-|o..oo . |+|o..oo ..         |
 +----[SHA256]-----+ +----[SHA256]-----+
  
Ligne 2547: Ligne 2535:
 The key's randomart image is: The key's randomart image is:
 +--[ED25519 256]--+ +--[ED25519 256]--+
-| E.....o.o.. | + E.....o.o..    
-| o.o .o+o | +   o.o .o+o     
-| = B. . | +      B.    
-| + +.= o . | +     + +.= o .  
-| +S* +. +o.| +      +S* +. +o.| 
-| . . o.=o.+ ++| +   . . o.=o.+ ++| 
-| o o =o+..o.o| +    o o =o+..o.o| 
-| o o .oo ...| +     o o .oo ...| 
-| .o . |+     .o       |
 +----[SHA256]-----+ +----[SHA256]-----+
 </code> </code>
  
-Generated public keys have the **.pub** extension. Private keys do not have a :+Generated public keys have the **.pub** extension. Private keys do not have a file extension:
  
 <code> <code>
 [root@redhat9 tmp]# ls /etc/ssh [root@redhat9 tmp]# ls /etc/ssh
-moduli ssh_config.d sshd_config.d ssh_host_dsa_key ssh_host_ecdsa_key ssh_host_ed25519_key ssh_host_rsa_key +moduli      ssh_config.d  sshd_config.d    ssh_host_dsa_key      ssh_host_ecdsa_key      ssh_host_ed25519_key      ssh_host_rsa_key 
-ssh_config sshd_config sshd_config.old ssh_host_dsa_key.pub ssh_host_ecdsa_key.pub ssh_host_ed25519_key.pub ssh_host_rsa_key.pub+ssh_config  sshd_config   sshd_config.old  ssh_host_dsa_key.pub  ssh_host_ecdsa_key.pub  ssh_host_ed25519_key.pub  ssh_host_rsa_key.pub
 </code> </code>
  
-Then restart the sshd service:+Now restart the sshd service:
  
 <code> <code>
Ligne 2574: Ligne 2562:
 [root@redhat9 tmp]# systemctl status sshd.service [root@redhat9 tmp]# systemctl status sshd.service
 ● sshd.service - OpenSSH server daemon ● sshd.service - OpenSSH server daemon
-Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: enabled) +     Loaded: loaded (/usr/lib/systemd/system/sshd.service; enabled; preset: enabled) 
-Active: active (running) since Sun 2024-09-29 14:14:14 CEST; 13s ago +     Active: active (running) since Sun 2024-09-29 14:14:14 CEST; 13s ago 
-Docs: man:sshd(8) +       Docs: man:sshd(8) 
-man:sshd_config(5) +             man:sshd_config(5) 
-Main PID: 5583 (sshd) +   Main PID: 5583 (sshd) 
-Tasks: 1 (limit: 48800) +      Tasks: 1 (limit: 48800) 
-Memory: 1.3M +     Memory: 1.3M 
-CPU: 12ms +        CPU: 12ms 
-CGroup: /system.slice/sshd.service +     CGroup: /system.slice/sshd.service 
-└─5583 sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups+             └─5583 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups"
  
 Sep 29 14:14:14 redhat9.ittraining.loc systemd[1]: sshd.service: Deactivated successfully. Sep 29 14:14:14 redhat9.ittraining.loc systemd[1]: sshd.service: Deactivated successfully.
Ligne 2608: Ligne 2596:
 Generating public/private dsa key pair. Generating public/private dsa key pair.
 Enter file in which to save the key (/home/trainee/.ssh/id_dsa):  Enter file in which to save the key (/home/trainee/.ssh/id_dsa): 
-Created directory /home/trainee/.ssh.+Created directory '/home/trainee/.ssh'.
 Enter passphrase (empty for no passphrase):  Enter passphrase (empty for no passphrase): 
 Enter same passphrase again:  Enter same passphrase again: 
Ligne 2617: Ligne 2605:
 The key's randomart image is: The key's randomart image is:
 +---[DSA 1024]----+ +---[DSA 1024]----+
-| ...+o..... | +  ...+o.....    
-| .... +. . | +   .... +.    
-| . o = . | +     o = .    
-| .o o * + | +   .o o * +     
-| =.* S = | +   =.* S =      
-| o.% o . | +  o.% o . .     
-| E.B o . | +   E.B o .      
-| = =o= . | +  = =o= .       
-| .**Boo |+  .**Boo        |
 +----[SHA256]-----+ +----[SHA256]-----+
  
Ligne 2639: Ligne 2627:
 The key's randomart image is: The key's randomart image is:
 +---[RSA 3072]----+ +---[RSA 3072]----+
-| . | +              
-| + | +              
-| . + . | +   . + .        
-| o o . | +    o o .       
-| . S.. o | +     S..    
-| . o+*.+ * . | +    . o+*.+ * . | 
-| o .o++X = = | +   .o++X = =  
-| o oo=.o@ E . *.| + o oo=.o@ E . *.| 
-| oo=+=* . o*|+  oo=+=* .    o*|
 +----[SHA256]-----+ +----[SHA256]-----+
  
Ligne 2661: Ligne 2649:
 The key's randomart image is: The key's randomart image is:
 +---[ECDSA 256]---+ +---[ECDSA 256]---+
-| .=Bo | +        .=Bo    
-| ..o+ . | +       ..o+   . | 
-| .+ + +| +        .+ +   +| 
-| . = * E +o| +      . = * E +o| 
-| .S.* O = o| +      .S.* O = o| 
-| ..o=.* =. .| +     ..o=.* =. .| 
-| o..+ =. o | +      o..+ =. o | 
-| .. .B o | +     ..  .B   
-| .. o... |+      .. o...   |
 +----[SHA256]-----+ +----[SHA256]-----+
  
Ligne 2683: Ligne 2671:
 The key's randomart image is: The key's randomart image is:
 +--[ED25519 256]--+ +--[ED25519 256]--+
-|== ooo+o..E | +|== ooo+o..E      
-|ooo.==o.o+ | +|ooo.==o.o+       
-| =++o.o o. | + =++o.o o.      
-| o o. = = | +| o o. = =        
-| o BS | +    o BS        
-| ..+.+. | +   ..+.+.       
-| .o+o..= | +   .o+o..=      
-| o.o oo+ | +    o.o oo+     
-| . ++ |+       ++     |
 +----[SHA256]-----+ +----[SHA256]-----+
 </code> </code>
Ligne 2702: Ligne 2690:
 </code> </code>
  
-===SSH tunnels===+===SSH Tunnels===
  
-The SSH protocol can be used to secure protocols such as telnet, pop3 and so on. In fact, you can create an SSH //tunnel// through which unsecured protocol communications pass.+The SSH protocol can be used to secure protocols such as telnet, pop3 and so on. You can create an SSH //tunnel// through which unsecured protocol communications pass.
  
 The command to create an ssh tunnel takes the following form: The command to create an ssh tunnel takes the following form:
  
-ssh -N -f account@host -Local_port:localhost:remote_port+  ssh -N -f account@host -Local_port:localhost:remote_port
  
 In your case, you are going to create a tunnel in your own vm between port 15023 and port 23 : In your case, you are going to create a tunnel in your own vm between port 15023 and port 23 :
Ligne 2714: Ligne 2702:
 <code> <code>
 [trainee@redhat9 ~]$ ssh -N -f trainee@localhost -L15023:localhost:23 [trainee@redhat9 ~]$ ssh -N -f trainee@localhost -L15023:localhost:23
-The authenticity of host localhost (::1)’ can't be established.+The authenticity of host 'localhost (::1)can't be established.
 ED25519 key fingerprint is SHA256:UwUjA5Ln700GWzhNxvIvdNafLOhD1/hdrMigOvARQwI. ED25519 key fingerprint is SHA256:UwUjA5Ln700GWzhNxvIvdNafLOhD1/hdrMigOvARQwI.
 This key is not known by any other names This key is not known by any other names
 Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
-Warning: Permanently added localhost’ (ED25519) to the list of known hosts.+Warning: Permanently added 'localhost(ED25519) to the list of known hosts.
 \S \S
 Kernel \r on an \m Kernel \r on an \m
Ligne 2734: Ligne 2722:
 Dependencies resolved. Dependencies resolved.
 ================================================================================================================================================================================================================== ==================================================================================================================================================================================================================
-Package Architecture Version Repository Size+ Package                                        Architecture                            Version                                           Repository                                                         Size
 ================================================================================================================================================================================================================== ==================================================================================================================================================================================================================
 Installing: Installing:
-telnet-server x86_64 1:0.17-85.el9 rhel-9-for-x86_64-appstream-rpms 41 k+ telnet-server                                  x86_64                                  1:0.17-85.el9                                     rhel-9-for-x86_64-appstream-rpms                                   41 k
  
 Transaction Summary Transaction Summary
 ================================================================================================================================================================================================================== ==================================================================================================================================================================================================================
-Install 1 Package+Install  1 Package
  
 Total download size: 41 k Total download size: 41 k
Ligne 2747: Ligne 2735:
 Is this ok [y/N]: y Is this ok [y/N]: y
 Downloading Packages: Downloading Packages:
-telnet-server-0.17-85.el9.x86_64.rpm 145 kB/s | 41 kB 00:00 +telnet-server-0.17-85.el9.x86_64.rpm                                                                                                                                              145 kB/s |  41 kB     00:00    
 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
-Total 144 kB/s | 41 kB 00:00 +Total                                                                                                                                                                             144 kB/s |  41 kB     00:00     
 Running transaction check Running transaction check
 Transaction check succeeded. Transaction check succeeded.
Ligne 2755: Ligne 2743:
 Transaction test succeeded. Transaction test succeeded.
 Running transaction Running transaction
-Preparing : 1/1  +  Preparing                                                                                                                                                                                                 1/1  
-Installing : telnet-server-1:0.17-85.el9.x86_64 1/1  +  Installing       : telnet-server-1:0.17-85.el9.x86_64                                                                                                                                                       1/1  
-Running scriptlet: telnet-server-1:0.17-85.el9.x86_64 1/1  +  Running scriptlet: telnet-server-1:0.17-85.el9.x86_64                                                                                                                                                       1/1  
-Verifying : telnet-server-1:0.17-85.el9.x86_64 1/1 +  Verifying        : telnet-server-1:0.17-85.el9.x86_64                                                                                                                                                       1/1 
 Installed products updated. Installed products updated.
  
 Installed: Installed:
-telnet-server-1:0.17-85.el9.x86_64 +  telnet-server-1:0.17-85.el9.x86_64                                                                                                                                                                              
  
 Complete! Complete!
Ligne 2772: Ligne 2760:
 [root@redhat9 ~]# systemctl status telnet.socket [root@redhat9 ~]# systemctl status telnet.socket
 ○ telnet.socket - Telnet Server Activation Socket ○ telnet.socket - Telnet Server Activation Socket
-Loaded: loaded (/usr/lib/systemd/system/telnet.socket; disabled; preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/telnet.socket; disabled; preset: disabled) 
-Active: inactive (dead) +     Active: inactive (dead) 
-Docs: man:telnetd(8) +       Docs: man:telnetd(8) 
-Listen: [::]:23 (Stream) +     Listen: [::]:23 (Stream) 
-Accepted: 0; Connected: 0;+   Accepted: 0; Connected: 0;
  
 [root@redhat9 ~]# systemctl start telnet.socket [root@redhat9 ~]# systemctl start telnet.socket
Ligne 2782: Ligne 2770:
 [root@redhat9 ~]# systemctl status telnet.socket [root@redhat9 ~]# systemctl status telnet.socket
 ● telnet.socket - Telnet Server Activation Socket ● telnet.socket - Telnet Server Activation Socket
-Loaded: loaded (/usr/lib/systemd/system/telnet.socket; disabled; preset: disabled) +     Loaded: loaded (/usr/lib/systemd/system/telnet.socket; disabled; preset: disabled) 
-Active: active (listening) since Sun 2024-09-29 14:19:51 CEST; 13s ago +     Active: active (listening) since Sun 2024-09-29 14:19:51 CEST; 13s ago 
-Until: Sun 2024-09-29 14:19:51 CEST; 13s ago +      Until: Sun 2024-09-29 14:19:51 CEST; 13s ago 
-Docs: man:telnetd(8) +       Docs: man:telnetd(8) 
-Listen: [::]:23 (Stream) +     Listen: [::]:23 (Stream) 
-Accepted: 0; Connected: 0; +   Accepted: 0; Connected: 0; 
-Tasks: 0 (limit: 48800) +      Tasks: 0 (limit: 48800) 
-Memory: 8.0K +     Memory: 8.0K 
-CPU: 700us +        CPU: 700us 
-CGroup: /system.slice/telnet.socket+     CGroup: /system.slice/telnet.socket
  
 Sep 29 14:19:51 redhat9.ittraining.loc systemd[1]: Listening on Telnet Server Activation Socket. Sep 29 14:19:51 redhat9.ittraining.loc systemd[1]: Listening on Telnet Server Activation Socket.
Ligne 2798: Ligne 2786:
 </code> </code>
  
-Then connect via telnet to port 15023, and you will see that your connection is not successful:+Then connect via telnet to port 15023:
  
 <code> <code>
Ligne 2804: Ligne 2792:
 Trying ::1... Trying ::1...
 Connected to localhost. Connected to localhost.
-Escape character is ^].+Escape character is '^]'.
  
 Kernel 5.14.0-427.37.1.el9_4.x86_64 on an x86_64 Kernel 5.14.0-427.37.1.el9_4.x86_64 on an x86_64
Ligne 2824: Ligne 2812:
 ====3.5 - SCP==== ====3.5 - SCP====
  
-===Introduction===+===Overview===
  
 The **scp** command is the successor and replacement for the **rcp** command in the **remote** command family. It is used to make secure transfers from a remote machine: The **scp** command is the successor and replacement for the **rcp** command in the **remote** command family. It is used to make secure transfers from a remote machine:
  
-$ scp account@numero_ip(machine_name):/remote_path/remote_file/local_path/local_file+  $ scp account@ip(machine_name):/remote_path/remote_file /local_path/local_file
  
 or to a remote machine : or to a remote machine :
  
-$ scp /path_local/file_local account@numero_ip(hostname):/remote_path/remote_file+  $ scp /local_path/local_file account@ip(hostname):/remote_path/remote_file
  
-===Using===+===Usage===
  
-We are now going to use **scp** to search for a file on the <<server>> :+We are now going to use **scp** to download a file on the <<server>> :
  
 Create the file **/home/trainee/scp_test** : Create the file **/home/trainee/scp_test** :
Ligne 2854: Ligne 2842:
 <code> <code>
 [root@redhat9 ~]# scp trainee@127.0.0.1:/home/trainee/scp-test . [root@redhat9 ~]# scp trainee@127.0.0.1:/home/trainee/scp-test .
-The authenticity of host 127.0.0.1 (127.0.0.1)’ can't be established.+The authenticity of host '127.0.0.1 (127.0.0.1)can't be established.
 ED25519 key fingerprint is SHA256:UwUjA5Ln700GWzhNxvIvdNafLOhD1/hdrMigOvARQwI. ED25519 key fingerprint is SHA256:UwUjA5Ln700GWzhNxvIvdNafLOhD1/hdrMigOvARQwI.
 This key is not known by any other names This key is not known by any other names
 Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
-Warning: Permanently added 127.0.0.1’ (ED25519) to the list of known hosts.+Warning: Permanently added '127.0.0.1(ED25519) to the list of known hosts.
 \S \S
 Kernel \r on an \m Kernel \r on an \m
Ligne 2865: Ligne 2853:
 [root@redhat9 ~]# ls -l [root@redhat9 ~]# ls -l
 total 2042944 total 2042944
--rw-------. 1 root root 1226 Oct 19 2023 anaconda-ks.cfg +-rw-------. 1 root    root          1226 Oct 19  2023  anaconda-ks.cfg 
--rw-r--r--. 1 trainee trainee 2091941797 Oct 19 2023 ansible-automation-platform-setup-bundle-2.4-2.2-x86_64.tar.gz +-rw-r--r--. 1 trainee trainee 2091941797 Oct 19  2023  ansible-automation-platform-setup-bundle-2.4-2.2-x86_64.tar.gz 
--rw-r--r--. 1 root root 64 Sep 27 08:24 device.map +-rw-r--r--. 1 root    root            64 Sep 27 08:24  device.map 
--rw-------. 1 root root 7118 Sep 27 08:24 grub.cfg +-rw-------. 1 root    root          7118 Sep 27 08:24  grub.cfg 
-drwxr-xr-x. 3 root root 21 Oct 19 2023 home +drwxr-xr-x. 3 root    root            21 Oct 19  2023  home 
--rw-r--r--. 1 root root 98 Sep 27 08:23 montages.list +-rw-r--r--. 1 root    root            98 Sep 27 08:23  montages.list 
--rw-r--r--. 1 root root 2109 Sep 25 16:20 passwd +-rw-r--r--. 1 root    root          2109 Sep 25 16:20  passwd 
--rw-r--r--. 1 root root 0 Sep 29 14:24 scp-test +-rw-r--r--. 1 root    root             0 Sep 29 14:24  scp-test 
--rw-r--r--. 1 root root 457 Sep 27 08:22 structure.list +-rw-r--r--. 1 root    root           457 Sep 27 08:22  structure.list 
--rw-r--r--. 1 root root 46 Sep 29 13:56 wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx+-rw-r--r--. 1 root    root            46 Sep 29 13:56 'wget_file.txt?rlkey=g8fgje9z8oeqgb4nd2g7x3wkx'
 </code> </code>
  
-====3.6 - Setting up asymmetric keys====+====3.6 - Setting up Asymmetric Keys====
  
 We now need to connect to the <<server>> using ssh and check that the ~/.ssh directory is present: We now need to connect to the <<server>> using ssh and check that the ~/.ssh directory is present:
Ligne 2891: Ligne 2879:
  
 [trainee@redhat9 ~]$ ls -la | grep .ssh [trainee@redhat9 ~]$ ls -la | grep .ssh
--rw-------. 1 trainee trainee 20 Sep 25 15:18 .lesshst +-rw-------.  1 trainee trainee   20 Sep 25 15:18 .lesshst 
-drwx------. 2 trainee trainee 188 Sep 29 14:18 .ssh+drwx------.  2 trainee trainee  188 Sep 29 14:18 .ssh
 </code> </code>
  
 <WRAP center round important 60%> <WRAP center round important 60%>
-**Important** - If the remote .ssh folder does not exist in the connected user's home directory, it must be created with 700 permissions. In your case, since your machine is the server **and** the client, the /home/trainee/.ssh folder **already** exists.+**Important** - If the remote .ssh folder does not exist in the user's home directory, it must be created with 700 file permissions. In your case, since your machine is the server **and** the client, the /home/trainee/.ssh folder **already** exists.
 </WRAP> </WRAP>
  
Ligne 2910: Ligne 2898:
  
 [trainee@redhat9 ~]$ scp .ssh/id_ecdsa.pub trainee@127.0.0.1:/home/trainee/.ssh/authorized_keys [trainee@redhat9 ~]$ scp .ssh/id_ecdsa.pub trainee@127.0.0.1:/home/trainee/.ssh/authorized_keys
-The authenticity of host 127.0.0.1 (127.0.0.1)’ can't be established.+The authenticity of host '127.0.0.1 (127.0.0.1)can't be established.
 ED25519 key fingerprint is SHA256:UwUjA5Ln700GWzhNxvIvdNafLOhD1/hdrMigOvARQwI. ED25519 key fingerprint is SHA256:UwUjA5Ln700GWzhNxvIvdNafLOhD1/hdrMigOvARQwI.
 This host key is known by the following other names/addresses: This host key is known by the following other names/addresses:
-~/.ssh/known_hosts:1: localhost+    ~/.ssh/known_hosts:1: localhost
 Are you sure you want to continue connecting (yes/no/[fingerprint])? yes Are you sure you want to continue connecting (yes/no/[fingerprint])? yes
-Warning: Permanently added 127.0.0.1’ (ED25519) to the list of known hosts.+Warning: Permanently added '127.0.0.1(ED25519) to the list of known hosts.
 \S \S
 Kernel \r on an \m Kernel \r on an \m
 trainee@127.0.0.1's password: trainee trainee@127.0.0.1's password: trainee
-id_ecdsa.pub 100% 192 427.3KB/s 00:00+id_ecdsa.pub                                                                                                                                                                    100%  192   427.3KB/  00:00
 </code> </code>
  
Ligne 2935: Ligne 2923:
  
 <WRAP center round important 60%> <WRAP center round important 60%>
-**Important** - When connecting to the server, authentication uses the asymmetric key pair in ecdsa format and no password is required.+**Important** - When connecting to the server, the authentication procedure uses the asymmetric key pair in ecdsa format and no password is required.
 </WRAP> </WRAP>
  
Ligne 2944: Ligne 2932:
  
 [trainee@redhat9 .ssh]$ ls [trainee@redhat9 .ssh]$ ls
-authorized_keys id_dsa id_dsa.pub id_ecdsa id_ecdsa.pub id_ed25519 id_ed25519.pub id_rsa id_rsa.pub known_hosts known_hosts.old+authorized_keys  id_dsa  id_dsa.pub  id_ecdsa  id_ecdsa.pub  id_ed25519  id_ed25519.pub  id_rsa  id_rsa.pub  known_hosts  known_hosts.old
  
 [trainee@redhat9 .ssh]$ cat authorized_keys [trainee@redhat9 .ssh]$ cat authorized_keys
Ligne 2957: Ligne 2945:
 [trainee@redhat9 .ssh]$ cat authorized_keys [trainee@redhat9 .ssh]$ cat authorized_keys
 ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGJIMNJ1m+xIpYzfYwK7VpdCI9inhQx3wptO+z4Xsl3XYcb+WIXsEsJpKSyQnOv98HmfZVJWcqXaSBkE5mskFGI= trainee@redhat9.ittraining.loc ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBGJIMNJ1m+xIpYzfYwK7VpdCI9inhQx3wptO+z4Xsl3XYcb+WIXsEsJpKSyQnOv98HmfZVJWcqXaSBkE5mskFGI= trainee@redhat9.ittraining.loc
-ssh- rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDSBgNBWkHU0UWXablPEQLRXjcdG7WYN0651bSh122wAMpMo5j3Jjlxm+tCKILpU5kjmpLIC+YCVw3nNr2e8RxIucxfEy1NIXrrCS0Ps3t5zsdsta/Z716BvX0x4tRuKqLPOMmwLWyvjYG4ixnECNSJTnHOmj122wxpdBX6HWJpJ+61NIvOnI+fAGTU6nPmb0jkanNT/HZ27eDlqo88gNAXrRSt/Uc1bglNue5NGKn2TcuUEIau0tmZpguAcWfrESl4SK7bg0c+IJZHZw8T8Fkpo44T4oWj03/x+uWjpphOfFPux6nAiF4+bRxFZnoUMvhe/WGX13Yxf0w3mymRyZXeSDyb0KF32Vy9hVh+0nVAIRtzwCc82aFtVdlJi9wW54tUwUlMkVFjVylJRNif37FwRd65BNp2eoN7v2ITdZ+uWLGs3HJZKp+xLTHMZ3CZMkLyNsbdwyD5VAsD3dFB49W2voSC9DN5xlUWPp4m7TbNifa8b7nuQKP8p2FaVdr3YWc= trainee@redhat9.ittraining.loc +ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABgQDSBgNBWkHU0UWXablPEQLRXjcdG7WYN0651bSh122wAMpMo5j3Jjlxm+tCKILpU5kjmpLIC+YCVw3nNr2e8RxIucxfEy1NIXrrCS0Ps3t5zsdsta/Z716BvX0x4tRuKqLPOMmwLWyvjYG4ixnECNSJTnHOmj122wxpdBX6HWJpJ+61NIvOnI+fAGTU6nPmb0jkanNT/HZ27eDlqo88gNAXrRSt/Uc1bglNue5NGKn2TcuUEIau0tmZpguAcWfrESl4SK7bg0c+IJZHZw8T8Fkpo44T4oWj03/x+uWjpphOfFPux6nAiF4+bRxFZnoUMvhe/WGX13Yxf0w3mymRyZXeSDyb0KF32Vy9hVh+0nVAIRtzwCc82aFtVdlJi9wW54tUwUlMkVFjVylJRNif37FwRd65BNp2eoN7v2ITdZ+uWLGs3HJZKp+xLTHMZ3CZMkLyNsbdwyD5VAsD3dFB49W2voSC9DN5xlUWPp4m7TbNifa8b7nuQKP8p2FaVdr3YWc= trainee@redhat9.ittraining.loc 
-ssh- dss AAAAB3NzaC1kc3MAAACBAOlvM/inrDQNvmCMcWH4eTNud6egbiG4XysF++2If9Dx89mW8RWZmlvyiV8wRf71UyHHdiiBc/3SkYrka04l65F3GYH8BQ0jiaf4WpzTvn1uuEjS2kO3+vrXW1JxYlWiOYyb44eufnrxK+qia6FkhC6Wmn6xnibmbwkBeXTXOQp7AAAAFQCYu7xH3JreaiS4bYuZ1b3MV4IAmQAAAIEApEwhXE8jn2SWk/tpQKkX5dATCa1K5T+XMEzunjeEr+w1F1tapptOFaaujmZeelNgBYT4LauNYRu5TuXmoDpOp2q1puQKmGjW3b6bQRN0Palo/rcPlI6NN3Efm242vhspWEl4fjYFoVxPfaG0ysTwjOmgM4TamcxgrYDclDc0hNUAAACBAJrqqa12g422N6YRw3CXbyMwSv2xagX09YjwvsbDBMyCJtqoDg+6YavISLU3VQYJ+FmzBzObS2lkzk0yGMgqKOmnRIPaPi3HmpSPXp7828BU4lTsN4yv6zp4C1MIazvnE2rqBIVy1ZhCt9ADiCHZrRY2M/CzljfUhi/LinnznFVs trainee@redhat9.ittraining.loc+ssh-dss AAAAB3NzaC1kc3MAAACBAOlvM/inrDQNvmCMcWH4eTNud6egbiG4XysF++2If9Dx89mW8RWZmlvyiV8wRf71UyHHdiiBc/3SkYrka04l65F3GYH8BQ0jiaf4WpzTvn1uuEjS2kO3+vrXW1JxYlWiOYyb44eufnrxK+qia6FkhC6Wmn6xnibmbwkBeXTXOQp7AAAAFQCYu7xH3JreaiS4bYuZ1b3MV4IAmQAAAIEApEwhXE8jn2SWk/tpQKkX5dATCa1K5T+XMEzunjeEr+w1F1tapptOFaaujmZeelNgBYT4LauNYRu5TuXmoDpOp2q1puQKmGjW3b6bQRN0Palo/rcPlI6NN3Efm242vhspWEl4fjYFoVxPfaG0ysTwjOmgM4TamcxgrYDclDc0hNUAAACBAJrqqa12g422N6YRw3CXbyMwSv2xagX09YjwvsbDBMyCJtqoDg+6YavISLU3VQYJ+FmzBzObS2lkzk0yGMgqKOmnRIPaPi3HmpSPXp7828BU4lTsN4yv6zp4C1MIazvnE2rqBIVy1ZhCt9ADiCHZrRY2M/CzljfUhi/LinnznFVs trainee@redhat9.ittraining.loc
 ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKzhdX1reo1vStZd/lfAQ1Yjz7eo0qj7ir/f6jyGp4iG trainee@redhat9.ittraining.loc ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIKzhdX1reo1vStZd/lfAQ1Yjz7eo0qj7ir/f6jyGp4iG trainee@redhat9.ittraining.loc
  
Menu