Bilgi Bankası

VPS İlk Kurulum Rehberi

<h2>VPS Sunucunuzu Hazırlama</h2>

<p>Yeni VPS sunucunuzu aldıktan sonra yapmanız gereken temel ayarlar.</p>

<h3>1. SSH ile Bağlantı</h3>

<h4>Windows (PuTTY)</h4>
<ol>
<li>PuTTY programını indirin ve açın</li>
<li>Host Name: Sunucu IP adresiniz</li>
<li>Port: 22</li>
<li>"Open" butonuna tıklayın</li>
<li>Kullanıcı adı: root</li>
<li>Şifre: E-posta ile gönderilen şifre</li>
</ol>

<h4>Mac/Linux (Terminal)</h4>
<pre>
ssh root@SUNUCU_IP_ADRESI
</pre>

<h3>2. Sistem Güncelleme</h3>

<h4>Ubuntu/Debian</h4>
<pre>
apt update && apt upgrade -y
</pre>

<h4>CentOS/AlmaLinux</h4>
<pre>
yum update -y
</pre>

<h3>3. Yeni Kullanıcı Oluşturma</h3>
<pre>
# Kullanıcı oluştur
adduser kullaniciadi

# Sudo yetkisi ver
usermod -aG sudo kullaniciadi
</pre>

<h3>4. SSH Güvenliği</h3>
<pre>
# SSH ayarlarını düzenle
nano /etc/ssh/sshd_config

# Şu ayarları değiştirin:
PermitRootLogin no
PasswordAuthentication no
Port 2222 # Varsayılan portu değiştirin

# SSH servisini yeniden başlatın
systemctl restart sshd
</pre>

<h3>5. Firewall Kurulumu</h3>

<h4>UFW (Ubuntu)</h4>
<pre>
# UFW kur ve etkinleştir
apt install ufw
ufw default deny incoming
ufw default allow outgoing
ufw allow 2222/tcp # SSH portu
ufw allow 80/tcp # HTTP
ufw allow 443/tcp # HTTPS
ufw enable
</pre>

<h3>6. Fail2Ban Kurulumu</h3>
<pre>
apt install fail2ban
systemctl enable fail2ban
systemctl start fail2ban
</pre>

<div class="alert alert-danger">
<strong>Önemli:</strong> Root şifrenizi hemen değiştirin ve güçlü bir şifre kullanın.
</div>
20 görüntülenme Son güncelleme: 14.04.2026