{"id":343,"date":"2021-03-24T12:17:49","date_gmt":"2021-03-24T12:17:49","guid":{"rendered":"https:\/\/hostandtech.com\/help\/?p=343"},"modified":"2021-11-05T00:44:53","modified_gmt":"2021-11-05T00:44:53","slug":"how-to-change-root-password-on-centos-using-ssh","status":"publish","type":"post","link":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/","title":{"rendered":"How To Change Root Password On Centos using SSH"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-post\" data-elementor-id=\"343\" class=\"elementor elementor-343\" data-elementor-post-type=\"post\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5ec6ebd elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5ec6ebd\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f9d5c87\" data-id=\"f9d5c87\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-be340e3 elementor-widget elementor-widget-text-editor\" data-id=\"be340e3\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p>This article shows you how To change root password via SSH in\u00a0Centos operating system.<\/p><p>To login as root in Linux means to have ultimate authority and unquestionable control over the system. Root is the superuser account that has administrative rights to access, modify, delete, or run any file in the system.<\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-50d8aa2 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"50d8aa2\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-f5aea83\" data-id=\"f5aea83\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-c39516c elementor-widget elementor-widget-heading\" data-id=\"c39516c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Prerequisites<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-f2ad8f8 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"f2ad8f8\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-bd96a51\" data-id=\"bd96a51\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-8c819f8 elementor-widget elementor-widget-text-editor\" data-id=\"8c819f8\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ol><li>You should have a <a href=\"https:\/\/hostandtech.com\/help\/general-topics\/what-is-vps-server\/\" target=\"_blank\" rel=\"noopener\">VPS<\/a> or <a href=\"https:\/\/www.hostandtech.com\/cheap-dedicated-hosting-server\/\" target=\"_blank\" rel=\"noopener\">Dedicated Server<\/a> with Linux CentOS 7 installed.<\/li><li>You should have access to your server or to your client control panel to open a KVM console.<\/li><\/ol>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-2d73ea3 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"2d73ea3\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-4f0111d\" data-id=\"4f0111d\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-a610278 elementor-widget elementor-widget-heading\" data-id=\"a610278\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Steps to Change Linux\/Centos root password via SSH<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-80eba2d elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"80eba2d\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-60c42e8\" data-id=\"60c42e8\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-7ede753 elementor-widget elementor-widget-text-editor\" data-id=\"7ede753\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Use SSH connection to login to your server, now simply run the following commands in order to change your root or current password as bellow:<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-c2afe84 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"c2afe84\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-aedfa40\" data-id=\"aedfa40\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-4c456c2 elementor-widget elementor-widget-code-highlight\" data-id=\"4c456c2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"code-highlight.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"prismjs-okaidia copy-to-clipboard \">\n\t\t\t<pre data-line=\"\" class=\"highlight-height language-bash \">\n\t\t\t\t<code readonly=\"true\" class=\"language-bash\">\n\t\t\t\t\t<xmp>passwd<\/xmp>\n\t\t\t\t<\/code>\n\t\t\t<\/pre>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-8d7cc3b elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"8d7cc3b\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-48e2c66\" data-id=\"48e2c66\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-17a2f7a elementor-widget elementor-widget-text-editor\" data-id=\"17a2f7a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Now enter a new password then, retype your new password as follow:<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-5a187df elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"5a187df\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-0854497\" data-id=\"0854497\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-0716ed2 elementor-widget elementor-widget-image\" data-id=\"0716ed2\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"image.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<img decoding=\"async\" width=\"570\" height=\"47\" src=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/03\/Root-Password-command.png\" class=\"attachment-medium_large size-medium_large wp-image-11578\" alt=\"Root Password command\" srcset=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/03\/Root-Password-command.png 570w, https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/03\/Root-Password-command-300x25.png 300w\" sizes=\"(max-width: 570px) 100vw, 570px\" \/>\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-9be04f0 elementor-section-boxed elementor-section-height-default elementor-section-height-default\" data-id=\"9be04f0\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-427aa25\" data-id=\"427aa25\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-bfe0c8c elementor-widget elementor-widget-text-editor\" data-id=\"bfe0c8c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<ul><li>Now your new password should work successfully.<\/li><\/ul>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-a8e024b elementor-alert-danger elementor-widget elementor-widget-alert\" data-id=\"a8e024b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"alert.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-alert\" role=\"alert\">\n\n\t\t\t\t\t\t<span class=\"elementor-alert-title\">Recommendation<\/span>\n\t\t\t\n\t\t\t\t\t\t<span class=\"elementor-alert-description\">You should set a strong password for the root account. It should be at least 10 characters, with special characters, uppercase and lowercase letters.Also, it should not contain any words that are easily found in a dictionary.<\/span>\n\t\t\t\n\t\t\t\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-634973d elementor-widget elementor-widget-elementor-faq-schema\" data-id=\"634973d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"elementor-faq-schema.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t                                    <script type=\"application\/ld+json\">\n                    {\n                        \"@context\": \"https:\/\/schema.org\",\n                        \"@type\": \"FAQPage\",\n                        \"mainEntity\": [\n                         {\n                            \"@type\": \"Question\",\n                            \"name\": \"How Do I Change Root Password On Centos Using SSH?\",\n                            \"acceptedAnswer\": {\n                                \"@type\": \"Answer\",\n                                \"text\": \"&lt;ul&gt;&lt;li&gt;login to your server, and run the following command: passwd&lt;\/li&gt;&lt;li&gt;enter a new password then, retype your new password.&lt;\/li&gt;&lt;li&gt;Now your new password should work successfully.\u00a0&lt;\/li&gt;&lt;\/ul&gt;\"\n                            }\n                                                    }\n                    ]\n                    }\n                <\/script>\n                    \t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>This article shows you how To change root password via SSH in&nbsp;Centos operating system. To login as root in Linux means to have ultimate authority and unquestionable control over the system. Root is the superuser account that has administrative rights to access, modify, delete, or run any file in the system. Prerequisites You should have [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":1817,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[250],"tags":[124,269,280,278,284],"class_list":["post-343","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-centos","tag-dedicated-server","tag-linux-administrators","tag-linux-command","tag-vps-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Change Root Password On Centos Using SHH And Set Strong Password<\/title>\n<meta name=\"description\" content=\"Steps to change root password on Centos OS using SSH connection to login to your server then run passwd command and set a strong new password\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Change Root Password On Centos Using SHH And Set Strong Password\" \/>\n<meta property=\"og:description\" content=\"Steps to change root password on Centos OS using SSH connection to login to your server then run passwd command and set a strong new password\" \/>\n<meta property=\"og:url\" content=\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/\" \/>\n<meta property=\"og:site_name\" content=\"STS Host and Tech Knowledge base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/stshostandtech\" \/>\n<meta property=\"article:published_time\" content=\"2021-03-24T12:17:49+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-11-05T00:44:53+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/09\/change-root-password-on-centos.jpeg\" \/>\n\t<meta property=\"og:image:width\" content=\"300\" \/>\n\t<meta property=\"og:image:height\" content=\"168\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"HostandTech Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"Change Root Password On Centos Using SHH And Set Strong Password\" \/>\n<meta name=\"twitter:description\" content=\"Steps to change root password on Centos OS using SSH connection to login to your server then run passwd command and set a strong new password\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/09\/change-root-password-on-centos.jpeg\" \/>\n<meta name=\"twitter:creator\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:site\" content=\"@stshostandtech\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"HostandTech Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/\"},\"author\":{\"name\":\"HostandTech Support\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042\"},\"headline\":\"How To Change Root Password On Centos using SSH\",\"datePublished\":\"2021-03-24T12:17:49+00:00\",\"dateModified\":\"2021-11-05T00:44:53+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/\"},\"wordCount\":184,\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/change-root-password-on-centos.jpeg\",\"keywords\":[\"CentOS\",\"Dedicated Server\",\"Linux Administrators\",\"Linux Command\",\"VPS Server\"],\"articleSection\":[\"Linux\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/\",\"url\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/\",\"name\":\"Change Root Password On Centos Using SHH And Set Strong Password\",\"isPartOf\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/change-root-password-on-centos.jpeg\",\"datePublished\":\"2021-03-24T12:17:49+00:00\",\"dateModified\":\"2021-11-05T00:44:53+00:00\",\"description\":\"Steps to change root password on Centos OS using SSH connection to login to your server then run passwd command and set a strong new password\",\"breadcrumb\":{\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#primaryimage\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/change-root-password-on-centos.jpeg\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/change-root-password-on-centos.jpeg\",\"width\":300,\"height\":168,\"caption\":\"change root password on centos\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/hostandtech.com\/help\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Change Root Password On Centos using SSH\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/hostandtech.com\/help\/#website\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"name\":\"STS Host and Tech Knowledge base\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/hostandtech.com\/help\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/hostandtech.com\/help\/#organization\",\"name\":\"STS Host and Tech Inc\",\"url\":\"https:\/\/hostandtech.com\/help\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"contentUrl\":\"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png\",\"width\":630,\"height\":270,\"caption\":\"STS Host and Tech Inc\"},\"image\":{\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/stshostandtech\",\"https:\/\/x.com\/stshostandtech\",\"https:\/\/www.instagram.com\/stshostandtech\",\"https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042\",\"name\":\"HostandTech Support\",\"url\":\"https:\/\/hostandtech.com\/help\/author\/m-hajobied\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Change Root Password On Centos Using SHH And Set Strong Password","description":"Steps to change root password on Centos OS using SSH connection to login to your server then run passwd command and set a strong new password","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/","og_locale":"en_US","og_type":"article","og_title":"Change Root Password On Centos Using SHH And Set Strong Password","og_description":"Steps to change root password on Centos OS using SSH connection to login to your server then run passwd command and set a strong new password","og_url":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/","og_site_name":"STS Host and Tech Knowledge base","article_publisher":"https:\/\/www.facebook.com\/stshostandtech","article_published_time":"2021-03-24T12:17:49+00:00","article_modified_time":"2021-11-05T00:44:53+00:00","og_image":[{"width":300,"height":168,"url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/09\/change-root-password-on-centos.jpeg","type":"image\/jpeg"}],"author":"HostandTech Support","twitter_card":"summary_large_image","twitter_title":"Change Root Password On Centos Using SHH And Set Strong Password","twitter_description":"Steps to change root password on Centos OS using SSH connection to login to your server then run passwd command and set a strong new password","twitter_image":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/09\/change-root-password-on-centos.jpeg","twitter_creator":"@stshostandtech","twitter_site":"@stshostandtech","twitter_misc":{"Written by":"HostandTech Support","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#article","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/"},"author":{"name":"HostandTech Support","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042"},"headline":"How To Change Root Password On Centos using SSH","datePublished":"2021-03-24T12:17:49+00:00","dateModified":"2021-11-05T00:44:53+00:00","mainEntityOfPage":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/"},"wordCount":184,"publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"image":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/change-root-password-on-centos.jpeg","keywords":["CentOS","Dedicated Server","Linux Administrators","Linux Command","VPS Server"],"articleSection":["Linux"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/","url":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/","name":"Change Root Password On Centos Using SHH And Set Strong Password","isPartOf":{"@id":"https:\/\/hostandtech.com\/help\/#website"},"primaryImageOfPage":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#primaryimage"},"image":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#primaryimage"},"thumbnailUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/change-root-password-on-centos.jpeg","datePublished":"2021-03-24T12:17:49+00:00","dateModified":"2021-11-05T00:44:53+00:00","description":"Steps to change root password on Centos OS using SSH connection to login to your server then run passwd command and set a strong new password","breadcrumb":{"@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#primaryimage","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/change-root-password-on-centos.jpeg","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2021\/07\/change-root-password-on-centos.jpeg","width":300,"height":168,"caption":"change root password on centos"},{"@type":"BreadcrumbList","@id":"https:\/\/hostandtech.com\/help\/linux\/how-to-change-root-password-on-centos-using-ssh\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/hostandtech.com\/help\/"},{"@type":"ListItem","position":2,"name":"How To Change Root Password On Centos using SSH"}]},{"@type":"WebSite","@id":"https:\/\/hostandtech.com\/help\/#website","url":"https:\/\/hostandtech.com\/help\/","name":"STS Host and Tech Knowledge base","description":"","publisher":{"@id":"https:\/\/hostandtech.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/hostandtech.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/hostandtech.com\/help\/#organization","name":"STS Host and Tech Inc","url":"https:\/\/hostandtech.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","contentUrl":"https:\/\/hostandtech.com\/help\/wp-content\/uploads\/2022\/02\/hostandtechlogo-1.png","width":630,"height":270,"caption":"STS Host and Tech Inc"},"image":{"@id":"https:\/\/hostandtech.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/stshostandtech","https:\/\/x.com\/stshostandtech","https:\/\/www.instagram.com\/stshostandtech","https:\/\/www.youtube.com\/channel\/UCqJOPwWE0ILTeIScaND7enw"]},{"@type":"Person","@id":"https:\/\/hostandtech.com\/help\/#\/schema\/person\/141140aea3ea46eb153a44601194d042","name":"HostandTech Support","url":"https:\/\/hostandtech.com\/help\/author\/m-hajobied\/"}]}},"_links":{"self":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/343","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/comments?post=343"}],"version-history":[{"count":147,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/343\/revisions"}],"predecessor-version":[{"id":11598,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/posts\/343\/revisions\/11598"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media\/1817"}],"wp:attachment":[{"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/media?parent=343"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/categories?post=343"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hostandtech.com\/help\/wp-json\/wp\/v2\/tags?post=343"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}