Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 03/01/2017, à 20:13

PigiBouxx

Connexion SSH raspberry PI

Bonjour,
J'ai un Raspberry PI model 2, et j'ai besoin dit acceder par une liaison SSH, mais je recontre un Probleme, je suis sur une liveBox
Donc enfaite j'ai ouvert les ports 22 ce qui me donne sa:

Secure Shell Server (SSH)    22   22   TCP   raspberrypi

L'ip de ma Box: 81.253.xxx.x
Et donc enfaite je ne comprend pas ce qui bloque j'ai utilisé Nmap et il m'a dis que la laison y etait, localhost ------ 192.168.1.28  port 22 donc je sais que c'est local mais quand je mets l'ip dns de la box je ne vois plus le raspberry

Si quelqu'un a une idée ? big_smile
Merci

Hors ligne

#2 Le 03/01/2017, à 20:17

J5012

Re : Connexion SSH raspberry PI

l'ip dns de la boxlive doit rester dans la configuration de la passerelle, et meme etre automatiquement renseigné par la boxlive lors de l'allocation dhcp du rpi par la boxlive

Hors ligne

#3 Le 03/01/2017, à 20:30

PigiBouxx

Re : Connexion SSH raspberry PI

Mais comment je fais sa?
car je crois que l'ip passerelle c'est un truc comme sa: 192.168.1.1 ?
j'ai un serveur serveur DHCP IPv4 sa gene ?

Hors ligne

#4 Le 03/01/2017, à 20:42

J5012

Re : Connexion SSH raspberry PI

donne le contenu de

cat /etc/network/interfaces

tu devrais obtenir un contenu du meme :

auto eth0
iface eth0 inet dhcp
gateway 192.168.1.1

et normalement les eventuels dns indiqués dans /etc/resolv.conf ne derangent rien du tout ...

que se passe-t-il quand tu fais

ssh login:pass@ip_machine

Hors ligne

#5 Le 03/01/2017, à 21:15

PigiBouxx

Re : Connexion SSH raspberry PI

Oui voila le contenu

# interfaces(5) file used by ifup(8) and ifdown(8)
#Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
gateway 192.168.1.1
allow-hotplug wlan0
iface wlan0 inet manual
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

allow-hotplug wlan1
iface wlan1 inet manual

Hors ligne

#6 Le 03/01/2017, à 21:18

PigiBouxx

Re : Connexion SSH raspberry PI

Starting Nmap 7.40 ( https://nmap.org ) at 2017-01-03 21:16 Paris, Madrid

NSE: Loaded 143 scripts for scanning.

NSE: Script Pre-scanning.

Initiating NSE at 21:16

Completed NSE at 21:16, 0.00s elapsed

Initiating NSE at 21:16

Completed NSE at 21:16, 0.00s elapsed

Initiating Ping Scan at 21:16

Scanning 81.253.xxx.x[4 ports]

Completed Ping Scan at 21:17, 2.25s elapsed (1 total hosts)

Nmap scan report for 81.253.xxx.x [host down]

NSE: Script Post-scanning.

Initiating NSE at 21:17

Completed NSE at 21:17, 0.00s elapsed

Initiating NSE at 21:17

Completed NSE at 21:17, 0.00s elapsed

Read data files from: C:\Program Files (x86)\Nmap

Note: Host seems down. If it is really up, but blocking our ping probes, try -Pn

Nmap done: 1 IP address (0 hosts up) scanned in 5.02 seconds

           Raw packets sent: 8 (304B) | Rcvd: 0 (0B)

Je vois pas le Raspberry, c'est normal ?

Hors ligne

#7 Le 05/01/2017, à 11:41

J5012

Re : Connexion SSH raspberry PI

oui parce que ton scan nmap se fait sur le segment de l'ip public de ta livebox, alors que ton rpi se trouve sur un segment ip local ...

que donne ssh ?

Hors ligne

#8 Le 05/01/2017, à 15:47

ikoula

Re : Connexion SSH raspberry PI

Bonjour,

Attend on va reprendre du début si tu veux bien,

1/ Ton rasp tu veux y accéder depuis l'interne ou depuis l'externe ?

2/ Que te retourne la commande ci dessous
ifconfig

Dernière modification par ikoula (Le 05/01/2017, à 15:48)


Thomas | Community manager | ikoula Serveurs dédiés, VPS et Cloud Public
Contactez-nous | Suivez-nous sur Twitter | Likez nous sur Facebook

Hors ligne