Network connecting
Linux Command Line Quick Reference
1 min read
This section is 1 min read, full guide is 20 min read
Published Aug 18 2026
19
Show sections list
0
Log in to enable the "Like" button
0
Guide comments
0
Log in to enable the "Save" button
Respond to this guide
Guide Sections
Guide Comments
CLILinuxUbuntu
SSH creates an encrypted remote shell and can also carry file transfers and tunnels.
Connect and copy over SSH
bash
ssh user@serverssh -p 2222 user@serverssh -i ~/.ssh/id_ed25519 user@serverssh -v user@serverscp file.txt user@server:/path/scp user@server:/path/file.txt .scp -r directory/ user@server:/path/ssh -p selects a non-default server port. -i selects a private key. -v enables verbose connection diagnostics. scp copies through SSH, with -r for directories.
Create a modern SSH key pair with:
Create and install an SSH key
bash
ssh-keygen -t ed25519 -C "name@example.com"ssh-copy-id user@serverThe private key stays on your machine. ssh-copy-id adds the public key to the remote account's authorized_keys file.
For HTTP requests, curl is useful for downloads, APIs and connectivity tests:
Make HTTP requests with curl
bash
curl https://example.comcurl -I https://example.comcurl -L -O https://example.com/file.zipcurl -o output.zip https://example.com/file.zipcurl -v https://example.com-I requests headers only. -L follows redirects. -O keeps the remote filename and -o specifies a local filename. -v shows connection and protocol details.