|
|
| |||||||
| Site & Server Administration Server Yönetimi hakkında, .htaccess, Apache configuration ve log analiz, güvenlik |
| |
|
| | | LinkBack | Seçenekler |
| |||
| Merhaba arkadaşlar; Root'dan sunucuya kapatmak istiyorum. Bunun yerine benim belirlediğim kullanıcı ve porttan login olup sudo yaparak root a giriş yapmak istiyorum. etc/ssh/sshd_config üzerinde permitrootlogin NO yaptım ve SSHD restart yaptım.. buna rağmen halen root ile login oluyor.... Halbuki ben root ile girişi istemiyorum. İkinci bir soru ise useradd xxx diye kullanıcı ekliyorum; passwd xxx 123456 diyerek şifre oluşturuyorum. ancak xxx@ipadresim olarak giriş yapamıyorum.. Sizce bu iki sorunu nasıl çözebilirim Teşekkürler |
| |||
| Kod: # Logging # obsoletes QuietMode and FascistLogging #SyslogFacility AUTH SyslogFacility AUTHPRIV #LogLevel INFO # Authentication: #LoginGraceTime 2m #PermitRootLogin no #StrictModes yes #MaxAuthTries 6 #RSAAuthentication yes #PubkeyAuthentication yes #AuthorizedKeysFile .ssh/authorized_keys # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts #RhostsRSAAuthentication no # similar for protocol version 2 #HostbasedAuthentication no # Change to yes if you don't trust ~/.ssh/known_hosts for # RhostsRSAAuthentication and HostbasedAuthentication #IgnoreUserKnownHosts no # Don't read the user's ~/.rhosts and ~/.shosts files #IgnoreRhosts yes Ayrıca useradd ile oluşturduğum kullanıcı ile login de olamıyorum |
| |||
| Alıntı:
|
| |||
| dediğinizi uygulamak istiyorum ancak bir kullanıcı oluşturmam lazım yoksa root a hiçbir şekilde giremeyeceğim..Adduser lorenzen Passwd lorenzen şifremi giriyorum lorenzen@SUNUCU IP adresi şeklinde belirlediğim şifre ile girmeye çalışınca Permission Denied Hatası alıyorum |
| |||
| Alıntı:
|
| | |||
| ssh 127.0.0.1 -l root
__________________ gereksiz agirliklardan kurtulmak gerek :) |
| |||
| Alıntı:
Kod: # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts #RhostsRSAAuthentication no # similar for protocol version 2 #HostbasedAuthentication no # Change to yes if you don't trust ~/.ssh/known_hosts for # RhostsRSAAuthentication and HostbasedAuthentication #IgnoreUserKnownHosts no # Don't read the user's ~/.rhosts and ~/.shosts files #IgnoreRhosts yes # To disable tunneled clear text passwords, change to no here! #PasswordAuthentication yes #PermitEmptyPasswords no PasswordAuthentication yes # Change to no to disable s/key passwords #ChallengeResponseAuthentication yes ChallengeResponseAuthentication no Kod: #Port 22 #Protocol 2,1 Protocol 2 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress :: # HostKey for protocol version 1 #HostKey /etc/ssh/ssh_host_key # HostKeys for protocol version 2 #HostKey /etc/ssh/ssh_host_rsa_key #HostKey /etc/ssh/ssh_host_dsa_key # Lifetime and size of ephemeral version 1 server key #KeyRegenerationInterval 1h #ServerKeyBits 768 # Logging # obsoletes QuietMode and FascistLogging #SyslogFacility AUTH SyslogFacility AUTHPRIV #LogLevel INFO |
![]() |
| Bookmarks |
| Seçenekler | |
| |