Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- root@student-virtual-machine:~# systemctl edit sshd.service
- root@student-virtual-machine:~# systemctl cat sshd.service
- # /lib/systemd/system/ssh.service
- [Unit]
- Description=OpenBSD Secure Shell server
- Documentation=man:sshd(8) man:sshd_config(5)
- After=network.target auditd.service
- ConditionPathExists=!/etc/ssh/sshd_not_to_be_run
- [Service]
- EnvironmentFile=-/etc/default/ssh
- ExecStartPre=/usr/sbin/sshd -t
- ExecStart=/usr/sbin/sshd -D $SSHD_OPTS
- ExecReload=/usr/sbin/sshd -t
- ExecReload=/bin/kill -HUP $MAINPID
- KillMode=process
- Restart=on-failure
- RestartPreventExitStatus=255
- Type=notify
- RuntimeDirectory=sshd
- RuntimeDirectoryMode=0755
- [Install]
- WantedBy=multi-user.target
- Alias=sshd.service
- # /etc/systemd/system/ssh.service.d/override.conf
- [Service]
- MemoryLimit=2M
- root@student-virtual-machine:~# history
- 1 cd /etc/default/
- 2 ls
- 3 vim grub
- 4 apt install vim
- 5 vim grub
- 6 update-grub
- 7 reboot
- 8 vim /etc/default/grub
- 9 update-grub
- 10 reboot
- 11 systemctl -h
- 12 systemctl list-units
- 13 vim /etc/fstab
- 14 reboot
- 15 systemctl list-units
- 16 mount
- 17 systemctl isolate graphical.target
- 18 vim /etc/default/grub
- 19 update-grub
- 20 which mount
- 21 mv /usr/bin/mount /usr/bin/tnuom
- 22 which false
- 23 cp /usr/bin/false /usr/bin/mount
- 24 reboot
- 25 mount
- 26 exit
- 27 history
- 28 apt install aide
- 29 aide --help | less
- 30 cd /bin
- 31 ls
- 32 mv pr rp
- 33 echo hello > pr
- 34 chmod +x pr
- 35 aide -C
- 36 man aide
- 37 cd
- 38 top
- 39 dd if=/dev/zero of=/dev/null &
- 40 top
- 41 reboot
- 42 top
- 43 reboot
- 44 top
- 45 echo f > /proc/sysrq-trigger
- 46 dmesg
- 47 systemctl show sshd
- 48 systemctl edit sshd.service
- 49 systemctl edit ssh.service
- 50 apt install openssh-server
- 51 systemctl edit sshd.service
- 52 systemctl cat sshd.service
- 53 systemctl restart sshd.service
- 54 systemctl status sshd.service
- 55 history
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement