Mijn vraag
Ik kan geen verbinding meer krijgen met mijn Raspberry Pi via SSH. Ondanks dat het de juiste inloggegevens zijn. Wat kan ik nog controleren of uitproberen?
Relevante software en hardware die ik gebruik
Gebruik mijn Macbook M1 en terminal.
Wat ik al gevonden of geprobeerd heb
Ik heb al meerdere keren de SDcard geflashed met verschillende distro's. Dietpi en Raspian werken niet. Ondanks dat ik bij Dietpi de standaard login gegevens gebruik en dat er bij Dietpi standaard SSH aan staat.
Bij de Raspian distro heb ik geprobeerd om de SSH gegevens via Raspberry Pi Imager automatisch in te stellen. Ook heb ik dit handmatig geprobeerd door via touch het bestand "ssh" in de boot folder te plaatsen.
Al meerdere keren het bestand ssh_known_hosts verwijderd maar ook dit hielp niet.
Kan wel via SSH verbinding maken met mijn andere Raspberry Pi waar Home Assistant op draait. En heb van beide de log vergeleken via ssh -v maar kan niet echt zien wat er anders is.
Heb ook geprobeerd om via een andere device de ssh verbinding te maken. Maar dat lukt ook niet.
onderstaande is de log van ssh -v.
Resultaat van nmap om te kijken of port open is
Ik kan geen verbinding meer krijgen met mijn Raspberry Pi via SSH. Ondanks dat het de juiste inloggegevens zijn. Wat kan ik nog controleren of uitproberen?
Relevante software en hardware die ik gebruik
Gebruik mijn Macbook M1 en terminal.
Wat ik al gevonden of geprobeerd heb
Ik heb al meerdere keren de SDcard geflashed met verschillende distro's. Dietpi en Raspian werken niet. Ondanks dat ik bij Dietpi de standaard login gegevens gebruik en dat er bij Dietpi standaard SSH aan staat.
Bij de Raspian distro heb ik geprobeerd om de SSH gegevens via Raspberry Pi Imager automatisch in te stellen. Ook heb ik dit handmatig geprobeerd door via touch het bestand "ssh" in de boot folder te plaatsen.
Al meerdere keren het bestand ssh_known_hosts verwijderd maar ook dit hielp niet.
Kan wel via SSH verbinding maken met mijn andere Raspberry Pi waar Home Assistant op draait. En heb van beide de log vergeleken via ssh -v maar kan niet echt zien wat er anders is.
Heb ook geprobeerd om via een andere device de ssh verbinding te maken. Maar dat lukt ook niet.
onderstaande is de log van ssh -v.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
| OpenSSH_9.0p1, LibreSSL 3.3.6 debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 21: include /etc/ssh/ssh_config.d/* matched no files debug1: /etc/ssh/ssh_config line 54: Applying options for * debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling debug1: Connecting to 192.168.10.101 [192.168.10.101] port 22. debug1: Connection established. debug1: identity file /Users/marcel/.ssh/id_rsa type 0 debug1: identity file /Users/marcel/.ssh/id_rsa-cert type -1 debug1: identity file /Users/marcel/.ssh/id_ecdsa type -1 debug1: identity file /Users/marcel/.ssh/id_ecdsa-cert type -1 debug1: identity file /Users/marcel/.ssh/id_ecdsa_sk type -1 debug1: identity file /Users/marcel/.ssh/id_ecdsa_sk-cert type -1 debug1: identity file /Users/marcel/.ssh/id_ed25519 type -1 debug1: identity file /Users/marcel/.ssh/id_ed25519-cert type -1 debug1: identity file /Users/marcel/.ssh/id_ed25519_sk type -1 debug1: identity file /Users/marcel/.ssh/id_ed25519_sk-cert type -1 debug1: identity file /Users/marcel/.ssh/id_xmss type -1 debug1: identity file /Users/marcel/.ssh/id_xmss-cert type -1 debug1: identity file /Users/marcel/.ssh/id_dsa type -1 debug1: identity file /Users/marcel/.ssh/id_dsa-cert type -1 debug1: Local version string SSH-2.0-OpenSSH_9.0 debug1: Remote protocol version 2.0, remote software version OpenSSH_8.4p1 Raspbian-5+deb11u1 debug1: compat_banner: match: OpenSSH_8.4p1 Raspbian-5+deb11u1 pat OpenSSH* compat 0x04000000 debug1: Authenticating to 192.168.10.101:22 as 'pi' debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: algorithm: curve25519-sha256 debug1: kex: host key algorithm: ssh-ed25519 debug1: kex: server->client cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: kex: client->server cipher: chacha20-poly1305@openssh.com MAC: <implicit> compression: none debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: SSH2_MSG_KEX_ECDH_REPLY received debug1: Server host key: ssh-ed25519 SHA256:66uy/EO8iTPkBVm98R3N0puUytxm829gqWHL1yfZ85k debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts: No such file or directory debug1: load_hostkeys: fopen /etc/ssh/ssh_known_hosts2: No such file or directory debug1: Host '192.168.10.101' is known and matches the ED25519 host key. debug1: Found key in /Users/marcel/.ssh/known_hosts:5 debug1: rekey out after 134217728 blocks debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: rekey in after 134217728 blocks debug1: get_agent_identities: bound agent to hostkey debug1: get_agent_identities: ssh_fetch_identitylist: agent contains no identities debug1: Will attempt key: /Users/marcel/.ssh/id_rsa RSA SHA256:tgcoOd9xX2KQCi0Tif9pkFSvXaaKDDtSBfUJbsA7cGI debug1: Will attempt key: /Users/marcel/.ssh/id_ecdsa debug1: Will attempt key: /Users/marcel/.ssh/id_ecdsa_sk debug1: Will attempt key: /Users/marcel/.ssh/id_ed25519 debug1: Will attempt key: /Users/marcel/.ssh/id_ed25519_sk debug1: Will attempt key: /Users/marcel/.ssh/id_xmss debug1: Will attempt key: /Users/marcel/.ssh/id_dsa debug1: SSH2_MSG_EXT_INFO received debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,sk-ssh-ed25519@openssh.com,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,sk-ecdsa-sha2-nistp256@openssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering public key: /Users/marcel/.ssh/id_rsa RSA SHA256:tgcoOd9xX2KQCi0Tif9pkFSvXaaKDDtSBfUJbsA7cGI debug1: Authentications that can continue: publickey,password debug1: Trying private key: /Users/marcel/.ssh/id_ecdsa debug1: Trying private key: /Users/marcel/.ssh/id_ecdsa_sk debug1: Trying private key: /Users/marcel/.ssh/id_ed25519 debug1: Trying private key: /Users/marcel/.ssh/id_ed25519_sk debug1: Trying private key: /Users/marcel/.ssh/id_xmss debug1: Trying private key: /Users/marcel/.ssh/id_dsa debug1: Next authentication method: password pi@192.168.10.101's password: debug1: Authentications that can continue: publickey,password Permission denied, please try again. pi@192.168.10.101's password: debug1: Authentications that can continue: publickey,password Permission denied, please try again. pi@192.168.10.101's password: debug1: Authentications that can continue: publickey,password debug1: No more authentication methods to try. pi@192.168.10.101: Permission denied (publickey,password). marcel@MacBook-Air-van-Marcel ~ % nssh.com,webauthn-sk-ecdsa-sha2-nistp256@openssh.com> debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering public key: /Users/marcel/.ssh/id_rsa RSA SHA256:tgcoOd9xX2KQCi0Tif9pkFSvXaaKDDtSBfUJbsA7cGI debug1: Authentications that can continue: publickey,password debug1: Trying private key: /Users/marcel/.ssh/id_ecdsa debug1: Trying private key: /Users/marcel/.ssh/id_ecdsa_sk debug1: Trying private key: /Users/marcel/.ssh/id_ed25519 debug1: Trying private key: /Users/marcel/.ssh/id_ed25519_sk debug1: Trying private key: /Users/marcel/.ssh/id_xmss debug1: Trying private key: /Users/marcel/.ssh/id_dsa debug1: Next authentication method: password pi@192.168.10.101's password: debug1: Authentications that can continue: publickey,password Permission denied, please try again. pi@192.168.10.101's password: debug1: Authentications that can continue: publickey,password Permission denied, please try again. pi@192.168.10.101's password: debug1: Authentications that can continue: publickey,password debug1: No more authentication methods to try. pi@192.168.10.101: Permission denied (publickey,password). |
Resultaat van nmap om te kijken of port open is
code:
1
2
3
4
5
6
7
8
9
| marcel@MacBook-Air-van-Marcel ~ % nmap 192.168.10.101 Starting Nmap 7.93 ( https://nmap.org ) at 2022-12-08 07:13 CET Nmap scan report for 192.168.10.101 Host is up (0.0045s latency). Not shown: 999 closed tcp ports (conn-refused) PORT STATE SERVICE 22/tcp open ssh Nmap done: 1 IP address (1 host up) scanned in 4.25 seconds |