Site, Sunucu Sorunlarınız ve Çözümleri » SSH

SSH Komutları

http://forum.whmdestek.com/

Go Back   WHM/cPanel Support Platform » Türkçe » Site, Sunucu Sorunlarınız ve Çözümleri » SSH
 


Reply
 
LinkBack (1) Thread Tools Display Modes
  1 links from elsewhere to this Post. Click to view. #1  
Old 30.05.07, 17:00
CaLViN's Avatar
Sevgi güçtür.
 
Join Date: Apr 2007
Location: Outta nation
Age: 27
Posts: 1,715
Rep Power: 100000
CaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond reputeCaLViN has a reputation beyond repute
SSH Komutları

Olmazsa olmaz komutlarımız.

Quote:
ls Dizinde bulunan her şeyi listeler.
ls -a Gizli dosyalar ve dizinlerle beraber listeler.
ls -l Bütün dosyaları boyut ve tarihini göstererek listeler.
tar -zxpf Uzantısı tar.gz olan sıkıştırılmış dosyaları açar.
tar -xpf Uzantısı .tar olan dosyaları açar.
gunzip Uzantısı .gz olan dosları açar.
cp Dosyayı kopyalar.
mv Bir dosyayı başka bir dizine taşımanızı sağlar yada dosya adını değiştirir.
mkdir Yeni bir dizin oluşturmanızı sağlar.
rmdir Belirtilen dizini silmenizi sağlar.
rm Dosya silmenizi sağlar.
rm -rf Dizin silmenizi sağlar.
cd Belirtilen dizine geçmenizi sağlar.
cd .. Bir üst dizine geçmenizi sağlar.
cd ~ En üst dizine çıkmanızı sağlar.
pwd O anda bulunduğunuz dizini görüntüler.
pico Belirtilen dosyayı text editör ile düzenlemenizi sağlar.
ftp Belirtilen siteye FTP bağlantısı sağlar.
lynx Belirtilen siteyi görüntüler.
df Harddisk istatistiklerini gösterir.
quota Disk kullanımınızı gösterir.
uname İşletim sisteiminin durumunu gösterir.
whoami Kendi bilgilerinizi gösterir.
who Sunucuya bağlı olanları gösterir.
last Hesabınıza yapılan en son bağlantıyı gösterir.
whereis Belirtilen dosyanın nerede olduğunu gösterir.
ps -x Sizin çalıştırdığınız işlemleri gösterir.
ps -a Sunucuda çalıştırılan tüm işlemleri gösterir.
ps -ux Çalıştırılan işlemlerin CPU/RAM kullanımıyla gösterir.
kill Pid numarası verilen işlemi durdurur.
kill -9 Pid numarası verilen eggdrop işlemini durdurur.
killall Belirtilen program türündeki tüm işlemleri durdurur.
whatis Belirtilen komutun açıklamasını verir.
man Komut hakkında yardım görüntüler
passwd Shell hesabınıza girerken kullandığınız şifreyi değiştirmenizi sağlar.
vhosts yada vhost Sistemde bulunan vhostları (virtual host) listeler.(BNC için kullanabilirsiniz)
reboot: Sunucuya restart atar
service mysqld restart: mysql restart atar
service httpd restart: apache ye rest atar
service httpd stop : Sitelere ulaşımı kapatır
netstat -n : sunucuya baglanan ipleri gösterir
netstat -a sunucuya baglanan reseller ipleri gösterir(Proxy kullanmanız fark etmez her zaman gercek cıkış ipi görünür)
pico : ssh üzerinden text editor ile dosya içeriğini görme ve düzenlemeye yarar.
top : Sistem cpu kulalnımını gösterir.
uptime : Uptime Durumu
wget: wget www.siteadresi.com/dosyaadi şeklinde sunucuya dosya çekmenizi sağlar.

IP Engelleme

iptables -A INPUT -s 85.159.54.48 -j DROP
ip ban kaldırma
iptables -X INPUT -s 85.159.54.48 -j DROP


syn olarak sunucuya aldığını saldırı adetini ve ipleri gösterme

netstat -np | grep SYN_RECV | awk '{print $5}' | cut -d. -f1-4 | cut -d: -f1 | sort -n | uniq -c | sort -n


sunucu özellikleri

dmesg
__________________
1.)Lütfen destek talebinde bulunmak için msn messenger üzerinden iletişime geçmeyiniz.
2.)Ücretsiz destek almak için forum sayfalarımızı kullanmanız aynı sorunu yaşayan diğer üyelerin cevaplara en kısa sürede ulaşabilmesi ve sizlere yardımcı olmak isteyen bizlerin ve diğer üyelerimizin zaman kazanmaları açısından çok önemlidir.
3.)Forumlarımızda sorunlarınızı anlatırken mümkün olduğunca çok detay vermeniz en kısa sürede sorununuza çözüm bulmanız açısından mühimdir.

Daha çok öğrenmek ve öğretmek dileğiyle..
Sevgiler..
The Platform.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 05.06.07, 15:59
SeNaTöR's Avatar
Sempron
 
Join Date: Jun 2007
Posts: 28
Rep Power: 0
SeNaTöR is on a distinguished road
Send a message via MSN to SeNaTöR
Teşekkür Ederim.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 03.07.07, 21:26
Alone
Misafir
 
Posts: n/a
Komutlar için teşekkürler.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 15.07.07, 13:46
Sempron
 
Join Date: Jul 2007
Location: ISTANBUL
Posts: 13
Rep Power: 0
Cancelled is on a distinguished road
Çok işime yarayacak,teşekkürler.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 18.07.07, 14:50
sinangunay's Avatar
FULL DESTEK SUNUCULAR
 
Join Date: Jul 2007
Location: biLi biLi boP
Age: 28
Posts: 1,664
Rep Power: 1073
sinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond repute
sırayla bunları yapın daha çok rahat edersiniz..


nano /usr/bin/synlistele

açılan boş sayfaya

netstat -np | grep SYN_RECV | awk '{print $5}' | cut -d. -f1-4 | cut -d: -f1 | sort -n | uniq -c | sort -n

paste edin ve save edip çıkın.

sshta herhangi bir yerde synlistele derseniz, bu upuzun komutu kullanmaktan kurtulursunuz
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 18.07.07, 19:53
Onursal's Avatar
fshbcr
 
Join Date: Jun 2007
Location: Çorlu
Age: 28
Posts: 638
Rep Power: 1092
Onursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond reputeOnursal has a reputation beyond repute
Send a message via MSN to Onursal
Şimdi aynı işlemi :80 portu üzerinde kim var kim yok görmek için yapalım.

Code:
pico /usr/bin/netlojik
Code:
 netstat -tn --inet 2> /dev/null| grep ":80" | awk '/tcp[\ ]*[0-9]+[\ ]*[0-9]+[\ ]+[^\ ]+[\ ]*[^\ ]*/ { print $5; }' | cut -d":" -f1 | sort | uniq -c | sort
ekleyip kayıt ediyoruz ctrl x y

chmod 777 yapıyoruz yaptığımız dosyayı, yoksa çalışmaz.
Code:
 chmod 777 /usr/bin/netlojik
şimdi istediğiniz yerden netlojik yazınca 80 portu üzerinde kim kaç bağlantı yapıyor görüyoruz. Yüksek bağlantı yapan varsa aşağıdaki komut ile banyabilirsiniz.
öyle 50 -100 bağlantı yapanları banlamayın sakın. bazı ziyaretçiler ve o anda fckeditör kullanan site adminleri bu değere ulaşabilir normaldir.

Code:
iptables -I INPUT -j DROP -s enayinin-IP-adresi
Aşağıdaki komutu vererekte banlı ipadreslerini boşaltıyoruz
Code:
iptables -F
__________________
Deizm Agnostik
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 12.08.07, 17:25
Sempron
 
Join Date: Jul 2007
Posts: 13
Rep Power: 0
vezir is on a distinguished road
dosyanın içinde fsdfasdfa.sql diye dosya var diyelim hangi komutla silebilirim
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 12.08.07, 17:57
sinangunay's Avatar
FULL DESTEK SUNUCULAR
 
Join Date: Jul 2007
Location: biLi biLi boP
Age: 28
Posts: 1,664
Rep Power: 1073
sinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond reputesinangunay has a reputation beyond repute
rm -Rf fafafafa.sql

dikkat: sorgusuz sualsiz siler yok eder :p
__________________
-----------------------------------------------------------------------------------------
>> LÜTFEN ÜCRETSİZ DESTEK TALEP ETMEK İÇİN MSN ADRESLERİMİZİ EKLEMEYİNİZ. HER TÜRLÜ ÜCRETSİZ DESTEK İÇİN FORUMLARIMIZI KULLANINIZ. TEŞEKKÜRLER <<
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 12.08.07, 21:31
Sempron
 
Join Date: Jul 2007
Posts: 13
Rep Power: 0
vezir is on a distinguished road
eyvallah hostbankdan r10da almıştım cevabı sağolun.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 07.11.07, 04:46
Atari
 
Join Date: Nov 2007
Posts: 5
Rep Power: 0
Dincer is on a distinguished road
peki banladigimiz IP ler listesini gormek icin komut nedir?
galiba
iptables -L

Last edited by Dincer; 07.11.07 at 12:56. Reason: cevap
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LinkBacks (?)
LinkBack to this Thread: http://forum.whmdestek.com/ssh/6-ssh-komutlari.html
Posted By For Type Date
Load Fırlaması - Webmaster Forum This thread Refback 23.07.07 22:59


Sign up for PayPal and start accepting credit card payments instantly.

Navigasyon
Menü