SSH Connection funktioniert auf einmal nicht mehr.

Warum Debian und/oder eine seiner Spielarten? Was muss ich vorher wissen? Wo geht es nach der Installation weiter?
Antworten
Ework
Beiträge: 401
Registriert: 11.07.2006 02:33:41
Wohnort: Heidelberg

SSH Connection funktioniert auf einmal nicht mehr.

Beitrag von Ework » 02.03.2007 17:53:42

Hallo,
Ich verwende debian testing.
nach 13 Tagen hab ich mein Debian PC der auch als Router für alle anderen dient mit poweroff ausgeschaltet um mir das cdrom dort auszubauen.
Danach hab ich ihn wieder eingeschaltet.

Das Internet funktioniert. Das heist ich kann vom anderen PC aus surfen und der Debian server leitet das weiter.

Leider geht auf einmal nicht mehr ssh connection.
Auch alle crontab aufträge werden nicht mehr gestartet.

als ich direkt am debian router
/etc/init.d/ssh restart
eintippte ging das ohne fehler.

Trotzdem komm ich nicht von mein windows pc per ssh auf meinem router...
Der Port stimmt auch ich hab mir nochmalig die ssh config angeschaut.

Hat das mit irgendeinem update zu tun was im testing angeboten wurde?
ich habe immer fleissig jedentag geupdatet...

Es funktioniert auch nicht mehr:
phpsysinfo über intranet ip
bekomme keinen zugriff mehr wenn ich einen usernamen mit intranet ip angebe so das mir der inhalt vom public_html gezeigt wird.
crontabs werden alle nicht mehr gestartet.

slu
Beiträge: 2246
Registriert: 23.02.2005 23:58:47

Beitrag von slu » 02.03.2007 19:09:44

Hi Ework,

schon mal in die Syslog geschaut?
Gruß
slu

Das Server Reinheitsgebot:
Debian Bookworm, sonst nichts.

Stolzer Gewinner der Jessie Release Wette:
https://wiki.debianforum.de/Jessie_Release_Wette#SIEGER

Ework
Beiträge: 401
Registriert: 11.07.2006 02:33:41
Wohnort: Heidelberg

Beitrag von Ework » 02.03.2007 20:22:03

slu hat geschrieben:Hi Ework,

schon mal in die Syslog geschaut?
ja alles leer.
ich hab aber ssh mit /usr/sbin/sshd zum laufen bekommen.

aber schaut euch mal das hier an die meisten sachen haben 0 byte darunter auch der ssh...:

Code: Alles auswählen

selma:~# ls -lha /etc/init.d/
insgesamt 170K
drwxr-xr-x   2 root root 3,0K 2007-02-28 01:10 .
drwxr-xr-x 115 root root 6,0K 2007-03-02 18:44 ..
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 apache2
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 atd
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 autofs
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 boinc-client
-rwxr-xr-x   1 root root 5,0K 2006-09-20 13:36 bootclean
-rwxr-xr-x   1 root root 2,1K 2006-09-12 23:42 bootlogd
-rwxr-xr-x   1 root root 1,9K 2006-09-20 13:29 bootmisc.sh
-rwxr-xr-x   1 root root 2,9K 2006-09-14 10:21 checkfs.sh
-rwxr-xr-x   1 root root 9,4K 2006-09-20 12:16 checkroot.sh
-rwxr-xr-x   1 root root 6,0K 2006-09-05 18:15 console-screen.sh
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 cron
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 cupsys
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 dbus
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 dbus-1
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 ddclient
-rwxr-xr-x   1 root root 5,9K 2006-10-23 16:52 discover
-rwxr-xr-x   1 root root 1,2K 2006-10-07 22:39 dns-clean
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 exim4
-rwxr-xr-x   1 root root 5,7K 2006-11-05 01:19 glibc.sh
-rwxr-xr-x   1 root root 1,4K 2007-01-13 19:52 halt
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 hddtemp
-rwxr-xr-x   1 root root 9,0K 2006-10-25 17:25 hdparm
-rwxr-xr-x   1 root root 1,3K 2006-09-12 22:46 hostname.sh
-rwxr-xr-x   1 root root 3,3K 2005-03-20 02:51 hotplug
-rwxr-xr-x   1 root root  359 2005-03-20 15:09 hotplug-net
-rwxr-xr-x   1 root root 3,5K 2005-09-18 09:04 hwclockfirst.sh
-rwxr-xr-x   1 root root 3,8K 2007-01-17 20:02 hwclock.sh
-rwxr-xr-x   1 root root 2,5K 2006-09-15 20:03 ifupdown
-rwxr-xr-x   1 root root 1,1K 2006-09-15 20:03 ifupdown-clean
-rwxr-xr-x   1 root root  222 2007-02-02 22:32 inetd
-rwxr-xr-x   1 root root  658 2005-04-11 00:35 initrd-tools.sh
-rwxr-xr-x   1 root root  500 2000-01-01 13:09 joystick
-rwxr-xr-x   1 root root 3,5K 2006-10-16 05:38 keymap.sh
-rwxr-xr-x   1 root root  944 2006-09-12 23:42 killprocs
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 klogd
-rwxr-xr-x   1 root root  417 2006-08-09 00:38 libdevmapper1.02
-rwxr-xr-x   1 root root  421 2006-09-29 02:06 lm-sensors
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 makedev
-rwxr-xr-x   1 root root 1,8K 2006-11-14 12:12 module-init-tools
-rwxr-xr-x   1 root root  737 2006-06-03 21:20 modutils
-rwxr-xr-x   1 root root  617 2006-01-12 01:35 mountall-bootclean.sh
-rwxr-xr-x   1 root root 1,7K 2006-09-12 09:14 mountall.sh
-rwxr-xr-x   1 root root 2,2K 2006-10-03 20:26 mountdevsubfs.sh
-rwxr-xr-x   1 root root 2,4K 2006-09-25 10:42 mountkernfs.sh
-rwxr-xr-x   1 root root  615 2006-01-12 01:35 mountnfs-bootclean.sh
-rwxr-xr-x   1 root root 2,3K 2006-11-26 15:47 mountnfs.sh
-rwxr-xr-x   1 root root 3,6K 2006-11-26 16:15 mtab.sh
-rwxr-xr-x   1 root root 2,5K 2007-01-06 16:36 networking
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 nfs-common
-rwxr-xr-x   1 root root 2,6K 2006-10-15 14:13 nviboot
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 oidentd
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 openbsd-inetd
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 portmap
-rwxr-xr-x   1 root root  375 2006-12-18 21:18 pppd-dns
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 pppstatus
-rwxr-xr-x   1 root root  571 2005-03-18 05:07 pppstatus-clean
-rwxr-xr-x   1 root root  997 2006-09-13 03:42 procps.sh
-rwxr-xr-x   1 root root 7,9K 2006-11-27 23:23 rc
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 rc.local
-rwxr-xr-x   1 root root  117 2005-12-02 18:44 rcS
-rw-r--r--   1 root root 1,4K 2006-09-13 08:10 README
-rwxr-xr-x   1 root root  655 2006-09-12 23:42 reboot
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 rmnologin
-rwxr-xr-x   1 root root  433 2004-11-14 19:26 screen-cleanup
-rwxr-xr-x   1 root root 1,4K 2006-11-26 19:38 sendsigs
-rwxr-xr-x   1 root root  585 2006-01-17 11:42 single
-rw-r--r--   1 root root 4,1K 2006-09-12 23:32 skeleton
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 smartmontools
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 snmpd
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 ssh
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 stop-bootlogd
-rwxr-xr-x   1 root root  730 2006-10-02 19:44 stop-bootlogd-single
-rwxr-xr-x   1 root root  541 2006-04-06 21:58 sudo
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 sysklogd
-rwxr-xr-x   1 root root 8,0K 2006-12-19 11:21 udev
-rwxr-xr-x   1 root root 1,3K 2006-03-28 09:44 udev-mtab
-rwxr-xr-x   1 root root 3,2K 2006-11-25 10:23 umountfs
-rwxr-xr-x   1 root root 2,1K 2006-11-26 19:38 umountnfs.sh
-rwxr-xr-x   1 root root 1,1K 2006-09-22 17:47 umountroot
-rwxr-xr-x   1 root root 1,8K 2006-09-12 23:42 urandom
-rwxr-xr-x   1 root root 1,8K 2006-05-17 04:36 x11-common
-rwxr-xr-x   1 root root 2,0K 2006-10-02 21:41 xfree86-common
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 xfs
-rwxr-xr-x   1 root root    0 2007-02-21 16:27 xinetd
jemand eine idee?

Benutzeravatar
GoKi
Beiträge: 2068
Registriert: 04.07.2003 23:08:56
Lizenz eigener Beiträge: MIT Lizenz

Beitrag von GoKi » 02.03.2007 22:33:01

Wie schaut die Ausgabe von aus?
MfG GoKi
:wq

Ework
Beiträge: 401
Registriert: 11.07.2006 02:33:41
Wohnort: Heidelberg

Beitrag von Ework » 02.03.2007 22:50:26

GoKi hat geschrieben:Wie schaut die Ausgabe von aus?

Code: Alles auswählen

Dateisystem          1K-Blöcke   Benutzt Verfügbar Ben% Eingehängt auf
/dev/hda1               255912    147199     95060  61% /
tmpfs                   193440         0    193440   0% /lib/init/rw
udev                     10240        60     10180   1% /dev
tmpfs                   193440         0    193440   0% /dev/shm
/dev/hda9             67812952  59733668   4634548  93% /home
/dev/hda8               369000      8245    341095   3% /tmp
/dev/hda5              4807056   2140928   2421944  47% /usr
/dev/hda6              2885780    163328   2575864   6% /var
Was bringt den df ?

Benutzeravatar
hkalegre
Beiträge: 286
Registriert: 11.11.2005 14:32:08

Beitrag von hkalegre » 02.03.2007 23:25:28

Die Konfig solltest du prüfen:
/etc/ssh/sshd_config

Steht da vielleicht
PasswordAuthentication no
?

gms
Beiträge: 7798
Registriert: 26.11.2004 20:08:38
Lizenz eigener Beiträge: MIT Lizenz

Beitrag von gms » 02.03.2007 23:26:31

Ework hat geschrieben: aber schaut euch mal das hier an die meisten sachen haben 0 byte darunter auch der ssh...:
würde gerne wissen, was da am 21. Februar um 16:27 passiert ist 8O

aber installiere dir die Pakete einfach nochmal, dann sollte das wieder in Ordnung sein

Code: Alles auswählen

aptitude reinstall PAKETE...
oder

Code: Alles auswählen

apt-get --reinstall install PAKETE...
Gruß
gms

edit: hier habe ich dir noch eine Liste der problematischen Pakete erstellt:

Code: Alles auswählen

root@gms1:~# awk '$5~/^0$/ {print$8}' x.txt | while read f; do dlocate /etc/init.d/$f; done | awk -F: '{print$1}' | sort -u
at
autofs
cron
cupsys
dbus
exim4-base
initscripts
makedev
openbsd-inetd
openssh-server
pppstatus
smartmontools

Ework
Beiträge: 401
Registriert: 11.07.2006 02:33:41
Wohnort: Heidelberg

Beitrag von Ework » 03.03.2007 00:04:42

dank dir aber ich will nu debian neu installieren. hab das gefühl das da jemand druf ist.

gibt es irgendwo eine netinstall die gleich testing hat? auf stable möcht ich net.

bei debian.de finde ich kein testing image...

Ich hab hier nur cd brenner. also brauch ich eine cd keine dvd

Benutzeravatar
Tintom
Moderator
Beiträge: 3070
Registriert: 14.04.2006 20:55:15
Wohnort: Göttingen

Beitrag von Tintom » 03.03.2007 00:18:09

Ework hat geschrieben:dank dir aber ich will nu debian neu installieren. hab das gefühl das da jemand druf ist.

gibt es irgendwo eine netinstall die gleich testing hat? auf stable möcht ich net.

bei debian.de finde ich kein testing image...

Ich hab hier nur cd brenner. also brauch ich eine cd keine dvd
Guck hier: http://www.debian.de/devel/debian-installer/

gms
Beiträge: 7798
Registriert: 26.11.2004 20:08:38
Lizenz eigener Beiträge: MIT Lizenz

Beitrag von gms » 03.03.2007 00:18:27


Ework
Beiträge: 401
Registriert: 11.07.2006 02:33:41
Wohnort: Heidelberg

Beitrag von Ework » 03.03.2007 01:38:53

gms hat geschrieben:ja, gibt es http://www.debian.de/devel/debian-installer/
dank dir sehr ;)

Antworten