Linux Security Flashcards

1
Q

Root Account

A
  • superuser

- all powerful account

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

File Permissions

A
  • each has a owenr

-

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Package Managers

A
  • central repositories of code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Port Forwarding

A

forward all local traffic on port 8080 to google.com

ssh -L 800:google.com:80

How well did you know this?
1
Not at all
2
3
4
5
Perfectly