Skip to main content
LESSON 5 of 5//CLI in Software Development

SSH and remote servers

SSH (Secure Shell) lets you connect to and control remote servers as if you were sitting in front of them. It's how developers deploy code, manage servers, and access cloud infrastructure.

SSH basicszsh // interactive
# Connect to a remote server
~ssh user@192.168.1.100
# Connect with a specific key file
~ssh -i ~/.ssh/my-key.pem ubuntu@server.example.com
# Copy files to/from remote servers
~scp ./deploy.zip user@server:/var/www/
~scp user@server:/var/log/app.log ./local-logs/

SSH keys

Generate an SSH key pair with ssh-keygen -t ed25519. Add the public key to remote servers or GitHub. This eliminates password prompts and is more secure.

PRACTICE//Try the commands from this lesson
INTERACTIVE_TERMINAL//sandbox
Practice terminal — try the commands from this lesson!
Type 'help' for available commands. Tab completion not available in simulator.
Try: