Ceci est une ancienne révision du document !


Test accés SSH a un serveur

Connaitre l'adresse IP du serveur

Dans une console sur le serveur utiliser ifconfig

thierry@binova-srv:~$ ifconfig
enp3s8: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
        inet 192.168.1.190  netmask 255.255.255.0  broadcast 192.168.1.255
        inet6 fd00::1:213:72ff:fec3:6591  prefixlen 64  scopeid 0x0<global>
        inet6 fe80::213:72ff:fec3:6591  prefixlen 64  scopeid 0x20<link>
        ether 00:13:72:c3:65:91  txqueuelen 1000  (Ethernet)
        RX packets 432  bytes 387301 (387.3 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 352  bytes 32230 (32.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
 
lo: flags=73<UP,LOOPBACK,RUNNING>  mtu 65536
        inet 127.0.0.1  netmask 255.0.0.0
        inet6 ::1  prefixlen 128  scopeid 0x10<host>
        loop  txqueuelen 1000  (Boucle locale)
        RX packets 96  bytes 7216 (7.2 KB)
        RX errors 0  dropped 0  overruns 0  frame 0
        TX packets 96  bytes 7216 (7.2 KB)
        TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0

On peut voir dans cette exemple que l'adresse IP du serveur est 192.168.1.190

Se connecter depuis Windows

Dans une console CMD de windows taper la commande ssh: ssh user@adresse_ip

C:\Users\Thierry>ssh thierry@192.168.1.190
The authenticity of host '192.168.1.190 (192.168.1.190)' can't be established.
ECDSA key fingerprint is SHA256:FIYtr75nf55SIIjAd1SUnmJLq/VvlK+D2+Uw0VRwrcc.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.190' (ECDSA) to the list of known hosts.
thierry@192.168.1.190's password:
Welcome to Ubuntu 18.04.1 LTS (GNU/Linux 4.15.0-38-generic x86_64)
 
 * Documentation:  https://help.ubuntu.com
 * Management:     https://landscape.canonical.com
 * Support:        https://ubuntu.com/advantage
 
  System information as of Sat Nov  3 11:45:08 CET 2018
 
  System load:  0.0                Processes:             111
  Usage of /:   0.2% of 912.94GB   Users logged in:       1
  Memory usage: 4%                 IP address for enp3s8: 192.168.1.190
  Swap usage:   0%
Vous pourriez laisser un commentaire si vous étiez connecté.