{"id":10508,"date":"2018-07-22T10:12:48","date_gmt":"2018-07-22T08:12:48","guid":{"rendered":"http:\/\/blog.wenzlaff.de\/?p=10508"},"modified":"2021-07-29T11:50:24","modified_gmt":"2021-07-29T09:50:24","slug":"wie-koennen-in-kali-linux-die-ssh-host-keys-und-das-passwort-von-root-erneuert-werden","status":"publish","type":"post","link":"http:\/\/blog.wenzlaff.de\/?p=10508","title":{"rendered":"Wie k\u00f6nnen in Kali Linux die SSH Host Keys und das Passwort von Root erneuert werden?"},"content":{"rendered":"<p>Wer das <a href=\"https:\/\/www.kali.org\/get-kali\/\" rel=\"noopener noreferrer\" target=\"_blank\">Kali Linux installiert<\/a> (Linux kali 4.15.0-kali2-amd64 #1 SMP Debian 4.15.11-1kali1 (2018-03-21) x86_64 GNU\/Linux oder auch jede andere Version \ud83d\ude09 ) hat, <\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.53.20.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.53.20.png\" alt=\"\" width=\"612\" height=\"395\" class=\"aligncenter size-full wp-image-10510\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.53.20.png 612w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.53.20-300x194.png 300w\" sizes=\"auto, (max-width: 612px) 100vw, 612px\" \/><\/a><\/p>\n<p>findet den Hinweis: &#8222;These images have a default password of \u201ctoor\u201d and may have pre-generated SSH host keys.&#8220;. <\/p>\n<p>Das hei\u00dft, das alle Image mit dem gleichen Passwort und dem gleichen SSH Host Key installiert werden.<\/p>\n<p>Das <strong>muss<\/strong> man dann gleich als erstes \u00e4ndern. Das Passwort f\u00fcr Root ist schnell mit <strong>passwd<\/strong> auf der Konsole ge\u00e4ndert:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.34.20.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.34.20.png\" alt=\"\" width=\"859\" height=\"593\" class=\"aligncenter size-full wp-image-10509\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.34.20.png 859w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.34.20-300x207.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-09.34.20-768x530.png 768w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n<p>Auch die SSH Host Keys sind schnell erneuert, einfach auf der Konsole, die alten in ein backup Verzeichnis verschieben:<!--more--><\/p>\n<pre class=\"lang:default decode:true \" >\r\n\r\n# in das ssh Verzeichnis wechseln\r\ncd \/etc\/ssh\r\n# Verzeichnis erstellen\r\nmkdir default_ini_kali_keys\r\n# Keys in das Verzeichnis verschieben\r\nmv ssh_host_* default_ini_kali_keys\/\r\n\r\n# neue Keys erzeugen\r\ndpkg-reconfigure openssh-server\r\n\r\n# SSH Service restarten\r\nsystemctl restart ssh\r\n\r\n<\/pre>\n<p>Dann \u00fcber die GUI auch noch gleich einen neuen User anlegen, damit man root nicht mehr braucht:<\/p>\n<p><a href=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-10.00.37.png\"><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-10.00.37.png\" alt=\"\" width=\"1065\" height=\"788\" class=\"aligncenter size-full wp-image-10512\" srcset=\"http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-10.00.37.png 1065w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-10.00.37-300x222.png 300w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-10.00.37-768x568.png 768w, http:\/\/blog.wenzlaff.de\/wp-content\/uploads\/2018\/07\/Bildschirmfoto-2018-07-22-um-10.00.37-1024x758.png 1024w\" sizes=\"auto, (max-width: 767px) 89vw, (max-width: 1000px) 54vw, (max-width: 1071px) 543px, 580px\" \/><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Wer das Kali Linux installiert (Linux kali 4.15.0-kali2-amd64 #1 SMP Debian 4.15.11-1kali1 (2018-03-21) x86_64 GNU\/Linux oder auch jede andere Version \ud83d\ude09 ) hat, findet den Hinweis: &#8222;These images have a default password of \u201ctoor\u201d and may have pre-generated SSH host keys.&#8220;. Das hei\u00dft, das alle Image mit dem gleichen Passwort und dem gleichen SSH Host &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/blog.wenzlaff.de\/?p=10508\" class=\"more-link\"><span class=\"screen-reader-text\">\u201eWie k\u00f6nnen in Kali Linux die SSH Host Keys und das Passwort von Root erneuert werden?\u201c <\/span>weiterlesen<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[220,2172,808,1319],"tags":[2497,1121,230,740],"class_list":["post-10508","post","type-post","status-publish","format-standard","hentry","category-anleitung","category-kali-linux-2","category-linux-2","category-sicherheit-2","tag-host","tag-kali","tag-linux","tag-ssh"],"_links":{"self":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/10508","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10508"}],"version-history":[{"count":0,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=\/wp\/v2\/posts\/10508\/revisions"}],"wp:attachment":[{"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10508"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10508"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/blog.wenzlaff.de\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10508"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}