NEWS
Permission denied Putty/Powershell [gelöst]
-
Hallo,
ich habe mir einen neuen PC mit Windows 11 geholt. Alles installiert und nun komme ich nicht auf meinen Raspberry Pi. Weder mit Putty oder Powershell. Es kommt immer Permission denied. Was mach ich falsch ?
-
@michael-schmitt sagte in Permission denied Putty/Powershell:
Was mach ich falsch ?
Passwort?
user?
pfad?
port?ohne Informationen was genau du machst schwer zu sagen
-
Es kann sein, dass dies bei einer Neuinstallation im Windows Defender explizit erlaubt werden muss.
-
@meister-mopper auch ausgehend?
hab das deswegen nicht genannt -
Es kann sein, dass Putty als Anwendung in der Firewall erlaubt werden muss.
-
-
Schalt doch mal temporär die defender firewall aus, dann siehst du, ob dort die Ursache zu finden ist.
-
Firewall aus per Powershell verbindung geht. Putty bringt jetzt ein "connection timeout"
-
@michael-schmitt sagte in Permission denied Putty/Powershell:
connection timeout
Hast du auf dem Raspberry eine Firewall laufen (z. B. ufw)? Wenn ja, muss dort der port 22 erlaubt sein.
-
Nicht das ich wüßte, den Pi hab ich ja schon paar Jahre in Betrieb, nur mein PC hab ich geändert
-
Was sagt auf dem Raspi
sudo systemctl status ssh
? -
pi@raspberrypi:~ $ sudo systemctl status ssh ● ssh.service - OpenBSD Secure Shell server Loaded: loaded (/lib/systemd/system/ssh.service; enabled; preset: enabled) Active: active (running) since Sat 2025-01-18 00:30:50 CET; 4 weeks 0 days ago Docs: man:sshd(8) man:sshd_config(5) Process: 547 ExecStartPre=/usr/sbin/sshd -t (code=exited, status=0/SUCCESS) Main PID: 564 (sshd) Tasks: 1 (limit: 3932) CPU: 550ms CGroup: /system.slice/ssh.service └─564 "sshd: /usr/sbin/sshd -D [listener] 0 of 10-100 startups" Jan 18 16:28:51 raspberrypi sshd[13971]: Accepted password for pi from 192.168.178.20 port 62021 ssh2 Jan 18 16:28:51 raspberrypi sshd[13971]: pam_unix(sshd:session): session opened for user pi(uid=1000) by (uid=0) Jan 18 16:28:52 raspberrypi sshd[13971]: pam_env(sshd:session): deprecated reading of user environment enabled Jan 18 20:47:27 raspberrypi sshd[16875]: Connection closed by 192.168.178.20 port 65137 [preauth] Jan 23 16:05:06 raspberrypi sshd[2611]: Accepted password for pi from 192.168.178.20 port 53610 ssh2 Jan 23 16:05:06 raspberrypi sshd[2611]: pam_unix(sshd:session): session opened for user pi(uid=1000) by (uid=0) Jan 23 16:05:06 raspberrypi sshd[2611]: pam_env(sshd:session): deprecated reading of user environment enabled Feb 15 16:00:16 raspberrypi sshd[9808]: Accepted password for pi from 192.168.178.76 port 50367 ssh2 Feb 15 16:00:16 raspberrypi sshd[9808]: pam_unix(sshd:session): session opened for user pi(uid=1000) by (uid=0) Feb 15 16:00:17 raspberrypi sshd[9808]: pam_env(sshd:session): deprecated reading of user environment enabled pi@raspberrypi:~ $
-
Also läuft der Dienst.
-
netstat -tulpn | grep 22
sagt? -
pi@raspberrypi:~ $ netstat -tulpn | grep 22 (Es konnten nicht alle Prozesse identifiziert werden; Informationen über nicht-eigene Prozesse werden nicht angezeigt; Root kann sie anzeigen.) tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp6 0 0 :::22 :::* LISTEN - pi@raspberrypi:~ $
-
zeig mal bitte
sudo netstat -tulpn
-
pi@raspberrypi:~ $ sudo netstat -tulpn Aktive Internetverbindungen (Nur Server) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 564/sshd: /usr/sbin tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 395/deCONZ tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 395/deCONZ tcp 0 0 127.0.0.1:6379 0.0.0.0:* LISTEN 546/redis-server 12 tcp 0 0 192.168.178.42:8084 0.0.0.0:* LISTEN 1447/io.socketio.0 tcp 0 0 127.0.0.1:9000 0.0.0.0:* LISTEN 569/iobroker.js-con tcp 0 0 127.0.0.1:9001 0.0.0.0:* LISTEN 569/iobroker.js-con tcp6 0 0 :::8087 :::* LISTEN 1520/io.simple-api. tcp6 0 0 :::8081 :::* LISTEN 788/io.admin.0 tcp6 0 0 :::8082 :::* LISTEN 1369/io.web.0 tcp6 0 0 :::8088 :::* LISTEN 816/io.admin.1 tcp6 0 0 :::22 :::* LISTEN 564/sshd: /usr/sbin tcp6 0 0 ::1:6379 :::* LISTEN 546/redis-server 12 udp 0 0 0.0.0.0:1900 0.0.0.0:* 1052/io.deconz.0 udp 0 0 0.0.0.0:1900 0.0.0.0:* 395/deCONZ udp 0 0 0.0.0.0:59302 0.0.0.0:* 390/avahi-daemon: r udp 0 0 192.168.178.42:5353 0.0.0.0:* 7997/io.tr-064.0 udp 0 0 0.0.0.0:5353 0.0.0.0:* 390/avahi-daemon: r udp6 0 0 :::1900 :::* 1052/io.deconz.0 udp6 0 0 :::1900 :::* 1052/io.deconz.0 udp6 0 0 :::1900 :::* 1052/io.deconz.0 udp6 0 0 :::47338 :::* 390/avahi-daemon: r udp6 0 0 fe80::f396:6d7a:b9a:546 :::* 516/NetworkManager udp6 0 0 :::5353 :::* 390/avahi-daemon: r pi@raspberrypi:~ $
-
Okay, für mich sieht die Konfig auf dem Raspberry richtig aus. Dann ist mein Latein leider am Ende.
-
Welche Putty Version?
-
Wenn ssh. Im pc zum Raspi per Shell geht, kann’s eigentlich nicht am Raspi liegen.
Muss also ne Einstellung am pc sein.
Startest Du Putty mit Admin rechten ?