Arama Yap Mesaj Submit
Request a Callback
+90
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro
X
X

Select Your Currency

Turkish Lira $ US Dollar Euro

Contact Us

Location Halkali merkez neighborhood fatih st ozgur apt no 46 , Kucukcekmece , Istanbul , 34303 , TR
$ sudo systemctl status nginx $ grep -r "error" /var/log/ $ chmod 755 public_html $ ssh-keygen -t ed25519 $ tar -czvf backup.tar.gz /home $ htop $ tail -f access.log

SSH Commands Library

>_ Manage Your Server at Your Fingertips

SSH (Secure Shell) commands, the most basic building block of Linux server management, have been gathered in a single guide with Eka Sunucu expertise. From file permissions to network analysis, from system monitoring to security, all the codes you need are here.

Whether AlmaLinux, whether Ubuntu use; This guide was prepared according to 2026's modern DevOps standards.

SSH Terminal

SSH Connection and Session Commands

Komut Description
ssh [email protected] Standard server connection (Default 22 port).
ssh -p 2222 root@ip Connecting via a different port (Ex: 2222).
ssh-keygen -t ed25519 2026 Standard: New generation, secure SSH key generation. (Recommended instead of RSA).
ssh-copy-id root@ip It automatically copies the created public key to the server (for password-free login).
exit Logs out and logs out.
Hint: To prevent your connection from being disconnected and for long-term operations (backup, compilation) screen or tmux use it.
screen -S islem_adi Open a new window with CTRL+A+D Put it in the background with .

File and Directory Management

Komut Description
ls -lah Lists all files (including hidden ones) with their file sizes.
cd /var/www Goes to the specified directory. cd .. goes to a higher directory.
cp -r folder new_folder Copies a folder with its contents.
mv file.txt new.txt Changes the file name or moves the file.
rm -rf klasor Attention: It deletes the folder and its contents without prompting.
mkdir -p a/b/c Creates nested folders.
pwd Shows which directory you are currently in (Print Working Directory).

Permissions (CHMOD) and Ownership (CHOWN)

Komut Description
chmod 755 klasor Ideal permission for folders. Owner writes, others read/enter.
chmod 644 dosya.php Ideal permission for files. The owner writes, others read.
chmod -R 755 klasor Applies permission to the folder and everything below it (Recursive).
chown user:group dosya Changes the owner and group of the file.
chown -R user:user /home Batch changes the owner of all files under the directory.
Security Warning: Never to web directories chmod 777 don't give it! This means anyone can write malicious code into that file. Linux Permissions Check out our article.

System Resources and Monitoring

Komut Description
htop Colorful and interactive task manager. Best for CPU/RAM monitoring.
free -m Shows RAM usage in MB.
df -h Displays disk fullness in readable format (GB).
du -sh folder/ Calculates the total size of the specified folder.
uptime It shows how long the server has been open and the load average.
systemctl status nginx It checks whether a service (eg: nginx) is running or not.

Network Commands

Komut Description
ip addr show Lists the server's IP addresses (used instead of ifconfig).
netstat -tulpn It shows which ports are listened by which service.
ping google.com Performs connection testing.
curl -I ekaservucu.com It retrieves the header information of a website.
wget url_address It is used to download files.

Archiving and Compression (Tar/Zip)

Komut Description
tar -czvf yedek.tar.gz klasor Compresses a folder in .tar.gz format (Ideal for Backup).
tar -xzvf dosya.tar.gz Extracts the .tar.gz file.
zip -r archive.zip folder Compresses the folder in .zip format.
unzip file.zip Opens the .zip file.

Using Search and Grep

Komut Description
grep "error" log.txt Searches for the word "error" in the file.
grep -r "config" /etc/ Searches for words in all files in a folder (Recursive).
find / -name "file.txt" It finds the file named "dosya.txt" in the entire system.
find . -type f -size +100M Lists files larger than 100MB.
tail -f error.log It monitors the log file live (streaming text).

SSH Security (Hardening)

For SSH security /etc/ssh/sshd_config You need to edit the file. Things to do in 2026 standards:

1. Changing Port:
Port 22 instead of
Port 2288 (Example)
2. Turning off Root Login:
PermitRootLogin yes instead of
PermitRootLogin no
3. Disabling Password Entry (Key Only):
PasswordAuthentication yes instead of
PasswordAuthentication no
4. Protokol:
Just make sure Protocol 2 is used.

Don't forget to restart the service after editing:

sudo systemctl restart sshd

For more security details To our SELinux Guide you can look.

Frequently Asked Questions

Questions about using SSH.

This error indicates that the server rejects login with password and only allows login with SSH key (public key), but the appropriate key is not available on your computer. Make sure you are using the correct key or server settings.
Usually the SSH service is not running on the server, the port is incorrect, or a firewall (UFW/IPTables) is blocking the connection. You should connect via VNC via the Eka Sunucu panel and check the service.

Professional Linux Management

Don't want to deal with complex commands? With Eka Sunucu's "Managed Server" services, leave the technical details to us and you can focus on your business.

Top