Linux Security Flashcards
1
Q
Root Account
A
- superuser
- all powerful account
2
Q
File Permissions
A
- each has a owenr
-
3
Q
Package Managers
A
- central repositories of code
4
Q
Network Commands
A
netstat -nutlp
n - network sockets u - udp t - tcp l - listening sockets p - pid/name of process
# port scanning - lists all open ports nmap localhost
list open file - since everything is a file on linux
lsof -i
# net cat - used to check if we can nc -v port
5
Q
SSH Keygen
A
ssh-keygen
creates two files
private key ~/.ssh/id_rsa
public key ~/.ssh/id_rsa.pub
SSH Service Config
/etc/ssh/sshd_conf
/etc/ssh/authorized_keys => store users public key file so the user can access this server
6
Q
Port Forwarding
A
forward all local traffic on port 8080 to google.com
ssh -L 800:google.com:80