Frage zur ssh_config

Hallo noch einmal. Ich habe jetzt 2 mal alles neu installiert und den Port 22 geändert. Aber auch nach mehrmals neu starten, öffnet er weiter nur port 22
Code:
# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.
# This sshd was compiled with PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.
Include /etc/ssh/sshd_config.d/*.conf
Protocol 2
# Port and ListenAddress options are not used when sshd is socket-activated,
# which is now the default in Ubuntu.  See sshd_config(5) and
# /usr/share/doc/openssh-server/README.Debian.gz for details.
Port 1369
AddressFamily inet
#ListenAddress 0.0.0.0
#ListenAddress ::
#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_ecdsa_key
#HostKey /etc/ssh/ssh_host_ed25519_key
# Ciphers and keying
#RekeyLimit default none
# Logging
#SyslogFacility AUTH
#LogLevel INFO
# Authentication:
#LoginGraceTime 2m
PermitRootLogin no
StrictModes yes
MaxAuthTries 6
MaxSessions 10
 
Last edited by a moderator:
ich habe gerade den Befehl sudo ss -tlpn eingegeben und dort steht der Port 22 noch drin
[sudo] password for sven:
Code:
State                       Recv-Q                      Send-Q                                           Local Address:port                                            Peer Address:port                      Process                                                        

LISTEN                      0                           4096                                                127.0.0.54:53                                                   0.0.0.0:*                          users:(("systemd-resolve",pid=528,fd=16))                     

LISTEN                      0                           4096                                             127.0.0.53%lo:53                                                   0.0.0.0:*                          users:(("systemd-resolve",pid=528,fd=14))                     

LISTEN                      0                           4096                                                         *:22                                                         *:*                          users:(("sshd",pid=1004,fd=3),("systemd",pid=1,fd=72))
 
Last edited by a moderator:
Liest Du auch mal die Kommentare in den Configs? Die stehen dort üblicherweise nicht nur just for fun:
# Port and ListenAddress options are not used when sshd is socket-activated,
# which is now the default in Ubuntu. See sshd_config(5) and
# /usr/share/doc/openssh-server/README.Debian.gz for details.
 
Back
Top