Ravindra BagaleCourses & study guides मराठी Track your progress

Ravi Sir's Cyber Security Cards › Revision Cards

Remote Access: ssh, scp, rsync and Environment Variables

Remote Access: ssh, scp, rsync and Environment Variables ssh : log in to a server. scp : copy a file to or from it. rsync : copy only the changes. Environment variables are named settings a program can read. .env files often hold database passwords and API keys. If the web server shows .env, or it i

Remote Access: ssh, scp, rsync and Environment Variables ssh : log in to a server. scp : copy a file to or from it. rsync : copy only the changes. Environment variables are named settings a program can read. .env files often hold database passwords and API keys. If the web server shows .env, or it i
Remote Access: ssh, scp, rsync and Environment Variables · Download PNG
Read card text

What this card says

What it is

ssh: log in to a server. scp: copy a file to or from it. rsync: copy only the changes.

Environment variables are named settings a program can read.

Why it matters for security

.env files often hold database passwords and API keys.

If the web server shows .env, or it is in a Git repo, everything leaks. Keep secrets outside the web folder, with permission 600.

Common mistake

Forgetting the colon in scp. scp file ec2-user@IP makes a local file with that name.

Write ec2-user@IP:~/.

Learn more in the lesson: 6.10 Remote Access: ssh, scp, rsync and Environment Variables

See all Ravi Sir's Cyber Security Cards