Network
SSH (Secure Shell)¶
-
Login to a remote server:
-
Connect to a remote server on a specific port:
-
Run a command on a remote server:
-
Use an SSH key for authentication:
-
SSH Tunneling (Local Port Forwarding):
-
SSH Reverse Port Forwarding:
-
Copy SSH public key to server (Password-less SSH):
SCP (Secure Copy Protocol)¶
-
Copy file from local to remote:
-
Copy file from remote to local:
-
Copy directory recursively:
File Transfer with Rsync¶
-
Sync files from local to remote:
-
Sync files from remote to local:
-
Delete files from the destination that don’t exist on the source:
Network Tools¶
-
Check network connectivity (Ping):
-
Trace route to a host:
-
Display network interfaces and IP addresses: or
-
Check open ports on a remote host:
-
Check currently established connections: or
File and Process Operations¶
-
View open files used by a process:
-
Kill a process by its name:
-
Kill a process by its PID:
Networking & Monitoring¶
-
Monitor traffic on an interface:
-
Check bandwidth usage:
-
Query DNS for a domain:
-
Perform a more detailed DNS query:
Firewall Configuration (ufw)¶
-
Enable UFW (Uncomplicated Firewall):
-
Allow a specific port:
-
Check UFW status:
Network Configuration¶
-
Change hostname:
-
View routing table:
-
Add a static route:
Other Useful Commands¶
-
Speedtest CLI (Check internet speed):
-
Download file from the web: or
-
Test the reachability of a specific port: