SSH Basics

SSH: Secure Shell

SSH lets you securely connect to remote servers. It's the primary way to manage Linux servers in the cloud.
bash
# Connect to a remote server
ssh user@hostname

# Connect on a specific port
ssh -p 2222 user@hostname

# Copy files to remote server
scp file.txt user@server:/path/

# Generate SSH key pair
ssh-keygen -t ed25519

# Copy your public key to a server
ssh-copy-id user@server

Tip:Always use SSH keys instead of passwords for authentication. They're more secure and convenient.

Terminalbash
Welcome to the Linux Terminal Simulator!
Type commands below. Use 'help' to see available commands.
user@codewithmuh:~$

💬 Got questions? Ask me anything!