---
# System prepended metadata

title: Linux_Basic-Фадеев_Александр-Практика-2

---

# Linux_Basic-Фадеев_Александр-Практика-2

## Практическая работа №2.1

* df

![](https://i.imgur.com/34AkPFG.png)

![](https://i.imgur.com/VIcQdkU.png)

![](https://i.imgur.com/KiQ10T8.png)

![](https://i.imgur.com/HgwKc7X.png)

![](https://i.imgur.com/l8taiWC.png)

![](https://i.imgur.com/KtT0lSW.png)

![](https://i.imgur.com/9nOuvXg.png)


* du 

![](https://i.imgur.com/FTGRPol.png)

![](https://i.imgur.com/UMsQP3S.png)

![](https://i.imgur.com/2aW2F9y.png)

![](https://i.imgur.com/Dsdbfrv.png)

![](https://i.imgur.com/8brTC6I.png)

![](https://i.imgur.com/MlG734N.png)

![](https://i.imgur.com/Qifosgg.png)

![](https://i.imgur.com/c4fLU1P.png)

![](https://i.imgur.com/TQLcKBF.png)

![](https://i.imgur.com/v6F6Yq8.png)

* free

![](https://i.imgur.com/KCRaWIV.png)

![](https://i.imgur.com/esnKS49.png)

![](https://i.imgur.com/Ygd5IP7.png)

![](https://i.imgur.com/rwM5hAo.png)

![](https://i.imgur.com/QcGVIyx.png)

![](https://i.imgur.com/J5ef6zy.png)

![](https://i.imgur.com/kZ6ciLP.png)

![](https://i.imgur.com/U6jZuPV.png)

![](https://i.imgur.com/9xESsCU.png)


* iostat

![](https://i.imgur.com/Ja1Cu3x.png)

![](https://i.imgur.com/7dmPKTw.png)

![](https://i.imgur.com/9MUl8Z9.png)

![](https://i.imgur.com/k0aOfN5.png)

![](https://i.imgur.com/xLS2ShD.png)

![](https://i.imgur.com/lgLxdXr.png)


* mpstat

![](https://i.imgur.com/mxGwiuT.png)

![](https://i.imgur.com/yaa53kc.png)

![](https://i.imgur.com/iSf5LAT.png)

![](https://i.imgur.com/7jzBu7E.png)

* vmstat

![](https://i.imgur.com/T8ZD7sT.png)

![](https://i.imgur.com/OS3HEgK.png)

![](https://i.imgur.com/78U9MKw.png)

![](https://i.imgur.com/oIopkLR.png)

![](https://i.imgur.com/FZWUnvi.png)


* w

![](https://i.imgur.com/l7orJ8d.png)

![](https://i.imgur.com/12QfdHO.png)

![](https://i.imgur.com/wVgDpOs.png)

![](https://i.imgur.com/vXJeRGO.png)

* htop

![](https://i.imgur.com/3mTObeT.png)

![](https://i.imgur.com/K1wSPe5.png)
![](https://i.imgur.com/Qr3VrnC.png)

![](https://i.imgur.com/TEHxVro.png)
![](https://i.imgur.com/iZHwl6H.png)

## Практическая работа №2.2

### Установить, настроить SSH-сервер, клиент.

![](https://i.imgur.com/tS8ezw7.png)

![](https://i.imgur.com/Ys2d0b0.png)

![](https://i.imgur.com/N2M9gmn.png)



### Отключить доступ по root-пользователю.

в /etc/ssh/sshd_config 
![](https://i.imgur.com/6dD7Pos.png)


### Сменить порт по умолчанию на любой другой.

![](https://i.imgur.com/C6SRTEI.png)



### Подключиться к серверу linux c хостовой операционной системы через Putty.

для входа по паролю необходимо вкл
![](https://i.imgur.com/ZUYynMz.png)

![](https://i.imgur.com/rUyUYdV.png)
=> Open

![](https://i.imgur.com/t6D7Bsa.png)



```

- На линукс генерируем ключи.

![](https://i.imgur.com/OEj0TIz.png)

- Подключаемся к линукс по паролю

![](https://i.imgur.com/RljRPwP.png)

- Копируем публичный ключ в хостовую систему

![](https://i.imgur.com/Rj2MuWQ.png)
```

## Практическая работа №2.3

- Организовать аутентификацию к серверу linux через ключи.

Для передачи открытого ключа используем утилиту ssh-copy-id

![](https://i.imgur.com/Wum8hEu.png)

![](https://i.imgur.com/D5OXo1H.png)

![](https://i.imgur.com/77w5wWN.png)


- Организовать аутентификацию к серверу linux через ключи без пароля.

открываем /etc/ssh/sshd_config
раскомментируем PasswordAuthentication и пишем no напротив 

![](https://i.imgur.com/apBPCKG.png)


сохраняем и рестарт ssh.service

![](https://i.imgur.com/vrGD2uV.png)

![](https://i.imgur.com/1QjL1fo.png)


теперь авторизация по паролю не возможна
![](https://i.imgur.com/scmdJxs.png)

## Практическая работа №2.4

информация о дистрибутиве 
![](https://i.imgur.com/IBJo94j.png)

информация по ядру
![](https://i.imgur.com/XWBzVF4.png)

---

![](https://i.imgur.com/vXug3zz.png)

![](https://i.imgur.com/gRlnrMG.png)

![](https://i.imgur.com/aIt8nW2.png)

![](https://i.imgur.com/Y4MRSug.png)

![](https://i.imgur.com/PctpqOW.png)

![](https://i.imgur.com/dwpoltP.png)

![](https://i.imgur.com/kNYmOum.png)

- wget
![](https://i.imgur.com/lTCst70.png)
![](https://i.imgur.com/weg2jGK.png)


- проверка пакетов на целостность.

![](https://i.imgur.com/wLxI6vh.png)


![](https://i.imgur.com/15vpLjZ.png)

![](https://i.imgur.com/31y8KE1.png)


- lynis 

![](https://i.imgur.com/G1xRRpb.png)

![](https://i.imgur.com/3kSwbuA.png)

![](https://i.imgur.com/ikjiied.png)

- dpkg

![](https://i.imgur.com/G8p1rFv.png)

![](https://i.imgur.com/2sgexdu.png)

![](https://i.imgur.com/g950npM.png)

![](https://i.imgur.com/debSABY.png)

- debsums

![](https://i.imgur.com/Eci0vMA.png)

![](https://i.imgur.com/upynR7w.png)

---

![](https://i.imgur.com/YlIKjap.png)

![](https://i.imgur.com/SGiR2FZ.png)


![](https://i.imgur.com/WIqxRtS.png)

![](https://i.imgur.com/ToFe7Zp.png)

## Практическая работа №2.5

![](https://i.imgur.com/E1CXGp5.png)

![](https://i.imgur.com/nkxSUdP.png)

![](https://i.imgur.com/COXFXEb.png)


![](https://i.imgur.com/iXR3MUQ.png)
![](https://i.imgur.com/ot6MBbS.png)

- .bashrc

![](https://i.imgur.com/R3IERfp.png)

![](https://i.imgur.com/hJhIKEw.png)

- profile

![](https://i.imgur.com/SdirKiz.png)

![](https://i.imgur.com/GksC9HB.png)

