Beiträge von silentcat
-
-
bei `ssh user@netcup 'bash --debug'` kommt gar nix, wenn ich `ls` ausführe, dann sehe ich meine lokalen Dateien
Code
Alles anzeigen$ ls -al total 28 drwxrwxr-x 2 user user 4096 Dez 19 11:47 . drwxrwxrwt 155 root root 20480 Dez 19 11:47 .. $ touch localfile.txt $ ls -al total 28 drwxrwxr-x 2 user user 4096 Dez 19 11:48 . drwxrwxrwt 155 root root 20480 Dez 19 11:47 .. -rw-rw-r-- 1 user user 0 Dez 19 11:48 localfile.txt $ ssh netcup Linux ae88e 5.10.0-15-amd64 #1 SMP Debian 5.10.120-1 (2022-06-09) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Dec 19 11:46:17 2024 from 212.... Connection to xxxx.ae88e.netcup.net closed. $ ssh netcup 'bash --debug' $ ls -al total 28 drwxrwxr-x 2 user user 4096 Dez 19 11:48 . drwxrwxrwt 155 root root 20480 Dez 19 11:47 .. -rw-rw-r-- 1 user user 0 Dez 19 11:48 localfile.txt $ ssh netcup -t 'ls -al' Connection to xxxx.ae88e.netcup.net closed. -
-
-
brauchst du nicht auch noch den User vor deinem Netcup?
ssh xxxxx@netcup
Habs mit und ohne probiert in der Config
Aber selbst mit
bekomm ichs nicht hin. Bei dem Befehl gebe ich direkt den User + Private Key mit.
Wie gesagt, ich kann mich ja einloggen, werde aber sofort ausgeloggt! Das müsste doch, meinem Verständnis nach, irgendwo bei netcup liegen?
-
Ich werfe das einfach mal hier rein. SSH ist erlaubt?
Ja, ist erlaubt, /bin/bash chroot oder so stand drin, ich find die Option leider nicht gerade, aber hab ich heute schon überprüft
Auch hier die Frage: spuckt Debuglog mehr Infos aus?
ssh -vvv user@host
Da steht eine ganze Menge, ich poste mal den (meiner Meinung nach) relevanten Teil hier rein, also ab der erfolgreichen Authentifizierung:
Code
Alles anzeigenLinux ae88e 5.10.0-15-amd64 #1 SMP Debian 5.10.120-1 (2022-06-09) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Dec 12 14:37:02 2024 from [Meine IP] debug3: receive packet: type 98 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug3: receive packet: type 98 debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 debug2: channel 0: rcvd eow debug2: chan_shutdown_read: channel 0: (i0 o0 sock -1 wfd 4 efd 6 [write]) debug2: channel 0: input open -> closed debug3: receive packet: type 96 debug2: channel 0: rcvd eof debug2: channel 0: output open -> drain debug2: channel 0: obuf empty debug2: chan_shutdown_write: channel 0: (i3 o1 sock -1 wfd 5 efd 6 [write]) debug2: channel 0: output drain -> closed debug3: receive packet: type 97 debug2: channel 0: rcvd close debug3: channel 0: will not send data after close debug2: channel 0: almost dead debug2: channel 0: gc: notify user debug2: channel 0: gc: user detached debug2: channel 0: send close debug3: send packet: type 97 debug2: channel 0: is dead debug2: channel 0: garbage collecting debug1: channel 0: free: client-session, nchannels 1 debug3: channel 0: status: The following connections are open: #0 client-session (t4 [session] r0 i3/0 o3/0 e[write]/0 fd -1/-1/6 sock -1 cc -1 io 0x00/0x00) debug3: send packet: type 1 Connection to xxxx.ae88e.netcup.net closed. Transferred: sent 4564, received 4072 bytes, in 0.1 seconds Bytes per second: sent 70929.0, received 63282.8 debug1: Exit status 1 -
Hallo, ich habe mich schon länger nicht via SSH eingeloggt. Neulich probierte ich es wieder, aber leider
Code
Alles anzeigen$ ssh netcup Linux ae88e 5.10.0-15-amd64 #1 SMP Debian 5.10.120-1 (2022-06-09) x86_64 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Thu Dec 12 13:20:37 2024 from [meine IP] Connection to xxxx.ae88e.netcup.net closed.Hier der Abschnitt meiner lokalen SSH-Config auf meinem PC für Netcup
CodeHost netcup HostName xxxx.ae88e.netcup.net PreferredAuthentications publickey IdentityFile ~/.ssh/netcupIch komme anscheinend per SSH hinein, sehe auch die Begrüßung mit letzter Login-Zeit... aber weiter nicht. Verbindung wird immer sofort geschlossen.
Der Vollständigkeit halber: ich habe etwa 10 Server, die ich regelmäßig per SSH "besuche", die Config ist immer nach obigem Schema, bei allen anderen funktioniert der Login.
Leider finde ich keinerlei Logs, in denen ich überprüfen könnte, was ich falsch gemacht haben könnte.. Möglicherweise hängt es damit zusammen, dass ich SSH Keys für Github eingetragen habe, um div. Projekte automatisch zu pullen. Mehr fällt mir nicht ein, woran es liegen könnte!
Für sachdienliche Hinweise bin ich dankbar
