Network connecting

Linux Command Line Quick Reference

1 min read

Published Aug 18 2026


19
0
0
0

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@server

The 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.

© 2025 SimpleSteps.guide
AboutFAQPoliciesContact
Linux Command Line Quick Reference | Network connecting | SimpleSteps.guide