Advertisement
sandervanvugt

trouble feb21

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