{"id":2106,"date":"2026-06-17T07:02:02","date_gmt":"2026-06-17T07:02:02","guid":{"rendered":"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/"},"modified":"2026-07-25T23:30:03","modified_gmt":"2026-07-25T21:30:03","password":"","slug":"cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux","status":"publish","type":"docs","link":"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/","title":{"rendered":"Cum generez o cheie SSH pe un server Linux?"},"content":{"rendered":"<p>O cheie SSH se creeaz\u0103 cu comanda <strong>ssh-keygen<\/strong>. Recomand\u0103m algoritmul modern <strong>ed25519<\/strong> (sau RSA pe 4096 bi\u021bi); algoritmul DSA este dep\u0103\u0219it \u0219i nesigur.<\/p>\n<pre>ssh-keygen -t ed25519 -C \"comentariu@domeniul-tau.ro\"<\/pre>\n<p>La rulare vei fi \u00eentrebat:<\/p>\n<ul>\n<li><strong>Numele fi\u0219ierului<\/strong> \u2014 implicit <code>\/home\/utilizator\/.ssh\/id_ed25519<\/code> (apas\u0103 Enter).<\/li>\n<li><strong>Passphrase<\/strong> \u2014 o parol\u0103 op\u021bional\u0103 pentru cheie (las\u0103 gol dac\u0103 nu vrei s\u0103 \u021bi se cear\u0103 parola la fiecare utilizare).<\/li>\n<\/ul>\n<p>Cheile (privat\u0103 \u0219i public\u0103) se salveaz\u0103 \u00een <code>~\/.ssh\/id_ed25519<\/code> \u0219i <code>~\/.ssh\/id_ed25519.pub<\/code>. Cheia public\u0103 (<code>.pub<\/code>) se copiaz\u0103 pe serverele la care vrei s\u0103 te autentifici (ex. cu <code>ssh-copy-id<\/code>).<\/p>\n","protected":false},"excerpt":{"rendered":"<p>O cheie SSH se creeaz\u0103 cu comanda ssh-keygen. Recomand\u0103m algoritmul modern ed25519 (sau RSA pe 4096 bi\u021bi); algoritmul DSA este dep\u0103\u0219it \u0219i nesigur. ssh-keygen -t ed25519 -C &#8222;comentariu@domeniul-tau.ro&#8221; La rulare vei fi \u00eentrebat: Numele fi\u0219ierului \u2014 implicit \/home\/utilizator\/.ssh\/id_ed25519 (apas\u0103 Enter). Passphrase \u2014 o parol\u0103 op\u021bional\u0103 pentru cheie (las\u0103 gol dac\u0103 nu vrei s\u0103 \u021bi se &#8230; <a title=\"Cum generez o cheie SSH pe un server Linux?\" class=\"read-more\" href=\"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/\" aria-label=\"Cite\u0219te mai multe despre Cum generez o cheie SSH pe un server Linux?\">Cite\u0219te mai mult<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"inline_featured_image":false,"whmcs_kb_id":1381,"footnotes":""},"doc_category":[201],"doc_tag":[257,243,289,245,240],"class_list":["post-2106","docs","type-docs","status-publish","hentry","doc_category-linux","doc_tag-autentificare","doc_tag-linia-de-comanda","doc_tag-linux","doc_tag-securitate","doc_tag-ssh"],"year_month":"2026-10","word_count":99,"total_views":"21","reactions":{"happy":"0","normal":"0","sad":"0"},"author_info":{"name":"Adrian Firican","author_nicename":"techeditor1","author_url":"https:\/\/www.hostx.ro\/kb\/author\/techeditor1\/"},"doc_category_info":[{"term_name":"Linux","term_url":"https:\/\/www.hostx.ro\/kb\/docs-category\/linux\/"}],"doc_tag_info":[{"term_name":"Autentificare","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/autentificare\/"},{"term_name":"linia de comand\u0103","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/linia-de-comanda\/"},{"term_name":"Linux","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/linux\/"},{"term_name":"securitate","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/securitate\/"},{"term_name":"SSH","term_url":"https:\/\/www.hostx.ro\/kb\/docs-tag\/ssh\/"}],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Cum genereaza cheie SSH pe Linux - Ghid complet - Centrul de suport HostX<\/title>\n<meta name=\"description\" content=\"Ghid complet pentru generarea cheii SSH pe Linux. Utilizeaz\u0103 ssh-keygen cu algoritmul ed25519, configureaz\u0103 passphrase \u0219i salveaz\u0103 cheile \u00een directorul .ssh.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/\" \/>\n<meta property=\"og:locale\" content=\"ro_RO\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Cum genereaza cheie SSH pe Linux - Ghid complet - Centrul de suport HostX\" \/>\n<meta property=\"og:description\" content=\"Ghid complet pentru generarea cheii SSH pe Linux. Utilizeaz\u0103 ssh-keygen cu algoritmul ed25519, configureaz\u0103 passphrase \u0219i salveaz\u0103 cheile \u00een directorul .ssh.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/\" \/>\n<meta property=\"og:site_name\" content=\"Centrul de suport HostX\" \/>\n<meta property=\"article:modified_time\" content=\"2026-07-25T21:30:03+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\\\/\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\\\/\",\"name\":\"Cum genereaza cheie SSH pe Linux - Ghid complet - Centrul de suport HostX\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\"},\"datePublished\":\"2026-06-17T07:02:02+00:00\",\"dateModified\":\"2026-07-25T21:30:03+00:00\",\"description\":\"Ghid complet pentru generarea cheii SSH pe Linux. Utilizeaz\u0103 ssh-keygen cu algoritmul ed25519, configureaz\u0103 passphrase \u0219i salveaz\u0103 cheile \u00een directorul .ssh.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\\\/#breadcrumb\"},\"inLanguage\":\"ro-RO\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Prima pagin\u0103\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"InfoCentru\",\"item\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/docs\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Cum generez o cheie SSH pe un server Linux?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/\",\"name\":\"Centrul de suport HostX\",\"description\":\"tutoriale gazduire web, domenii web \u0219i servere\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.hostx.ro\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ro-RO\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Cum genereaza cheie SSH pe Linux - Ghid complet - Centrul de suport HostX","description":"Ghid complet pentru generarea cheii SSH pe Linux. Utilizeaz\u0103 ssh-keygen cu algoritmul ed25519, configureaz\u0103 passphrase \u0219i salveaz\u0103 cheile \u00een directorul .ssh.","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:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/","og_locale":"ro_RO","og_type":"article","og_title":"Cum genereaza cheie SSH pe Linux - Ghid complet - Centrul de suport HostX","og_description":"Ghid complet pentru generarea cheii SSH pe Linux. Utilizeaz\u0103 ssh-keygen cu algoritmul ed25519, configureaz\u0103 passphrase \u0219i salveaz\u0103 cheile \u00een directorul .ssh.","og_url":"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/","og_site_name":"Centrul de suport HostX","article_modified_time":"2026-07-25T21:30:03+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/","url":"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/","name":"Cum genereaza cheie SSH pe Linux - Ghid complet - Centrul de suport HostX","isPartOf":{"@id":"https:\/\/www.hostx.ro\/kb\/#website"},"datePublished":"2026-06-17T07:02:02+00:00","dateModified":"2026-07-25T21:30:03+00:00","description":"Ghid complet pentru generarea cheii SSH pe Linux. Utilizeaz\u0103 ssh-keygen cu algoritmul ed25519, configureaz\u0103 passphrase \u0219i salveaz\u0103 cheile \u00een directorul .ssh.","breadcrumb":{"@id":"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/#breadcrumb"},"inLanguage":"ro-RO","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.hostx.ro\/kb\/cum-generez-o-cheie-ssh-pe-un-server-dedicat-linux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Prima pagin\u0103","item":"https:\/\/www.hostx.ro\/kb\/"},{"@type":"ListItem","position":2,"name":"InfoCentru","item":"https:\/\/www.hostx.ro\/kb\/docs\/"},{"@type":"ListItem","position":3,"name":"Cum generez o cheie SSH pe un server Linux?"}]},{"@type":"WebSite","@id":"https:\/\/www.hostx.ro\/kb\/#website","url":"https:\/\/www.hostx.ro\/kb\/","name":"Centrul de suport HostX","description":"tutoriale gazduire web, domenii web \u0219i servere","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.hostx.ro\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ro-RO"}]}},"knowledge_base_info":[],"knowledge_base_slug":[],"_links":{"self":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/2106","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/comments?post=2106"}],"version-history":[{"count":2,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/2106\/revisions"}],"predecessor-version":[{"id":5713,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/docs\/2106\/revisions\/5713"}],"wp:attachment":[{"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/media?parent=2106"}],"wp:term":[{"taxonomy":"doc_category","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_category?post=2106"},{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/www.hostx.ro\/kb\/wp-json\/wp\/v2\/doc_tag?post=2106"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}