grzempa@d104747:~$ cat /etc/default/ssh
# Default settings for openssh-server. This file is sourced by /bin/sh from
# /etc/init.d/ssh.
# Options to pass to sshd
SSHD_OPTS=
Jak widać, serwer nie ma wpisanych dodatkowych opcji, zatem o co może chodzić? Borykam się jeszcze z TYM. Może ma to związek?
No chodzi, inaczej nie mogłbym działać zdalnie (to serwer w serwerowni, pracuje tylko zdalnie). Porblem w tym, że nie moge wyłączyć poprzez skrypt sshd. Nawet nie moge wyłączyć usługi:
Jeśli możesz się zalogować, co oznacza, że działa a nie widać go aby nasłuchiwał na portach to obstawiam, że jest uruchamiany z inetd a nie jako standalone serwis.
Co to w ogóle za Debian, potato? Openssh w wersji 2.9...
Niestety netstat nie poniał przełącznika -p (u mnie wyświetla nazwy procesów odpowiedzialnych za otarcie poszczególnych portów). W inetd nadzieja (niegdyś był dość popularny).
Jeśli możesz się zalogować, co oznacza, że działa a nie widać go aby nasłuchiwał na portach to obstawiam, że jest uruchamiany z inetd a nie jako standalone serwis.
user@d104747:~$ sudo cat /etc/inetd.conf
Password:
# /etc/inetd.conf: see inetd(8) for further informations.
#
# Internet server configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#echo stream tcp nowait root internal
#echo dgram udp wait root internal
#chargen stream tcp nowait root internal
#chargen dgram udp wait root internal
#discard stream tcp nowait root internal
#discard dgram udp wait root internal
#daytime stream tcp nowait root internal
#daytime dgram udp wait root internal
#time stream tcp nowait root internal
#time dgram udp wait root internal
#:STANDARD: These are standard services.
#<off># ftp stream tcp nowait root /usr/sbin/tcpd /usr/sbin/proftpd
#:BSD: Shell, login, exec and talk are BSD protocols.
#:MAIL: Mail, news and uucp services.
#:INFO: Info services
ident stream tcp wait identd /usr/sbin/identd identd
#:BOOT: Tftp service is provided primarily for booting. Most sites
# run this only on machines acting as "boot servers."
#:RPC: RPC based services
#:HAM-RADIO: amateur-radio services
#:OTHER: Other services
user@d104747:~$
Chyba jednak nie..
Co to w ogóle za Debian, potato? Openssh w wersji 2.9...
Niestety netstat nie poniał przełącznika -p (u mnie wyświetla nazwy procesów odpowiedzialnych za otarcie poszczególnych portów). W inetd nadzieja (niegdyś był dość popularny).
user@d104747:~$ sudo cat /proc/version
Linux version 2.6.18-6-686 (Debian 2.6.18.dfsg.1-18etch1) (waldi@debian.org) (gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)) #1 SMP Sun Feb 10 22:11:31 UTC 2008