{"id":9327,"date":"2016-01-04T13:56:03","date_gmt":"2016-01-04T11:56:03","guid":{"rendered":"http:\/\/blog.natro.com\/?p=9327"},"modified":"2022-03-25T10:45:14","modified_gmt":"2022-03-25T07:45:14","slug":"ssh-key-ile-linux-sunuculariniza-sifresiz-erisim","status":"publish","type":"post","link":"https:\/\/www.natro.com\/blog\/ssh-key-ile-linux-sunuculariniza-sifresiz-erisim\/","title":{"rendered":"SSH Key ile Linux Sunucular\u0131n\u0131za \u015eifresiz Eri\u015fim"},"content":{"rendered":"<p><span style=\"font-size: 16px;\">Bu yaz\u0131m\u0131zda bir \u00e7ok <strong>web server<\/strong> y\u00f6neticisine kolayl\u0131k sa\u011flayacak olan <strong>SSH key<\/strong>\u00a0ile \u015eifresiz SSH eri\u015fimi anlat\u0131yor olaca\u011f\u0131z. Ayr\u0131ca bu y\u00f6ntem farkl\u0131 i\u015flem ad\u0131mlar\u0131nda da bize yard\u0131mc\u0131 olabilir. \u00d6rne\u011fin uzak sunucu dosya transferi, script running, ve auto backup vb. i\u015flemleride ger\u00e7ekle\u015ftirebiliriz.<\/span><\/p>\n<p><!--more--><\/p>\n<p><span style=\"font-size: 16px;\">Vakit bulduk\u00e7a bu konularada ilerleyen yaz\u0131lar\u0131mda de\u011finmi\u015f olaca\u011f\u0131m.<\/span><\/p>\n<p><span style=\"font-size: 16px;\">\u015eimdi i\u015flem ad\u0131mlar\u0131na ge\u00e7ebiliriz. 2 farkl\u0131 <strong>Linux <\/strong>platformuna sahip oldu\u011fumuz d\u00fc\u015f\u00fcnelim. Sunucular\u0131m\u0131zdan birinin ismi X di\u011ferinin ismi ise Y olsun. A\u015fa\u011f\u0131da bilgisini sunaca\u011f\u0131m i\u015flem ad\u0131mlar\u0131 X sunucusundan Y sunucusuna h\u0131zl\u0131 ve kolay bir \u015fekilde \u015fifresiz eri\u015fimin nas\u0131l yap\u0131labilece\u011fini anlatmaktad\u0131r.<\/span><\/p>\n<p><span style=\"font-size: 16px;\">\u201d \u00d6ncelikle <strong>SSH-Keygen<\/strong> yap\u0131s\u0131n\u0131 editlememiz laz\u0131m. Bu sayede do\u011frulama anahtar\u0131n\u0131 olu\u015fturmu\u015f olaca\u011f\u0131z.<\/span><\/p>\n<p><span style=\"font-size: 16px;\">Yap\u0131land\u0131rmam\u0131za \u201cX\u201d kodlu sunucumuzdan ba\u015flayal\u0131m. A\u015fa\u011f\u0131da iletmi\u015f oldu\u011fum g\u00f6rselde yer alan komut ad\u0131mlar\u0131n\u0131 takip ederek <strong>SSH key<\/strong> dosyam\u0131z\u0131 olu\u015fturabiliriz.<\/span><\/p>\n<p><span style=\"font-size: 16px;\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9328\" title=\"\" src=\"https:\/\/www.natro.com\/blog\/wp-content\/uploads\/2015\/12\/1.png\" alt=\"ssh-key\" width=\"700\" height=\"481\"><\/span><\/p>\n<p><span style=\"font-size: 16px;\"><strong>ssh-keygen -t rsa<\/strong> komutunu girdikten sonra sistem sizden 2 farkl\u0131 komut daha girmenizi isteyecektir. Enter tu\u015funa basarak devam edebilirsiniz. \u00d6rnek ald\u0131\u011f\u0131m sunucuda ilgili dosya olmas\u0131 nedeniyle <strong>Owerwrite <\/strong>sorunu taraf\u0131ma y\u00f6neldi. E\u011fer sizde bu komutla kar\u015f\u0131la\u015f\u0131rsan\u0131z \u201cY\u201d komutunu girip enter tu\u015funa basabilir ve i\u015flem ad\u0131mlar\u0131na devam edebilirsiniz.<\/span><\/p>\n<p><span style=\"font-size: 16px;\"><strong>SSH key<\/strong> dosyam\u0131z\u0131 olu\u015fturduk. \u015eimdi bu dosyay\u0131 \u201cY\u201d sunucumuza aktarmam\u0131z gerekir. Aktar\u0131m i\u00e7in en h\u0131zl\u0131 ve ideal \u00e7\u00f6z\u00fcm <strong>SCP <\/strong>yap\u0131s\u0131n\u0131 kullanmak olacak.<\/span><\/p>\n<p><span style=\"font-size: 16px;\">A\u015fa\u011f\u0131da yer alan komutu kullanarak <strong>SCP <\/strong>yard\u0131m\u0131yla dosyam\u0131z\u0131 \u201cY\u201d sunucumuza transfer edebiliriz.<\/span><\/p>\n<blockquote>\n<p><span style=\"font-size: 16px;\"><strong>Not:<\/strong> Transfer edilmesi gereken <strong>id_rsa_pub<\/strong> isimli dosyad\u0131r. Dosyan\u0131n komutlar\u0131 girdikten sonra olu\u015fup olu\u015fmad\u0131\u011f\u0131n\u0131 kontrol edebilmek i\u00e7in <strong>root\/.ssh dizininde ls -h<\/strong> komutunu kullanabilir ve dosyalar\u0131 listeleyebilirsiniz.<\/span><\/p>\n<\/blockquote>\n<p><strong><span style=\"font-size: 16px;\">SCP Komutu:<\/span><\/strong><\/p>\n<p><span style=\"font-size: 16px;\"><strong>scp -P1064 root\/.ssh\/id_rsa_pub\u00a0root@\u201dY\u201dsunucuipadresi:\/root<\/strong>\u00a0<\/span><\/p>\n<p><span style=\"font-size: 16px;\">SCP yard\u0131m\u0131yla 1064 portunu kullanarak\u00a0<strong>root\/.ssh\/\u00a0<\/strong>dizininde bulunan\u00a0<strong>id_rsa_pub<\/strong> isimli dosyam\u0131z\u0131 \u201cY\u201d kodlu sunucumuzda root dizinine aktarm\u0131\u015f olduk. Komutu \u00e7al\u0131\u015ft\u0131rd\u0131ktan sonra sistem sizden \u201cY\u201d sunucusunun \u015fifresini isteyecektir. \u015eifreyi girerek i\u015flemi tamamlayabilirsiniz.<\/span><\/p>\n<p><span style=\"font-size: 16px;\"><a title=\"\" href=\"https:\/\/www.natro.com\/blog\/wp-content\/uploads\/2015\/12\/2.png\" target=\"\" rel=\"attachment wp-att-9329 noopener\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9329\" title=\"\" src=\"https:\/\/www.natro.com\/blog\/wp-content\/uploads\/2015\/12\/2.png\" alt=\"scp komutu\" width=\"700\" height=\"122\"><\/a><\/span><\/p>\n<p><span style=\"font-size: 16px;\">\u0130\u015flem ad\u0131mlar\u0131n\u0131n sonuna yakla\u015ft\u0131k. Son olarak \u201d Y \u201d sunucumuzu yap\u0131land\u0131rmam\u0131z gerekiyor. A\u015fa\u011f\u0131da payla\u015ft\u0131\u011f\u0131m komutu \u201d Y \u201d sunucumuzda \u00e7al\u0131\u015ft\u0131rmam\u0131z yeterli olacak.<\/span><\/p>\n<p><strong><span style=\"font-size: 16px;\">\u00a0cat \/root\/id_rsa.pub > \/root\/.ssh\/authorized_keys<\/span><\/strong><\/p>\n<p><span style=\"font-size: 16px;\"><a href=\"https:\/\/www.natro.com\/blog\/wp-content\/uploads\/2015\/12\/3.png\" rel=\"attachment wp-att-9330\"><img decoding=\"async\" class=\"aligncenter size-full wp-image-9330\" src=\"https:\/\/www.natro.com\/blog\/wp-content\/uploads\/2015\/12\/3.png\" alt=\"3\" width=\"700\" height=\"59\"><\/a><\/span><\/p>\n<p><span style=\"font-size: 16px;\">T\u00fcm i\u015flem ad\u0131mlar\u0131n\u0131 tamamlad\u0131k. Art\u0131k \u201cY\u201d kodlu sunucumuza \u015fifresiz eri\u015febiliriz. Dilerseniz <strong>SSH root@<\/strong>\u201cY\u201d sunucusu komutumu \u00e7al\u0131\u015ft\u0131rabilir ve testi ger\u00e7ekle\u015ftirebilirsiniz.<\/span><\/p>\n<p><span style=\"font-size: 16px;\">Faydal\u0131 olmas\u0131 dile\u011fiyle.<\/span><\/p>\n<p><\/p>\n\n\n<p class=\"has-background\" style=\"background-color:#cae9fc\">\u0130statistiklere g\u00f6re; crack yaz\u0131l\u0131m, ters proxy, <strong>lisanss\u0131z yaz\u0131l\u0131m <\/strong>kullanan web siteleri, di\u011fer web sitelerine k\u0131yasla daha fazla risk alt\u0131ndad\u0131r. Ayr\u0131ca <strong>lisanss\u0131z panel <\/strong>kullan\u0131m\u0131 hukuki sonu\u00e7lar do\u011furur. Verilerinizi g\u00fcvenle korumak i\u00e7in <strong>orijinal lisansl\u0131 yaz\u0131l\u0131m<\/strong> kullan\u0131n ve hizmet ald\u0131\u011f\u0131n\u0131z firmadan orijinal lisans kulland\u0131klar\u0131na dair mutlaka kan\u0131tlar isteyin.<\/p>\n","protected":false},"excerpt":{"rendered":"Bu yaz\u0131m\u0131zda bir \u00e7ok web server y\u00f6neticisine kolayl\u0131k sa\u011flayacak olan SSH key\u00a0ile \u015eifresiz SSH eri\u015fimi anlat\u0131yor olaca\u011f\u0131z. Ayr\u0131ca&hellip;\n","protected":false},"author":7,"featured_media":24947,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1,28,36],"tags":[314],"class_list":{"0":"post-9327","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-genel","8":"category-nasil-yapilir","9":"category-sunucu","10":"tag-ssh"},"_links":{"self":[{"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/posts\/9327","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/comments?post=9327"}],"version-history":[{"count":2,"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/posts\/9327\/revisions"}],"predecessor-version":[{"id":33108,"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/posts\/9327\/revisions\/33108"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/media\/24947"}],"wp:attachment":[{"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/media?parent=9327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/categories?post=9327"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.natro.com\/blog\/wp-json\/wp\/v2\/tags?post=9327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}