Witam,

Zajmiemy sie tu podstawowa konfiguracja sshd - Open Secure Shell Daemon


Port 22                         <- tu wpisujemy port na jakim ma nasz serwer nasluchiwac

ListenAddress 0.0.0.0           <- mozemy ustawic tu adres IP z jakiego bedzie sie mozna polaczyc
                                   i tylko z niego. Ustawienie domysle wpuszcza wszystkie adresy IP

Protocol 2                      <- ustawiamy "Protocol 2" jako ustawienie zalecane

#HostKey /etc/ssh/ssh_host_key

#HostKey /etc/ssh/ssh_host_rsa_key
#HostKey /etc/ssh/ssh_host_dsa_key

#KeyRegenerationInterval 1h
#ServerKeyBits 768

#SyslogFacility AUTH
#LogLevel INFO

LoginGraceTime 30
PermitRootLogin no              <- jesli zmienimy na "yes" bedzie mozliwosc logowania sie na
                                   konto root - nie zalecane.
#StrictModes yes
MaxAuthTries 3                  <- ustawiamy tu ilosc blednych logowan, domyslnie 6 a zalecane 3

#RSAAuthentication no
#PubkeyAuthentication yes
#AuthorizedKeysFile	.ssh/authorized_keys

#RhostsRSAAuthentication no
#HostbasedAuthentication no

#IgnoreUserKnownHosts no
#IgnoreRhosts yes

#PasswordAuthentication yes
#PermitEmptyPasswords no

#ChallengeResponseAuthentication yes

#KerberosAuthentication no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes
#KerberosGetAFSToken no

#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

#UsePAM no

#AllowTcpForwarding yes
#GatewayPorts no
#X11Forwarding no
#X11DisplayOffset 10
#X11UseLocalhost yes
PrintMotd yes
PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#UsePrivilegeSeparation yes
#PermitUserEnvironment no
#Compression delayed
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS yes
#PidFile /var/run/sshd.pid
#MaxStartups 10
#PermitTunnel no
#ChrootDirectory none

Banner /etc/issue                      <- ustawiamy sciezkie gdzie zamiescilismy wiadomosc powitalna

Subsystem	sftp	/usr/libexec/sftp-server




I to by bylo na tyle. 

z pozdrowienimi frimer.