Skip to main content

Trojaned ssh डेमॉन घटक hwclock बाइनरी विकल्प


यह लेख बैकअप YourSystem श्रृंखला का हिस्सा है। अधिक परिचयात्मक जानकारी वहां मिल सकती है। परिचय मैन पेज से: Rsync एक तेज और असाधारण बहुमुखी फाइल प्रतिलिपि उपकरण है। यह स्थानीय रूप से प्रतिलिपि बना सकता है, किसी अन्य होस्ट से किसी भी दूरस्थ शेल पर, या एक दूरस्थ rsync डेमन से। यह बहुत सारे विकल्प प्रदान करता है जो उसके व्यवहार के हर पहलू को नियंत्रित करते हैं और कॉपी किए जाने वाले फाइलों के सेट के बहुत लचीले विनिर्देश की अनुमति देते हैं। यह अपने डेल्टा-ट्रांसफर एल्गोरिथ्म के लिए प्रसिद्ध है, जो स्रोत फ़ाइलों और गंतव्य की मौजूदा फाइलों के बीच केवल अंतर भेजकर नेटवर्क पर भेजे गए डेटा की मात्रा कम करता है। बैकअप और प्रतिबिंब के लिए और हर रोज इस्तेमाल के लिए एक बेहतर प्रति कमांड के रूप में रुपए कनक का व्यापक रूप से उपयोग किया जाता है दूसरे शब्दों में, rsync एक स्थान (स्रोत) से दूसरे स्थान (गंतव्य) के डेटा को कुशलतापूर्वक प्रतिलिपि करने और बैकअप लेने के लिए एक उपकरण है। यह कुशल है क्योंकि यह केवल उन फ़ाइलों को स्थानांतरित करता है जो स्रोत और गंतव्य निर्देशिकाओं के बीच अलग-अलग हैं। Rsync एक कमांड लाइन उपयोगिता है उपयोग करने वाले प्रयोक्ता को कमांड लाइन से परिचित होना चाहिए (टर्मिनल का प्रयोग करना)। यदि आप एक ग्राफिकल इंटरफ़ेस पसंद करते हैं, तो इस पेज के Grsync अनुभाग देखें। इंस्टॉलेशन Rsync डिफ़ॉल्ट रूप से Ubuntu में स्थापित है यह जांचने के लिए सुनिश्चित करें कि क्या निम्न संकुल शुरू करने से पहले इंस्टॉल किया गया है (पैकेज को संस्थापित करना देखें): rsync, xinetd, ssh एक सरल बैकअप करें एक नेटवर्क पर बैकअप लेने के लिए सबसे आसान तरीका है, rsync को एसएसएच के माध्यम से (-e ssh विकल्प का उपयोग करके) का उपयोग करना है। वैकल्पिक रूप से, आप आरएसआईएनसी डेमन का उपयोग कर सकते हैं (रुपयेसीक डीमन देखें जो अधिक से अधिक कॉन्फ़िगरेशन की आवश्यकता होती है।) स्थानीय बैकअप को सिंक्रनाइज़ होने वाले फ़ोल्डर्स तक रीसिसक और रीडराइट एक्सेस की आवश्यकता होती है। नीचे आपको कमांड का उदाहरण मिलेगा जो किसी भी मामले में बैकअप के लिए उपयोग किए जा सकते हैं। नोट किया जाना चाहिए, कि एक नेटवर्क सिंक स्थानीय रूप से तब तक किया जा सकता है जब तक फ़ोल्डर साझा किया जाता है (सांबा द्वारा कहा जाता है) और फिर फ़ोल्डर 1 के साथ मशीन पर रखा जाता है। यह प्रक्रिया एसएसएच का उपयोग करने के लिए हो सकती है लेकिन कम सुरक्षित है और इसे केवल उपयोग किया जाना चाहिए सुरक्षित नेटवर्क में, आपके घर में.बैकअप ओवर नेटवर्क कमांड में उपरोक्त विकल्पों की व्याख्या: - ड्रा-रन यह आरएसआईएनसी को वास्तव में कुछ भी करने के लिए नहीं बताता है। यह सिर्फ स्क्रीन पर ऐसा करने का एक लॉग लिख देगा। एक बार जब आप यह सुनिश्चित कर लेंगे कि सब कुछ आपके काम के रूप में काम करेगा, आपको इस विकल्प को हटाना होगा, और वास्तविक बैकअप को पूरा करने के लिए फिर से कमांड चलाने की जरूरत है .-delete फाइलों को हटाता है जो सिस्टम पर मौजूद नहीं है। (वैकल्पिक) - एक संरक्षित तिथि और टी इमेज, और फाइलों की अनुमतियाँ (जैसे - आरएलपीटीएडीडीए)। इस विकल्प के साथ rsync होगा: सभी निर्देशिकाओं (-आर) में प्रतिलिपि करें, सिमलिंक (-एल) के रूप में कॉपी सिमुलिंक, फ़ाइल अनुमतियों को संरक्षित करें (-p), संशोधन समय (-टी) को संरक्षित करें, फ़ाइल स्वामित्व (-ओ) को संरक्षित करें, और - जे डेटा को संपीड़ित करता है- वीवीआर रिपोर्टिंग प्रक्रिया की क्रियाशीलता को बढ़ाता है - e निर्दिष्ट करता है कि रिमोट शेल को फ़ोल्डर 1 और फ़ोल्डर 2 का उपयोग करने के लिए ऊपर दिए गए उदाहरणों में, फ़ोल्डर 1 और 2 सिंक्रनाइज़ किए जाने वाले निर्देशिकाओं के लिए प्लेसहोल्डर्स हैं। फ़ोल्डर 1 मूल फ़ोल्डर है, और 2 नया फ़ोल्डर है, या मौजूदा एक को पहली बार के साथ समन्वयन में लाया जाएगा। उन्हें आप जैसे फ़ोल्डर्स के साथ बदलें A को फ़ोल्डर 1 के बाद जोड़ा गया था ताकि पूरे फ़ोल्डर की बजाय केवल सामग्री को दूसरे में स्थानांतरित किया जा सके। Rsync कमांड के साथ सभी विकल्पों का एक पूरा सारांश विकल्प सारांश के अंतर्गत मैन पेजों में पाया जा सकता है Rsync के लिए मैन पेज भी linux. die पर पाया जा सकता है Grsync rsync उपयोगिता के लिए एक जीयूआई फ्रंटएंड है। जीयूआई के सरल अंतरफलक में कई मूलभूत विकल्प आरएसआईएनसी के साथ उपलब्ध हैं। यह उन लोगों के लिए उपयोगी है जो कमांड लाइन का उपयोग नहीं करना पसंद करते हैं। स्थापना प्रोग्राम grsync डिफ़ॉल्ट रूप से उबुंटू या किसी अन्य distrubtion पर स्थापित नहीं हुआ है, लेकिन यह मुख्य रिपॉजिटरी से आसानी से उपलब्ध है। ग्रीसिनक सुनिश्चित करने के लिए उबंटु रिपॉजिटरी के यूनिवर्स खंड को आपके सॉफ़्टवेयर स्रोतों में सक्षम किया गया है। तो इस सॉफ्टवेयर को उबुंटू में स्थापित करने के लिए, निम्न पैकेज स्थापित करें। जीएसआईएनसीक विन्यास Grsync को शुरू करने के लिए निम्न मेनू के माध्यम से जाना: अनुप्रयोग --gt सिस्टम उपकरण --gt grsync शुरू करने पर आपको मुख्य विंडो के साथ प्रस्तुत किया जाएगा, जहां सभी कॉन्फ़िगरेशन होते हैं। इस विंडो पर सभी विकल्प हैं जो अधिकांश उपयोगकर्ताओं को कभी भी आवश्यकता होगी। समझाने के लिए, विकल्प सूचीबद्ध होंगे और उनके प्रभाव का उल्लेख किया जाएगा। सत्र - यह फ़ंक्शन दूसरों की प्रोफाइल के समान है प्रत्येक सत्र स्रोत और गंतव्य निर्देशिकाओं का एक अलग सेट, साथ ही फ़ोल्डर जोड़ी से संबंधित कॉन्फ़िगरेशन विकल्प भी संग्रहीत करेगा। यह विभिन्न विकल्पों के अनुसार विभिन्न सेट फ़ोल्डर्स के सिंक्रनाइज़ेशन के लिए अनुमति देता है। सत्र का प्रबंधन सरल है, नया बटन जोड़ने के लिए बस बटन जोड़ें। हटाने के लिए, उस सत्र का चयन करें जिसे आप ड्रॉप डाउन से नहीं चाहते और हटाए हटाना चाहते हैं। स्रोत और गंतव्य - ये दो बक्से दो फ़ोल्डर्स (तकनीकी रूप से निर्देशिकाओं के रूप में संदर्भित हैं) को सूचीबद्ध करते हैं जो सिंक्रनाइज़ किए जाएंगे। सबसे ऊपर एक स्रोत और नीचे गंतव्य है। इसलिए जब आप सिंक्रनाइज़ेशन निष्पादित करते हैं, स्रोत से फाइल को उपयोगकर्ता द्वारा चुने विकल्पों के अनुसार गंतव्य पर प्रतिलिपि किया जाएगा। निर्देशिका निर्दिष्ट करने के लिए या फिर जीयूआई से उनके लिए ब्राउज़ करें या मानक मार्ग सम्मेलनों के अनुसार उन्हें टाइप करें। स्विच - ब्राउज बटन के दाईं ओर स्थित सार्वभौमिक पुनः लोड चिह्न एक आसान बटन है। यह तत्काल गंतव्य के साथ स्रोत को स्विच करेगा। आयात और निर्यात - सत्र को कॉन्फ़िगर करने के बाद, कोई उपयोगकर्ता उन्हें संग्रहण के लिए वापस बैकअप ले सकता है। ऐसा करने के लिए, बस सत्र मेनू पर जाएं और या तो आयात या निर्यात चुनें पूर्व में पूर्व में किए गए बैकअप से एक सत्र को पुनर्स्थापित किया जाएगा, बाद वाले वर्तमान सत्र का बैकअप लेंगे। नोट: यह बैकअप फ़ंक्शन प्रति सत्र आधार पर काम करता है इसका मतलब है, प्रत्येक सत्र जिसे आप बैक अप करना चाहते हैं, उसे ड्रॉप डाउन से चुना जाना चाहिए और उसके बाद बैक अप लिया जाएगा। यदि आपके पास 3 अलग-अलग सत्र हैं, प्रत्येक बारी का चयन करें और उन्हें निर्यात करें। सत्र आयात करते समय एक ही मूल विकल्प - अधिकांश उपयोगकर्ता उन विकल्पों में से अधिकांश पाएंगे, जिनकी उन्हें यहां कभी आवश्यकता होगी। पहले चार स्थानांतरित फाइलों के गुणों को संरक्षित करेगा। अन्य लोग संशोधित करेंगे कि फाइल कैसे प्रतिलिपि की गई है। प्रत्येक विशेष रूप से क्या करता है, इसके बारे में अधिक जानकारी के लिए, विकल्प पर अपने स्थिर कर्सर को मंडराएं और यह एक छोटी सी स्पष्टीकरण प्रदर्शित करेगा। चेक किए गए विकल्प निश्चित तौर पर हैं जो सत्र के दौरान लागू किए जाएंगे। उन्नत विकल्प - यह टैब अधिक विकल्प रखता है, कई उपयोगी और स्व-व्याख्यात्मक हैं। उन लोगों के लिए नहीं समझा जा सकता है, जब एक विकल्प लंबे समय तक माउस के ऊपर रहता है टूलटिप्स प्रदर्शित किए जाएंगे। अतिरिक्त विकल्प - यह प्रविष्टि बॉक्स GUI में प्रस्तुत नहीं किए गए अतिरिक्त विकल्पों के इनपुट की अनुमति देता है, लेकिन उपयोगकर्ता को ज्ञात होता है। केवल अनुभवी उपयोगकर्ताओं के लिए प्रयोग का सुझाव दिया जाता है, दोषपूर्ण विकल्पों के इनपुट में अनपेक्षित परिणाम हो सकते हैं अनुकरण और निष्पादन विंडो पर पिछले दो बटन सिमुलेशन और निष्पादन हैं। सिमुलेशन के लिए बटन बहुत उपयोगी है, जब अनिश्चित विकल्प चयनित विकल्पों के आधार पर क्या होगा। सामान्य हस्तांतरण संवाद स्क्रीन पॉप अप हो जाएगी और मुख्य फलक में, उन फ़ाइलों की सूची जो सूचीबद्ध की गई है, सूचीबद्ध की गई है। उपयोगकर्ता तब सत्यापित कर सकता है कि यह वांछित है या परिवर्तन करना है। एक बार सत्र निष्पादित करें बटन के साथ शुरू हो जाता है, तो संवाद फिर से दिखाई देगा, लेकिन इस बार यह वास्तव में फ़ोल्डरों को तदनुसार संसाधित करेगा। निष्पादित करने से पहले सुनिश्चित करें कि आप सिमुलेशन से खुश हैं। नेटवर्क पर रिमोट बैकअप बैकअप संभव है, अधिमानतः उपयोगकर्ता को नेटवर्क साझा करने के लिए कार्यक्रम को लॉन्च करने से पहले बैक अप करना चाहिए। शेयर फिर ब्राउज़ जीयूआई में सूचीबद्ध किया जाएगा और आसानी से जोड़ा जा सकता है। नेटवर्क के लिए कोई अलग सेक्शन नहीं है, अगर अधिक उन्नत सुविधाओं की आवश्यकता होती है तो उपयोगकर्ता को विकल्पों को देखने के लिए प्रोत्साहित किया जाता है, जिनमें से बहुत से हैं विकल्प विकास के विभिन्न चरणों में कई विकल्प हैं। एक अपूर्ण सूची के लिए, यहां देखें। Rsync डेमॉन rsync डेमॉन दूरस्थ बैकअप के लिए एसएसएच का एक विकल्प है। हालांकि कॉन्फ़िगर करने के लिए और अधिक कठिन है, यह कुछ लाभ प्रदान करता है उदाहरण के लिए, एक संपूर्ण सिस्टम के रिमोट बैकअप को बनाने के लिए SSH का उपयोग करने की आवश्यकता है कि SSH डेमन रूट लॉगिन को अनुमति देता है, जिसे सुरक्षा जोखिम माना जाता है। Rsync डेमन का उपयोग करने के लिए SSH के माध्यम से रूट लॉगिन को निष्क्रिय करने के लिए अनुमति देता है। Rsync डेमॉन का विन्यास 1. xinetd का उपयोग करके rsync को डेमॉन के रूप में प्रारंभ करने के लिए फ़ाइल आदि को संपादित करें। नीचे दी गई प्रविष्टि को गलत से बदलकर इनसेट में बदलना चाहिए। 2. xinetd स्थापित करें क्योंकि यह डिफ़ॉल्ट रूप से स्थापित नहीं है 3. xinetd के माध्यम से आरएसआईएनसीसी को लॉन्च करने के लिए फ़ाइल आदि आदि डालें। इसमें पाठ की निम्नलिखित पंक्तियां होनी चाहिए 4. डेमॉन मोड में rsync के लिए फ़ाइल etcrsyncd. conf कॉन्फ़िगरेशन बनाएँ। फ़ाइल में निम्नलिखित होना चाहिए। फ़ाइल में, उपयोगकर्ता को उपयोगकर्ता के नाम से रिमोट मशीन में लॉग इन किया जाना चाहिए। 5. प्रयोक्ता पासवर्ड के लिए आर्टिसनकोड। उपयोक्ता को उपरोक्त के समान होना चाहिए, पासवर्ड के साथ, जो कि उपयोक्ता के रूप में दूरदराज के मशीन में प्रवेश करने के लिए उपयोग किया जाता था। 6. यह चरण rsyncd. secrets के लिए फ़ाइल अनुमतियों को सेट करता है 7. StartRestart xinetd यह सुनिश्चित करने के लिए निम्न आदेश चलाएं कि सब कुछ ठीक है। सूचीबद्ध आउटपुट सिर्फ एक नमूना है, यह आपके साझा रिमोट मशीन पर होना चाहिए। मेजबाननाम को मशीन के आईपी पते से प्रतिस्थापित किया जा सकता है बैक अप Rsync और एसएसआई (नीचे स्क्रॉल करें यदि आप को कवर किया जाएगा की एक बहुत कम सूचनात्मक सारांश चाहते हैं) जब मैंने पहली बार इस विचार के साथ छेड़छाड़ शुरू की थी, तो पूरे एसएसएच चीज ने मुझे भ्रमित किया, क्योंकि मुझे नहीं लगता कि एसएसएच आसान होगा अंतिम उपयोगकर्ता के उपयोग के लिए जबकि एसएसएच डिज़ाइन में बहुत जटिल है, उन्होंने अंत उपयोगकर्ता के लिए एक प्रमाणीकरण कुंजी सेट अप सेट करने के लिए सुपर आसान बना दिया है। मूलतः, एसएसएच 1 से 1 प्रमाणीकृत कनेक्शन है जो किसी पासवर्ड के बिना प्राप्त किया जा सकता है। एक बार यह जगह होने पर, आप स्वचालित रूप से चलाने के लिए rsync का उपयोग कर सकते हैं। शुरू करने से पहले, कृपया सुनिश्चित करें कि आपने opensh-server को आपके फाइल सर्वर पर स्थापित किया है। अगला, हमें एक महत्वपूर्ण जोड़ी सेट अप करने की आवश्यकता है। आप एक सार्वजनिक कुंजी और निजी कुंजी प्राप्त करेंगे आपको कुछ प्रश्न पूछा जाएगा, जैसे कि आप कुंजी जोड़ी के लिए एक पासवर्ड चाहते हैं या नहीं। मैंने नहीं चुना और मूल रूप से बाकी सभी को डिफ़ॉल्ट रूप से छोड़ दिया। मुझे कोई पासवर्ड नहीं मिला क्योंकि SSH चाबियाँ सुंदर हैं - सुरक्षित, और प्लस मैं इसे स्वचालित करना चाहता था मुझे यकीन नहीं था कि मैं इस प्रक्रिया को स्वचालित कर सकता हूं, जबकि उस पर अभी भी पासवर्ड हो। सार्वजनिक कुंजी को सर्वर पर अधिकृत कीज़ फ़ाइल में कॉपी करने की आवश्यकता है। एक आसान कमांड के लिए धन्यवाद, यह दर्द रहित है जेसन192.168.1.150 को अपनी स्थापना के साथ बदलें। यह आपसे अपना पासवर्ड पूछेंगे अपने पासवर्ड को यूज़र अकाउंट में डालें जिस पर आप फ़ाइल सर्वर पर प्रमाणीकरण कर रहे हैं। एक बार किया, आपको चलाने में सक्षम होना चाहिए: अगर वह पासवर्ड नहीं मांगता है और आपका शीघ्र बदल गया है, तो आप जाने के लिए अच्छा है। अगर उसने आपको एक पासवर्ड के लिए कहा, तो कुछ संभावना है कृपया ध्यान दें, यदि आप एसएसएच कुंजियों (नए को जोड़ने, आदि जोड़ने) के जरिए गड़बड़ कर रहे हैं, तो इसे रीसेट करने के लिए रिबूट की आवश्यकता होती है (कुछ लोगों ने मुझे लॉग आउट करने के लिए कहा है कि काम ठीक भी है)। मुझे इस बारे में पर्याप्त जानकारी नहीं है कि शिक्षित अनुमान लेने के अलावा क्या हो रहा है कि एसएसएच कुंजी आपके सत्र में लॉक हो रही है। जब तक आप मेरे जैसा टिनर करने की योजना नहीं करते हैं, जहां मैं एसएसएच कुंजियों को हटा देता हूं और उन्हें सीखने के उद्देश्य से और अधिक पुन: उत्पन्न करता हूं, तो आप इस मुद्दे पर नहीं चलेंगे। लेकिन यदि आप करते हैं, तो मैं इसे बाहर फेंकना चाहता था। इसलिए, एसएसएच स्थापित है और आप जाने के लिए अच्छा है अब इसके rsyncs बारी क्या आपने एसएसएच के साथ दरवाजा खोल दिया है, अब आपको इसे रसीनल के साथ गियर में रखना होगा Rsync एक दूरस्थ सिंक्रनाइज़ेशन टूल है I मेरे इस्तेमाल के लिए, इसकी बहुत ज्यादा भयानक मैं सुझाव है कि आप लोगों को अधिक जानकारी के लिए rsync मैन पेज पढ़ा। बस एक तरफ ध्यान दें, लिनक्स का प्रयोग करने वाला कोई भी इसे पढ़ता है, कृपया मैन पेज को ध्यान में रखें। वे गूगल की तुलना में तेज़ हैं ईमानदारी से। आप टर्मिनल पर जाकर और मैन आरसीआईएनसी टाइप करके उन्हें पढ़ सकते हैं बेशक, आप किसी अन्य कमांड के लिए rsync को इसके बारे में और अधिक पढ़ने के लिए भी बदल सकते हैं, उर्फ ​​मैन सीपी आदि। मैन पेज झंडे के एक गुच्छा की कार्यक्षमता पर जाएंगे। इनमें से कुछ मैं व्यक्तिगत रूप से उपयोग करता हूं और बीमार नीचे अपने स्वयं के शब्दों में उन्हें कवर करता हूं एक संग्रह मोड यह समय, अनुमतियां, मालिक, समूह और अन्य विभिन्न सेटिंग्स स्रोत के समान रखता है। मुझे - ऐसे उपयोग करना पसंद है क्योंकि यह सुनिश्चित करता है कि फ़ाइल सर्वर पर मेरा डेटा डेस्कटॉप पर मेरे डेटा से मेल खाता है, यहां तक ​​कि नीचे कौन है और किस समय के टिकटों का मालिक है - ज़ संपीड़न मोड मैं वास्तव में वास्तव में इस तक हाल ही में इस्तेमाल किया havent। मुझे यकीन नहीं है कि अगर मुझे कोई अंतर दिखाई दे, क्योंकि rsync बहुत ही तेज है, लेकिन मैं इसे वहां कीचड़ करता हूं, ज्यादातर क्योंकि, क्यों नहीं - बाहर निकालें मोड को शामिल करें ऐसा इसलिए है यदि आप एक विशिष्ट निर्देशिका, कचरा, वीडियो, आदि को बाहर करना चाहते हैं। उदाहरण के लिए, कह सकते हैं कि आप सभी छिपे हुए फ़ोल्डरों को बाहर करना चाहते हैं। आप क्या करेंगे --अतिरिक्त। बराबर चिह्न के बाद नोटिस एक अवधि है और यह सुनिश्चित करता है कि आप वाइल्ड कार्ड कर रहे हैं, जिसका अर्थ है सब कुछ, लेकिन केवल अवधि के बाद। चूंकि छिपे फाइल फ़ोल्डर्स एक अवधि के साथ शुरू होते हैं, आप देख सकते हैं कि यह कैसे शामिल होगा। फोल्डर 1। फोल्डर 2। फोल्डर 3, आदि नोट - व्यक्तिगत तौर पर, मैं निश्चित रूप से excluding. gvfs को सुझाएगा। gvfs गनोम आभासी फाइल सिस्टम है यह अनिवार्य रूप से नेटवर्क संसाधनों के लिए एक माउंट बिंदु के रूप में कार्य करता है। कहें कि आपका फ़ाइल सर्वर. gvfs के माध्यम से पहुंच योग्य है। यदि आप सबकुछ को रद्द कर देते हैं और बाहर नहीं करते हैं। Gvfs, तो आप पहले से ही मौजूद है जो आपके फ़ाइल सर्वर पर डेटा का दोहराकरण कर रहे हैं, क्योंकि यह अपने प्राथमिक फ़ोल्डर में मौजूद है, साथ ही साथ. gvfs आपके फ़ाइल सर्वर के लिए धन्यवाद होमजेंस डॉक्यूमेंट्स होमजेंस म्यूज़िक होमजेंसफिक्स होमज़ेन जीवीएफडस डॉक्यूमेंट्स होमज़ेन जीवीएफ म्यूज़िक होमज़ेन जीवीएफएक्स। जीवीएफएज़ को छोड़कर, आप ये सब एक साथ से बचते हैं। यदि आप एक होम डायरेक्टरी का बैकअप ले रहे हैं, तो आईडी यह कर रहा है। बस --exclude. gvfs का उपयोग करना मेरे लिए काम करता है, लेकिन अगर आपको पूर्ण पथ की आवश्यकता है, तो यह निश्चित रूप से होगा --excludehomejason. gvfs --delete यह गंतव्य पर मौजूद फाइलों को हटा देगा जो स्रोत पर मौजूद नहीं है। कहें कि आपके पास एक ऐसा फ़ोल्डर है जिसमें 100 जीबी डेटा और इसका नामांकित डेटा शामिल है यदि आप इसे डेटा 2 में बदलते हैं, तो आपके सर्वर में डेटा की एक प्रति और डेटा 2 की कुल 200 जीबी होगी। यदि आप अपने सर्वर पर डेटा समान होना चाहते हैं, तो --delete का उपयोग करें। यदि आप कुछ प्रकार की पुरानी फाइल रिडंडंसी चाहते हैं (मुझे पता है कि कुछ लोग इसे पसंद करते हैं), न प्रयोग करें - डिलीट - प्रगति यदि आप मैन्युअल रूप से rsync को चलाते हैं, तो आप सिर्फ एक चमकती कर्सर की बजाय क्या चल रहा है की प्रगति को देख सकेंगे। मैं केवल इस फ्लैग का उपयोग करता हूं अगर मैं मैन्युअल रूप से कमांड चलाने और देखना चाहता हूँ मैं इसका उपयोग करते समय परेशान नहीं हूं और मैं इसे पृष्ठभूमि में स्वचालित करना चाहता हूं। इसके अलावा, इसके स्रोत और गंतव्य की स्थापना के बारे में चलो गंतव्य के साथ शुरू करते हैं, क्योंकि सभी के बाद, एसएसएच के साथ छेड़छाड़ कर रहे थे, इसलिए यह थोड़ा अलग था। गंतव्य के लिए, आपको उपयोगकर्ता, सर्वर और फ़ोल्डर पथ की आवश्यकता होगी। जैसा कि मैंने कहा, मेरा नाम जेसन है, और मेरा फ़ाइल सर्वर 192.168.1.150 है। विशेष रूप से मेरे सर्वर पर मेरा फ़ोल्डर पथ है मीडियानैशसन मेरे मामले में, NAS एक नेटवर्क ड्राइव है जो मैंने साझा किया है, इसलिए मेरी स्थिति के लिए यह बहुत विशिष्ट है आपका अलग होने की संभावना है अपनी स्थिति के लिए गंतव्य को दर्जी। यदि आपका बैकअप ड्राइव mediastorage है और आपके पास फ्रैंक नामक संग्रहण पर एक फ़ोल्डर है, तो mediastoragefrank आदि का उपयोग करें। मेरे मामले में: यह मेरा गंतव्य है। अब, स्रोतों के बारे में वे काफी सरल हैं, क्योंकि इसके उपरोक्त संस्करणों में से केवल इसके अलावा उपयोगकर्ताकर्त्ता शामिल नहीं है अगर आप अपनी पूरी घरेलू निर्देशिका को सिंक्रनाइज़ करना चाहते हैं, तो आप ऐसा ही कर सकते हैं: यदि आप अपना संपूर्ण होम निर्देशिका सिंक्रनाइज़ करना चाहते हैं, लेकिन. gvfs और --delete फ्लैग के बहिष्कार के साथ, का प्रयोग करें: इसे का आदान-प्रदान अब नोट करें, आपके पास कई स्रोत भी हो सकते हैं, जो इसे आसान बनाता है यदि आप केवल कुछ विशिष्ट फ़ोल्डरों को अपने फ़ाइल सर्वर पर बैकअप लेना चाहते हैं मेरे मामले में, मेरे पास फ़ाइल सर्वर स्थान सीमित था, इसलिए मैं केवल अपने फ़ाइल सर्वर पर सबसे महत्वपूर्ण डेटा का बैकअप लेना चाहता था, जो मेरे पास दस्तावेज़ और तस्वीरें हैं I उदाहरण: आप विशिष्ट समय पर चलने के लिए इसके लिए एक क्रॉन नौकरी सेट कर सकते हैं। मैंने कभी भी rsync को रूट के रूप में नहीं चलाया है, इसलिए जब मैं इसे क्रोन में सेट करता हूं, तो इसे जेसन के रूप में लॉन्च किया जाता है और सिर्फ ऊपर के rsync कमांड को टैग किया जाता है Ive क्योंकि क्रोन मार्ग से दूर चले गए। मैं रात में अपना कंप्यूटर बंद कर देता हूं, लेकिन मेरा फाइल सर्वर हर समय बनी रहती है, मैंने अपने लिए बैकअप करने के लिए स्टार्टअप एप्लीकेशन में एक प्रविष्टि जोड़ दी थी, जो आसान है क्योंकि यह सिस्टम स्टार्टअप पर चलता है। मैंने इसका नाम NAS बैकअप रखा है और कमांड क्षेत्र में उपरोक्त आदेश डाल दिया है। सब कुछ मुझे पसंद है शून्य इनपुट के साथ एक आकर्षण की तरह काम करता है imagessmiliesguitar. gif त्वरित टिप, यदि आप एक सभ्य rsync GUI की जांच करना चाहते हैं, तो जीएसआईएनसी को आग लगा दें। इसका उपयोग करना आसान है और यदि आप पूरी तरह से अभी तक अभी तक सुनिश्चित नहीं हैं, तो आप rsync आदेश को व्यवस्थित करने में मदद करेंगे। बस ध्यान दें, GUI में कोई --अनुवाद फ्लैग नहीं है, इसलिए आपको इसे अतिरिक्त विकल्प के अंतर्गत मैन्युअल रूप से जोड़ना होगा, लेकिन यह बहुत सुंदर है - ऐसा करना आसान है Grsync भी उपयोग नहीं करता है- लेकिन, इसके बजाय यह एक-टू-टू-पी-पी - जी आदि को तोड़ता है। यह देखने के लिए कि क्यों यह लिट्लिनो अंतर बनाता है, के तहत rsync मैन पेज पढ़ें। एक बार जब आप इसे चाहते हैं, तो आप एक टेस्ट रन भी कर सकते हैं, जो यह सुनिश्चित करने के लिए जीएससीएनसी की एक विशेष विशेषता है कि यह हरे रंग की रोशनी देने से पहले ठीक से काम करता है। यह सब ठीक है और आप कर रहे हैं, आप इस grsync नौकरी के साथ शेड्यूल कर सकते हैं, आप इसे अनुमान लगाया है, या तो स्टार्टअप एप्लिकेशन या क्रोन। ध्यान रखें, इसके लिए वाक्यविन्यास grsync - e नौकरी का नाम है इसलिए यदि आपने जॉब बैकअप का नाम दिया है, तो आप जीएसआईएनसी-बै बैकअप चला सकते हैं। क्रोन या स्टार्टअप एप्लीकेशन के लिए यह वही होगा मैंने इसे स्टार्टअप एप्लीकेशन में चलाने का परीक्षण किया जब मैं लॉग इन करता हूं तो मुझे एक GUI विंडो के साथ आता है कि मुझे डेटा ट्रांसफर की स्थिति दिखाती है। अगर मैं स्टार्टअप एप्लिकेशन के साथ मार्ग चलाता हूँ और बस में पूर्ण rsync कमांड फेंक रहा है, तो यह पृष्ठभूमि में पूरी तरह से करता है। आप चाहते हैं कि कितने दृश्य स्थिति के आधार पर आप किस मार्ग पर जा सकते हैं किसी भी दर पर, एसएसएच, रुसीज, और ग्रासिंक टीम के लिए गंभीर यश, क्योंकि वे यहां बहुत ही प्रभावशाली तकनीकों का उत्पादन करते हैं। उपरोक्त का मतलब सुपर सूचनात्मक होना था मुझे उम्मीद है कि कुछ उपयोगकर्ता एक बैकअप सिस्टम सेट कर सकते हैं जो उनके लिए काम करता है। ध्यान रखें, आपको कभी नहीं पता होगा कि श्री हार्डड्राइव आप पर टैंक करने जा रहा है, इसलिए आगे की योजना बनाएं। नीचे उन उपयोगकर्ताओं के लिए क्या कर रहे हैं, जो पाठ के एक पर्वत के माध्यम से पढ़ना नहीं चाहते हैं, का एक संक्षिप्त सारांश नीचे दिया गया है। नोट: अपने सेटअप मैच के लिए नीचे की सेटिंग्स को बदलें, जब तक आपका नाम जेसन नहीं हो जाता है और आपका फ़ाइल सर्वर 192.168.1.150 होता है। क्लाइंट स्टार्टअप एप्लीकेशन - नया चयन करें - इसे बैकअप या इसे आप जो भी करें कृपया नाम दें, और कमांड बॉक्से में वांछित रसीनल लाइन जोड़ें, जैसे: स्टीव फ्राइडल्स यूनिक्सविज़ टेक टिप्स कई उपयोगकर्ताओं ने रिमोट लिनक्स को सुरक्षित पहुंच प्रदान करने के लिए सुरक्षित शैल (एसएसपी) कार्यान्वित किया है सिस्टम को समझते हैं, लेकिन यह नहीं पता है कि पासवर्ड प्रमाणीकरण की अनुमति के द्वारा, वे अभी भी इंटरनेट पर कहीं से भीड़-बल के हमलों के लिए खुले हैं। ऐसे इंटरनेट पर कीड़े जो बड़े पैमाने पर चल रहे हैं, जो कमजोर उपयोगकर्ता पासवर्ड संयोजनों को खोजने में प्रभावी नौकरी करते हैं, और इन्हें सुरक्षित शैल के इस्तेमाल से रोका नहीं गया है। इस टेक टिप का विवरण ओपनएसएसएच सर्वर पर चलने वाले लिनक्स सिस्टम से जुड़ने के लिए निशुल्क पुटीटी एसएसएच क्लाइंट का उपयोग कैसे करें, जबकि सार्वजनिक कुंजी एन्क्रिप्शन और एसएसएच एजेंट समर्थन का उपयोग करते हुए यह जानकारी किसी भी यूनिक्स सिस्टम पर किसी भी OpenSSH स्थापना पर लागू होती है - सोलारिस, बीएसडी, ओपनसर्वर - लेकिन इसे लिनक्स प्लेटफ़ॉर्म पर लक्षित किया जाता है जब विशेषताओं के लिए कहा जाता है। स्थापना और सरल configlogin पूर्ण पासवर्ड रहित, एजेंट-आधारित पहुंच प्रदान करने के लिए बहुत सी चरणों की आवश्यकता होती है, इसलिए सिस्टम में नियमित रूप से पासवर्ड की पहुंच के लिए पहला कदम उठाकर इसे बेहतर तरीके से देखें। यह प्रारंभिक स्थापना और अधिक उन्नत सुविधाओं को सक्षम करने से पहले लॉगिन करने की क्षमता का परीक्षण करने की अनुमति देता है। प्रोग्राम्स डाउनलोड और इंस्टॉल करें अधिकांश विंडोज प्रोग्राम्स के विपरीत, पुटी सुइट को इंस्टॉलर की आवश्यकता नहीं होती है: व्यक्तिगत। EXE फ़ाइलों को एक निर्देशिका में छोड़ दिया जाता है जहां वे सीधे चलाए जाते हैं। हम अर्थव्यवस्था और शैली की प्रशंसा करते हैं, जो पुटी लेखक लेखक दर्शाते हैं। फ़ाइलों को किसी भी निर्देशिका में छोड़ा जा सकता है जो उपयोगकर्ता कमांड पथ में है, और हम आम तौर पर सी: बीआईएन का उपयोग करते हैं (यह कैसे कॉन्फ़िगर किया गया है इसके लिए अगले आइटम देखें)। पांच फाइलें पुटी साइट से डाउनलोड की जानी चाहिए PuTTY. exe mdash सुरक्षित शैल क्लाइंट PuTTYgen. exe mdash एसएसएच पब्लिकप्राइवेट की प्रमुख जनरेटर Pagent. exe mdash SSH कुंजी एजेंट PSCP. exe mdash कमांड लाइन से सुरक्षित कॉपी PSFTP. exe mdash FTP - जैसी इंटरफ़ेस के साथ सुरक्षित प्रतिलिपि स्थापना निर्देशिका का बीमा आदेश में है पथ पूरी तरह से पूर्ण पथ या शॉर्टकट के साथ पाल्टी को चलाने के लिए संभव है, प्रथा में यह उपयोगी है जब सीएमडी पर इसकी पूरी तरह से उपलब्ध फाइल सिस्टम में कहीं से भी फ़ाइलों का उपयोग या कॉपी करने के लिए संकेत मिलता है। डेस्कटॉप पर मेरा कंप्यूटर पर राइट-क्लिक करें और गुण चुनें। शीर्ष पर उन्नत टैब पर क्लिक करें, फिर पर्यावरण चर बटन पर क्लिक करें यह सही पर दिखाए गए डायलॉग बॉक्स को लाता है। हमेशा सिस्टम चर विभाग में PATH चर, और कभी-कभी उपयोगकर्ता चर अनुभाग में भी होता है केवल व्यवस्थापकों को सिस्टम वेरिएबल्स तक पहुंच है, इसलिए आवश्यकतानुसार पीएटीएच संपादित करें या जोड़ें हम आम तौर पर पथ की शुरुआत में नई निर्देशिका डालते हैं, और इसे अर्धविराम के साथ बाकी की सूची से अलग किया जाता है। सभी परिवर्तनों को सहेजने के लिए ठीक क्लिक करें। डेस्कटॉप पर एक शॉर्टकट बनाएं पुटी को अक्सर आईटी कार्यकर्ता द्वारा भारी रूप से उपयोग किया जाता है, इसलिए आसान पहुंच बनाने के लिए डेस्कटॉप पर शॉर्टकट का उपयोग करना उपयोगी होता है। इसे जोड़ने के लिए, डेस्कटॉप पर राइट-क्लिक करें और नया शॉर्टकट क्लिक करें। या तो पुटी निष्पादन योग्य के पथ को ब्राउज़ करें, या इसके नाम पर टाइप करें। हमारे उदाहरण में, इसकी गई C: binputty. exe ठीक क्लिक करें और शॉर्टकट को सुविधाजनक नाम दें। लॉन्च पुट्टी और शॉर्टकट के माध्यम से लक्ष्य प्रणाली लॉन्च पुट्टी के लिए कॉन्फ़िगर करें, और यह कॉन्फ़िगरेशन डायलॉग बॉक्स प्रदर्शित करेगा: यहां कई विकल्प हैं सिस्टम में पासवर्ड की पहुँच प्रदान करने के लिए कई में भरें, फिर बाद में सार्वजनिक कुंजी पहुंच के लिए कॉन्फ़िगर करें। श्रेणी: होस्ट नाम: dbserver प्रोटोकॉल: () एसएसएच कनेक्शन। डेटा ऑटो-लॉगिन उपयोगकर्ता नाम: स्टीव कनेक्शन एसएसएच पसंदीदा एसएसएच प्रोटोकॉल संस्करणः () 2 केवल एक बार जब ये सरल सेटिंग दर्ज हो जाएंगी, तो उन्हें अगली बार आसान पहुंच बनाने के लिए बचाया जा सकता है। बाईं ओर सत्र पर क्लिक करें, फिर सहेजे गए सत्रों में एक नाम दर्ज करें - यह नाम आम तौर से उस मशीन से संबंधित होगा जिसे आप कनेक्ट कर रहे हैं रजिस्ट्री में इन सेटिंग्स को स्टोर करने के लिए सहेजें पर क्लिक करें: हमने नाम डेटाबेस सर्वर चुना है I लॉग इन पिछले चरण से सहेजी गई सेटिंग्स के साथ, वे लक्ष्य प्रणाली से कनेक्ट करने के लिए उपयोग करना चाहते हैं। लॉन्च पुटी (यदि पहले से ही खुला नहीं है), और सत्र अनुभाग में, सहेजे गए सत्र के नाम पर क्लिक करें और लोड पर क्लिक करें। कनेक्शन लॉन्च करने के लिए ओपन पर क्लिक करें। संकेत दिए जाने पर, दूरस्थ सिस्टम पर अपने खाते के लिए पासवर्ड दर्ज करें, और यदि सही हो, तो आपको एक शेल प्राप्त होगा। अब आप सिस्टम पर काम करना शुरू कर सकते हैं। हालांकि - हर बार पुटीटी एक सर्वर से जुड़ जाती है, यह मेजबान कुंजियों के रूप में पहचान का आदान-प्रदान करती है। यदि मेजबान कुंजी अज्ञात है, या जो हमने पहले देखा है, उससे मेल नहीं खाता है, तो यह उपयोगकर्ता को चेतावनी देता है। अज्ञात मेजबानों के लिए, यह ज्यादातर एक प्रोपेरा ऑपरेशन है, लेकिन पूर्व-ज्ञात सिस्टमों के लिए यह सुझाव दे सकता है कि मेजबान मूल रूप से कनेक्ट होने वाला नहीं है। मेजबान कुंजियां जो चेतावनी के बिना बदल गई हैं, जब लक्ष्य ऑपरेटिंग सिस्टम को बैकअप से होस्ट कुंजी को पुनर्स्थापित किए बिना पुनर्स्थापित किया जा सकता है, या यह कुछ अधिक नापाक हो सकता है जैसे कि वास्तविक होस्ट के रूप में धोखाधड़ी के एक दुष्ट होस्ट एक को अनपेक्षित रूप से बदले गए मेजबान कुंजियों में हमेशा पूछताछ करना चाहिए एकाधिक सत्र बनाना और प्रयोग करना जब उपयोगकर्ता को केवल एक सिस्टम से कनेक्ट करना पड़ता है, तो इस पैरामीटर में कार्यक्रम को डिफ़ॉल्ट सत्र में संभव है, लेकिन कई सिस्टमों तक पहुंचने के लिए यह बहुत अधिक सामान्य है कुछ सेटअप के साथ, हम आसानी से एक क्लिक के साथ इन प्रणालियों से बना और कनेक्ट कर सकते हैं सत्रों को बनाने और सहेजने जैसा कि हमने पिछले अनुभाग में किया था, आवश्यकता के अनुसार कई नामित सत्रों को बनाते और सहेजते हैं, और सत्र के नामों की एक नोट बनाते हैं। इन नामों को कमांड लाइन पर-लोड पैरामीटर के साथ संदर्भित किया जा सकता है, और शॉर्टकट में एम्बेड किया जा सकता है। शॉर्टकट पर राइट-क्लिक करें और गुण चुनें, फिर सत्र के नाम के साथ पैरामीटर लोड करें (उद्धरण में, यदि आवश्यक हो)। शॉर्टकट गुणों को सहेजने के लिए ठीक क्लिक करें। शॉर्टकट का नाम बदलने के लिए यह भी एक अच्छा विचार है कि इसका नाम सर्वर से जुड़ता है: शॉर्टकट पर राइट-क्लिक करें और नाम बदलें चुनें। सत्र शॉर्टकट को पूरी तरह से कॉन्फ़िगर करने के बाद, आइकन पर डबल क्लिक करने से कनेक्शन लॉन्च हो जाता है जितने की जरूरत है उतने पूर्व-प्रोग्राम शॉर्टकट बनाएं पब्लिकप्राइवेट कीपैयर बनाएं और स्थापित करें पब्लिकप्राइवेट की चाबियों का उपयोग किया जाता है तो सुरक्षित शेल की वास्तविक शक्ति खेल में आता है। पासवर्ड प्रमाणीकरण के विपरीत, सार्वजनिक कुंजी का उपयोग बहुत ही लंबी द्विआधारी संख्याओं की एक जोड़ी का एक-बार निर्माण करने के द्वारा किया जाता है जो गणितीय रूप से संबंधित होते हैं। आरंभिक कॉन्फ़िगरेशन चरण मामूली शामिल है, लेकिन केवल एक बार ही किया जाना चाहिए: एक बार बनाया गया, कुंजी को आसानी से कई रिमोट सिस्टम पर स्थापित किया जा सकता है जैसे वांछित PuTTYgen को चलाएं सार्वजनिक-निजी कुंजियों की एक जोड़ी बहुत बड़ी द्विआधारी संख्या वाली mdash छोटी फाइलों की आवश्यकता होती है, और पुट्टीजेन यह आवश्यक है। इसकी चाबियाँ सिर्फ एक बार चाबियों की एक निजी जोड़ी बनाने के लिए होती हैं, जो तब आवश्यकतानुसार स्थापित की जाती हैं। प्रारंभ क्लिक करें फिर भागो । फिर कमांड लाइन बॉक्स में puttygen दर्ज करें। यह दाईं ओर दिखाए गए मुख्य डायलॉग बॉक्स को प्रदर्शित करता है। दिखाए गए मुख्य पैरामीटर का चयन करें, फिर उत्पन्न करें पर क्लिक करें चूंकि डीएसए कंसिसिंग को 1024 बिट्स पर तय किया गया है, और आरएसए कुंजीइजेशन को बहुत बड़ा बनाया जा सकता है, इसलिए हम 2048 बिट आरएसए कुंजी की सिफारिश करते हैं। ध्यान दें कि डिफ़ॉल्ट 1024 बिट है, आपको मैन्युअल रूप से 2048 का चयन करने के लिए ओवरराइड करना होगा। नोट: किसी भी प्रकार की एक SSH संस्करण 1 कुंजी न बनाएं: वे सुरक्षित नहीं हैं माउस को चारों ओर ले जाकर आपको कुछ यादृच्छिकता बनाने के लिए प्रेरित किया जाएगा: यह सिस्टम को कुछ अतिरिक्त एन्ट्रापी देता है जो बेहतर कुंजी बनाने में मदद करता है। इसकी कुंजीपेयर पूरी तरह से जनरेट करने में कुछ सेकंड लगते हैं। कुंजी को सुरक्षित रखें और सहेजें अब कुंजीपैर जनरेट किया गया है, लेकिन केवल प्यूटटीज मेमोरी में मौजूद है: इसे किसी भी उपयोग के लिए डिस्क पर सहेजा जाना है। हालांकि सार्वजनिक कुंजी में कोई संवेदनशील जानकारी नहीं है और दूरस्थ सिस्टम पर स्थापित किया जाएगा, निजी कुंजी को सख्ती से संरक्षित किया जाना चाहिए: निजी कुंजी को जानने वाला कोई भी सभी रिमोट सिस्टम का पूरा भाग है निजी कुंजी को आमतौर पर पासफ़्रेज़ से संरक्षित किया जाता है, और यह वाक्यांश इंगित फ़ील्ड में दो बार दर्ज किया जाता है। टिप्पणी वैकल्पिक है लेकिन मुख्य स्वामी के ईमेल पते का प्रावधान है यह सिर्फ मालिक नाम भी हो सकता है। पासफ़्रेज़ को न भूलें, उसके बिना कीपियर बेकार है। जनरेट की गई कुंजी को अब सहेज लिया जाना चाहिए, और यह तीन भागों में किया जाता है: पब्लिक की सेव करें और निजी कुंजी को सहेजें फ़ाइल नाम के लिए दोनों प्रॉम्प्ट और निजी कुंजी (.पीपीक एक्सटेंशन के साथ) को एक सुरक्षित स्थान पर सहेजा जाना चाहिए। सार्वजनिक कुंजी एक मानक प्रारूप में है और इसे अन्य सॉफ़्टवेयर द्वारा प्रत्यक्ष या अप्रत्यक्ष रूप से उपयोग किया जा सकता है, और ऐसा लगता है: निजी कुंजी एक पुटी-विशिष्ट प्रारूप में है, जिसका उपयोग किसी भी अन्य सॉफ़्टवेयर द्वारा नहीं किया जा सकता है यह ऑपरेटर द्वारा सीधे कभी नहीं देखा जाएगा। लिनक्स सिस्टम पर सार्वजनिक कुंजी को स्थापित करें पटिजिन के साथ अभी भी खुला है, ओपनएसएसएच अधिकृत कीज फ़ाइल क्षेत्र में चिपकाने के लिए पूरी सार्वजनिक कुंजी को हाइलाइट करें और स्थानीय सिस्टम क्लिपबोर्ड की प्रतिलिपि करने के लिए नियंत्रण-सी टाइप करें। यह अनिवार्य रूप से एक समान डेटा है जिसे सहेजे गए सार्वजनिक-कुंजी फ़ाइल में पाया गया है, लेकिन इसका एक रूप जो कि लिनक्स सिस्टम पर सीधे इस्तेमाल किया जा सकता है। खाते के पासवर्ड का उपयोग करके लिनक्स कंप्यूटर पर लॉग इन करें, यदि आवश्यक हो तो.ssh निर्देशिका बनाएं, फिर फ़ाइल को संपादित करें। Sshauthorizedkeys। यह एक पाठ फ़ाइल होगी, और क्लिपबोर्ड को इसमें चिपकाया जाना चाहिए सार्वजनिक कुंजी सिर्फ एक लंबी लाइन होगी, और यह वास्तव में एक आसान तरीके से डेटा चिपकाने के लिए पहले कुछ वर्णों को कम कर देगा। यह कुंजी को निष्क्रिय करता है, इसलिए सुनिश्चित करें कि कुंजी एसएसएच-आरएसए या एसएसएच-डीएसए शुरू होती है फ़ाइल सहेजें। यह सुनिश्चित करें कि दोनों.ssh निर्देशिका और इसके भीतर की फाइलें वर्तमान उपयोगकर्ता (यह एक सुरक्षा सावधानी है) द्वारा पठनीय हैं, और यह chmod आदेश का उपयोग करके संपूर्ण निर्देशिका में लागू पैरामीटर के साथ प्राप्त की जा सकती है: सिस्टम से लॉग आउट करें। नोट - अधिकृत कुंजी फ़ाइल उपयोगकर्ता के स्वामित्व में होनी चाहिए और किसी और के द्वारा पढ़े बिना पढ़े - ओपनएसएसएच सर्वर लॉग इन करने से इनकार करेगा अगर ऐसा नहीं है। कोई इसे ls कमांड के साथ चेक कर सकता है: फ़ाइल मोड होना चाहिए - rw -------। एसएसएच सत्र में निजी कुंजी को संलग्न करें अब जब कि सार्वजनिक निजी कुंजीपैर बनाया गया है, यह एक एसएसएच सत्र से जुड़ा हो सकता है। सबसे पहले, कार्यक्रम को लॉन्च करने और रुचि के सत्र को लोड करके पुटी में यह अच्छी तरह से करें। कनेक्शन पर नेविगेट करें एसएसएच बाएं पर श्रेणी फलक में एथ, फिर प्राइमेटिकेशन फ़ील्ड के लिए निजी कुंजी फाइल को पहले से सहेजा गया। पीपीके फ़ाइल में ब्राउज़ करके आबाद करें। नोट - अन्य सुरक्षित शैल क्लाइंट्स के साथ, हमने सभी सत्रों (एक वैश्विक कॉन्फ़िगरेशन के भाग के रूप में) को निजी कुंजी संलग्न करने की क्षमता को देखा है, लेकिन पुटीटी के साथ प्रत्येक सत्र के लिए कॉन्फ़िगरेशन की आवश्यकता होती है। क्या सुनिश्चित नहीं हैं कि क्यों सत्र श्रेणी स्तर पर लौटें और वर्तमान सत्र को बचाएं। इस बिंदु पर, पुटी (विंडोज पर) और ओपनएसएसएच (लिनक्स पर) दोनों को सुरक्षित, सार्वजनिक-कुंजी पहुंच के लिए कॉन्फ़िगर किया गया है। सार्वजनिक कुंजी के माध्यम से कनेक्ट करें अब जब कॉन्फ़िगरेशन चरण पूरा हो गए हैं, तो वास्तव में सार्वजनिक कुंजी तंत्र का उपयोग करके लॉगिन करने के लिए तैयार थे, पासवर्ड चरण से पूरी तरह से टाल दिया। निजी कुंजी के साथ सहेजे गए सत्र को लोड करने के लिए विकल्प के साथ सुरक्षित रूप से लॉन्च करें PuTTY: खाते के पासवर्ड की सूचना देने के बजाय (जो कि हर रिमोट सिस्टम पर अलग-अलग होगी) इसके बजाए पासफ़्रेज़ की मांग करते हुए जो स्थानीय निजी कुंजी की रक्षा कर रहा है जब निजी कुंजी ओपनएसएसएच सर्वर पर पब्लिक की में फिट हो जाती है, तो एक्सेस दी जाती है और उपयोगकर्ता को प्रस्तुत करने वाला शेल। यह ध्यान देने योग्य है कि यद्यपि उपयोगकर्ता को प्रवेश करते समय एक गुप्त शब्द टाइप करना होगा, तो पासफ़्रेज़ स्थानीय निजी कुंजी के साथ जुड़ा हुआ है। रिमोट अकाउंट नहीं भले ही उपयोगकर्ताओं की सार्वजनिक कुंजी 1,000 अलग-अलग रिमोट सर्वर पर स्थापित की जाती है, वही निजी-कुंजी पासफ़्रेज उन सभी के लिए मांग की जाती है यह बहुत पहुंच प्रमाण पत्र याद रखने का कार्य सरल करता है और मजबूत, सुरक्षित लोगों के चयन को प्रोत्साहित करता है। OpenSSH पर पासवर्ड प्रमाणीकरण अक्षम करना उपयोगकर्ताओं को सार्वजनिक और निजी कुंजीपेयर सही के रूप में सत्यापित कर दिए जाने पर, लिनक्स सर्वर पर पासवर्ड प्रमाणीकरण को पूरी तरह से अक्षम करना संभव है। यह पूरी तरह से जंगल के सभी संभव पासवर्ड-अनुमान लगाने के प्रयासों और नाटकीय रूप से एक मशीन को सुरक्षित करता है। हालांकि, भौतिक रूप से स्थानीय नहीं होने वाली मशीनों के लिए, पासवर्ड का प्रमाणीकरण अक्षम करने के लिए अपने बुद्धिमान से यह स्पष्ट नहीं किया जाता है कि चाबियों का उपयोग ठीक से काम कर रहा है, खासकर यदि कई उपयोगकर्ता शामिल हैं। एक बार पासवर्ड प्रमाणीकरण अक्षम कर दिया गया है, यहां तक ​​कि रूट पासवर्ड सिस्टम में एक को अनुमति नहीं देता। सार्वजनिक कुंजी पहुंच के लिए नए लोगों को बहुत सावधानीपूर्वक परीक्षण करने के लिए प्रोत्साहित किया जाता है। एसएसएच डीमन का विन्यास sshdconfig फ़ाइल में पाया जाता है, जो अक्सर आदि एसएसएसटी निर्देशिका में संग्रहीत होता है। यह एक पाठ फ़ाइल है जो अपेक्षाकृत आसानी से पढ़ने के लिए दो प्रविष्टियों को संशोधित करने के लिए अच्छी तरह से देख रहा है। सबसे पहले पासवर्ड एटिफिकेशन को मान संख्या पर सेट करना है। इसे स्पष्ट रूप से हाँ पर सेट किया जा सकता है or it may be commented out to rely on the default, but we wish to explicitly disable this: Second, we wish to disable SSH protocol version 1: this is old, has several substantial security weaknesses, and should not be allowed from the outside world. Edit the configuration file and ensure that the two keyword entries are set properly comment out the old entries if necessary. Once the configuration file has been saved, the Secure Shell daemon must be restarted on most platforms this can be done with the service mechanism: This kills the listening daemon and restarts it, but does not terminate any existing individual user sessions. Those who feel this might be a risky step are invited to simply reboot the machine. At this point, OpenSSH will no longer accept passwords of any kind, with access granted only for users with pre-established public keys. Enabling SSH Agent Support Up to this point, weve provided a large manner of security of system access, but its still not terribly convenient: we still must type a (hopefully) complex pass phrase each time. This can get tedious when large numbers of systems are involved. Fortunately, the SSH suite provides a wonderful mechanism for unlocking the private key once, and allowing individual ssh connections to piggyback on it without querying for the passphrase every time. Launch the agent Navigate to and launch the pageant. exe program from the same location as the other PuTTY-related files, and it will put itself into the system tray (in the lower right near the clock). Double-click the icon in the tray, and it launches a dialog box with an empty list of keys. Click Add Key and navigate to the. ppk file which contains your private key. When prompted for the passphrase, enter it and click OK. Click Close to dismiss the agent. Now, launch one of the already-configured SSH sessions to a pubkey-secured remote host: it will query the agent for the private key, exchange it with the remote, and grant access without further user intervention. Note - the thoughtful reader may wonder just how the agent stores the data, and whether untrusted programs are able to obtain this secret key surreptitiously. Were not sure how it works, but weve not ever heard of real security concerns on this front. Well update this document if we learn something. Preload the private key The first thing that many PuTTY users do when logging into the system for the day is to launch the agent and add the private key. This is just a few steps, but we can optimize it just a bit more. If we launch the agent with the private key file as a parameter, it loads the key automatically. Navigate to pageant. exe and right-click to copy this icon. Paste this as a shortcut on the desktop, then right-click and select Properties. Enter the full path of the. ppk private key file as the parameter, then save the changes. Double-clicking this icon will load the keyfile, demanding the passphrase. Once entered, thats the last time its needed as long as the agent sticks around. There is very little not to like about SSH agent support. Agent Forwarding But weve not exhausted the benefits of SSH agent support. Its a clear win to avoid typing the passphrase every time a new connection is launched, but SSH also provides Agent Forwarding which can pass the credential down the connection to the remote server. This credential can then be passed to yet another server where the users public key has been installed, obviating passwords or the secret passphrase for the entire duration of a network navigation. User launches a connection to Server A: PuTTY on the local machine gets the private key from the agent and provides it to the remote server. Remote server processes the public and private key data and grants access. The user is given a shell on the local system. User attempts to connect to SystemB with ssh - A systemb ( - A enables agent forwarding), and it connects to the SSH server there. System B asks system A for the users private key data, and the SSH server on system A in turn forwards this back to the original workstation where the agent is queried. The local agent passes the data back up the connection, where its forwarded from SystemA to SystemB. SystemB receives this credential, and access is granted by comparing to the public key stored on that machine for that user. This happens automatically and quickly: it takes no more than a second or two for the entire exchange to occur, and this forwarding can go over quite a long chain of SSH connections. This provides for transparent, secure access to a wide range of remote systems. Note - All of this requires that the user have an account on each machine in question, and that the users public key is installed properly on each one. SSH forwarding doesnt provide any access which would not be granted absent forwarding it just adds a more convenient mechanism to whats already provided. Enable Forwarding in PuTTY Enabling agent forwarding is done in the PuTTY configuration dialogs much like all the rest, and just one additional box need to be checked. This option requires, of course, the use of pageant on the local system - without an agent, theres nothing to forward. Should a key-protected connection be attempted with no agent present, PuTTY will simply prompt for the passphrase as it has all along (and will do so on each connection ). Enable Forwarding on the Server In the example above, we saw that the user typed ssh - A host . but its common to make Use agent forwarding the default setting to remove the need to type the - A. The OpenSSH server configuration is found in sshdconfig . while the client configuration is in sshconfig (typically in the etcssh directory). The file can be edited and the ForwardAgent setting set to yes: This setting doesnt affect the server, so it requires no reboot or special operation for it to take effect: the next outbound connection will enable forwarding automatically. This change need be made only once (and its the default on some systems). Copying files securely With the configuration of PuTTY, public key access, and agent support (with forwarding), were prepared to step beyond terminal shell access and move files around. Secure Shell provides multiple methods for copying files from one machine to another, all working together with the same keys and agents. PSCP allows for command-line copying of files to and from a remote SSH server, and PSFTP provides an FTP-like interface for convenient file transfer. Well discuss both. PSFTP - an FTP-like client The PSFTP program can be launched from the command line or from a desktop shortcut, and in both cases accepts either a hostname or a saved session name. When launched, it connects to the target server (fully taking advantage of public keys and the local agent, if any), and presents a psftpgt prompt: Regular users of command-line FTP clients will find this familiar, though its certainly not up to the ease of use as popular GUI clients. The help command may provide some guidance. PSCP - Secure Copy Users at the command line may wish to copy files directly, and this is done with pscp . the Secure Copy command. Just like copying regular files on the local filesystem, pscp takes a machine name and directory as a source or destination. pscp can transfer one file at a time, or a whole set in a single instance: Curiously, the saved session name need not be provided just the hostname and the current username (which is usually taken automatically from the environment. It appears that psftp and pscp both consult the saved-session list, find an appropriate match, and then use the access information associated. This makes for a smooth file-transfer experience. Security Concerns and the Finer Points This Tech Tip has intended to provide a fast path to setting up a Secure Shell environment from workstation to server, but it has skipped over many of the finer points. The whole point of using Secure Shell is Security, and wed be remiss if we didnt touch on some of these points here. Well make the broader point that one must take care when working on an untrusted system: when using advanced features such as agent forwarding or private keys, one is at the mercy of a hostile operator. Kernel-based keyloggers and Trojaned binssh bi naries are just a few of many obvious risks when operating in that kind of environment. Here well touch on a few of the non-obvious points and note that in a trusted and controlled environment, these issues simply dont arise. Protect your private key Though the public key is of only minor concern, the private key must be protected vigorously. Anyone who can get to the decrypted private key (either by learning the passphrase, or brute-forcing it) has full run of all networks where the public key is installed. We strongly recommend limiting dramatically the number of places where the private key is kept. We presume that applications exist which can take a private-key file and attempt to brute-force the key, though weve not yet run across one. Agent use requires trusted machines Whenever an SSH key agent is present, whether it be on the local machine which initiates the outgoing connection, or on intermediate machines which are forwarding them, its technically possible for interlopers on those machines to get access to the secure channel. In OpenSSH, an ssh client communicates with the agent via a UNIX domain socket under the tmp directory( a representative file is tmpssh-DeB10132agent.10132 ), and its restricted to the local user. But superusers also have access to the socket, and its relatively straightforward to hijack the agent to connect to the same target machine. Related ResourcesOpenSSH is the premier connectivity tool for remote login with the SSH protocol. It encrypts all traffic to eliminate eavesdropping, connection hijacking, and other attacks. In addition, OpenSSH provides a large suite of secure tunneling capabilities, several authentication methods, and sophisticated configuration options. OpenSSH is developed by a few developers of the OpenBSD Project and made available under a BSD-style license. OpenSSH is incorporated into many commercial products, but very few of those companies assist OpenSSH with funding. Contributions towards OpenSSH can be sent to the OpenBSD Foundation. This site Copyright copy 1999-2017 OpenBSD. sshdconfig(5) - Linux man page sshdconfig - OpenSSH SSH daemon configuration file Description sshd (8) reads configuration data from etcsshsshdconfig (or the file specified with - f on the command line). The file contains keyword-argument pairs, one per line. Lines starting with and empty lines are interpreted as comments. Arguments may optionally be enclosed in double quotes () in order to represent arguments containing spaces. The possible keywords and their meanings are as follows (note that keywords are case-insensitive and arguments are case-sensitive): Specifies what environment variables sent by the client will be copied into the sessions environ (7). See SendEnv in sshconfig (5) for how to configure the client. Note that environment passing is only supported for protocol 2. Variables are specified by name, which may contain the wildcard characters and . Multiple environment variables may be separated by whitespace or spread across multiple AcceptEnv directives. Be warned that some environment variables could be used to bypass restricted user environments. For this reason, care should be taken in the use of this directive. The default is not to accept any environment variables. AddressFamily Specifies which address family should be used by sshd (8). Valid arguments are any, inet (use IPv4 only), or inet6 (use IPv6 only). The default is any. AllowAgentForwarding Specifies whether ssh-agent (1) forwarding is permitted. The default is yes. Note that disabling agent forwarding does not improve security unless users are also denied shell access, as they can always install their own forwarders. AllowGroups This keyword can be followed by a list of group name patterns, separated by spaces. If specified, login is allowed only for users whose primary group or supplementary group list matches one of the patterns. Only group names are valid a numerical group ID is not recognized. By default, login is allowed for all groups. The allowdeny directives are processed in the following order: DenyUsers . AllowUsers . DenyGroups . and finally AllowGroups . See PATTERNS in sshconfig (5) for more information on patterns. AllowTcpForwarding Specifies whether TCP forwarding is permitted. The default is yes. Note that disabling TCP forwarding does not improve security unless users are also denied shell access, as they can always install their own forwarders. AllowUsers This keyword can be followed by a list of user name patterns, separated by spaces. If specified, login is allowed only for user names that match one of the patterns. Only user names are valid a numerical user ID is not recognized. By default, login is allowed for all users. If the pattern takes the form USERHOST then USER and HOST are separately checked, restricting logins to particular users from particular hosts. The allowdeny directives are processed in the following order: DenyUsers . AllowUsers . DenyGroups . and finally AllowGroups . See PATTERNS in sshconfig (5) for more information on patterns. AuthorizedKeysFile Specifies the file that contains the public keys that can be used for user authentication. AuthorizedKeysFile may contain tokens of the form T which are substituted during connection setup. The following tokens are defined: is replaced by a literal , h is replaced by the home directory of the user being authenticated, and u is replaced by the username of that user. After expansion, AuthorizedKeysFile is taken to be an absolute path or one relative to the users home directory. The default is. sshauthorizedkeys. Banner The contents of the specified file are sent to the remote user before authentication is allowed. If the argument is none then no banner is displayed. This option is only available for protocol version 2. By default, no banner is displayed. ChallengeResponseAuthentication Specifies whether challenge-response authentication is allowed (e. g. via PAM or though authentication styles supported in login. conf (5)) The default is yes. ChrootDirectory Specifies a path to chroot (2) to after authentication. This path, and all its components, must be root-owned directories that are not writable by any other user or group. After the chroot, sshd (8) changes the working directory to the users home directory. The path may contain the following tokens that are expanded at runtime once the connecting user has been authenticated: is replaced by a literal , h is replaced by the home directory of the user being authenticated, and u is replaced by the username of that user. The ChrootDirectory must contain the necessary files and directories to support the users session. For an interactive session this requires at least a shell, typically sh (1), and basic dev nodes such as null (4), zero (4), stdin (4), stdout (4), stderr (4), arandom (4) and tty (4) devices. For file transfer sessions using sftp, no additional configuration of the environment is necessary if the in-process sftp server is used, though sessions which use logging do require devlog inside the chroot directory (see sftp-server (8) for details). The default is not to chroot (2). Ciphers Specifies the ciphers allowed for protocol version 2. Multiple ciphers must be comma-separated. The supported ciphers are 3des-cbc, aes128-cbc, aes192-cbc, aes256-cbc, aes128-ctr, aes192-ctr, aes256-ctr, arcfour128, arcfour256, arcfour, blowfish-cbc, and cast128-cbc. The default is: aes128-ctr, aes192-ctr, aes256-ctr, arcfour256,arcfour128, aes128-cbc,3des-cbc, blowfish-cbc, cast128-cbc, aes192-cbc, aes256-cbc, arcfour Sets the number of client alive messages (see below) which may be sent without sshd (8) receiving any messages back from the client. If this threshold is reached while client alive messages are being sent, sshd will disconnect the client, terminating the session. It is important to note that the use of client alive messages is very different from TCPKeepAlive (below). The client alive messages are sent through the encrypted channel and therefore will not be spoofable. The TCP keepalive option enabled by TCPKeepAlive is spoofable. The client alive mechanism is valuable when the client or server depend on knowing when a connection has become inactive. The default value is 3. If ClientAliveInterval (see below) is set to 15, and ClientAliveCountMax is left at the default, unresponsive SSH clients will be disconnected after approximately 45 seconds. This option applies to protocol version 2 only. ClientAliveInterval Sets a timeout interval in seconds after which if no data has been received from the client, sshd (8) will send a message through the encrypted channel to request a response from the client. The default is 0, indicating that these messages will not be sent to the client. This option applies to protocol version 2 only. Compression Specifies whether compression is allowed, or delayed until the user has authenticated successfully. The argument must be yes, delayed, or no. The default is delayed. DenyGroups This keyword can be followed by a list of group name patterns, separated by spaces. Login is disallowed for users whose primary group or supplementary group list matches one of the patterns. Only group names are valid a numerical group ID is not recognized. By default, login is allowed for all groups. The allowdeny directives are processed in the following order: DenyUsers . AllowUsers . DenyGroups . and finally AllowGroups . See PATTERNS in sshconfig (5) for more information on patterns. DenyUsers This keyword can be followed by a list of user name patterns, separated by spaces. Login is disallowed for user names that match one of the patterns. Only user names are valid a numerical user ID is not recognized. By default, login is allowed for all users. If the pattern takes the form USERHOST then USER and HOST are separately checked, restricting logins to particular users from particular hosts. The allowdeny directives are processed in the following order: DenyUsers . AllowUsers . DenyGroups . and finally AllowGroups . See PATTERNS in sshconfig (5) for more information on patterns. ForceCommand Forces the execution of the command specified by ForceCommand . ignoring any command supplied by the client and. sshrc if present. The command is invoked by using the users login shell with the - c option. This applies to shell, command, or subsystem execution. It is most useful inside a Match block. The command originally supplied by the client is available in the SSHORIGINALCOMMAND environment variable. Specifying a command of internal-sftp will force the use of an in-process sftp server that requires no support files when used with ChrootDirectory . GatewayPorts Specifies whether remote hosts are allowed to connect to ports forwarded for the client. By default, sshd (8) binds remote port forwardings to the loopback address. This prevents other remote hosts from connecting to forwarded ports. GatewayPorts can be used to specify that sshd should allow remote port forwardings to bind to non-loopback addresses, thus allowing other hosts to connect. The argument may be no to force remote port forwardings to be available to the local host only, yes to force remote port forwardings to bind to the wildcard address, or clientspecified to allow the client to select the address to which the forwarding is bound. The default is no. GSSAPIAuthentication Specifies whether user authentication based on GSSAPI is allowed. The default is no. Note that this option applies to protocol version 2 only. GSSAPIKeyExchange Specifies whether key exchange based on GSSAPI is allowed. GSSAPI key exchange doesnt rely on ssh keys to verify host identity. The default is no. Note that this option applies to protocol version 2 only. GSSAPICleanupCredentials Specifies whether to automatically destroy the users credentials cache on logout. The default is yes. Note that this option applies to protocol version 2 only. GSSAPIStrictAcceptorCheck Determines whether to be strict about the identity of the GSSAPI acceptor a client authenticates against. If yes then the client must authenticate against the host service on the current hostname. If no then the client may authenticate against any service key stored in the machines default store. This facility is provided to assist with operation on multi homed machines. The default is yes. Note that this option applies only to protocol version 2 GSSAPI connections, and setting it to no may only work with recent Kerberos GSSAPI libraries. GSSAPIStoreCredentialsOnRekey Controls whether the users GSSAPI credentials should be updated following a successful connection rekeying. This option can be used to accepted renewed or updated credentials from a compatible client. The default is no. HostbasedAuthentication Specifies whether rhosts or etchosts. equiv authentication together with successful public key client host authentication is allowed (host-based authentication). This option is similar to RhostsRSAAuthentication and applies to protocol version 2 only. The default is no. HostbasedUsesNameFromPacketOnly Specifies whether or not the server will attempt to perform a reverse name lookup when matching the name in the. rhosts . and etchosts. equiv files during HostbasedAuthentication . A setting of yes means that sshd (8) uses the name supplied by the client rather than attempting to resolve the name from the TCP connection itself. The default is no. HostKey Specifies a file containing a private host key used by SSH. The default is etcsshsshhostkey for protocol version 1, and etcsshsshhostrsakey and etcsshsshhostdsakey for protocol version 2. Note that sshd (8) will refuse to use a file if it is groupworld-accessible. It is possible to have multiple host key files. rsa1 keys are used for version 1 and dsa or rsa are used for version 2 of the SSH protocol. IgnoreRhosts Specifies that. rhosts and. shosts files will not be used in RhostsRSAAuthentication or HostbasedAuthentication . etchosts. equiv and etcsshshosts. equiv are still used. The default is yes. IgnoreUserKnownHosts Specifies whether sshd (8) should ignore the users. sshknownhosts during RhostsRSAAuthentication or HostbasedAuthentication . The default is no. KerberosAuthentication Specifies whether the password provided by the user for PasswordAuthentication will be validated through the Kerberos KDC. To use this option, the server needs a Kerberos servtab which allows the verification of the KDCs identity. The default is no. KerberosGetAFSToken If AFS is active and the user has a Kerberos 5 TGT, attempt to acquire an AFS token before accessing the users home directory. The default is no. KerberosOrLocalPasswd If password authentication through Kerberos fails then the password will be validated via any additional local mechanism such as etcpasswd . The default is yes. KerberosTicketCleanup Specifies whether to automatically destroy the users ticket cache file on logout. The default is yes. KerberosUseKuserok Specifies whether to look at. k5login file for users aliases. The default is yes. KeyRegenerationInterval In protocol version 1, the ephemeral server key is automatically regenerated after this many seconds (if it has been used). The purpose of regeneration is to prevent decrypting captured sessions by later breaking into the machine and stealing the keys. The key is never stored anywhere. If the value is 0, the key is never regenerated. The default is 3600 (seconds). ListenAddress Specifies the local addresses sshd (8) should listen on. The following forms may be used: If port is not specified, sshd will listen on the address and all prior Port options specified. The default is to listen on all local addresses. Multiple ListenAddress options are permitted. Additionally, any Port options must precede this option for non-port qualified addresses. LoginGraceTime The server disconnects after this time if the user has not successfully logged in. If the value is 0, there is no time limit. The default is 120 seconds. LogLevel Gives the verbosity level that is used when logging messages from sshd (8). The possible values are: QUIET, FATAL, ERROR, INFO, VERBOSE, DEBUG, DEBUG1, DEBUG2, and DEBUG3. The default is INFO. DEBUG and DEBUG1 are equivalent. DEBUG2 and DEBUG3 each specify higher levels of debugging output. Logging with a DEBUG level violates the privacy of users and is not recommended. MACs Specifies the available MAC (message authentication code) algorithms. The MAC algorithm is used in protocol version 2 for data integrity protection. Multiple algorithms must be comma-separated. The default is: hmac-md5,hmac-sha1,umac-64openssh , hmac-ripemd160,hmac-sha1-96,hmac-md5-96 Introduces a conditional block. If all of the criteria on the Match line are satisfied, the keywords on the following lines override those set in the global section of the config file, until either another Match line or the end of the file. The arguments to Match are one or more criteria-pattern pairs. The available criteria are User . Group . Host . and Address . The match patterns may consist of single entries or comma-separated lists and may use the wildcard and negation operators described in the PATTERNS section of sshconfig (5). The patterns in an Address criteria may additionally contain addresses to match in CIDR addressmasklen format, e. g. 192.0.2.024 or 3ffe:ffff::32. Note that the mask length provided must be consistent with the address - it is an error to specify a mask length that is too long for the address or one with bits set in this host portion of the address. For example, 192.0.2.033 and 192.0.2.08 respectively. Only a subset of keywords may be used on the lines following a Match keyword. Available keywords are AllowAgentForwarding . AllowTcpForwarding . Banner . ChrootDirectory . ForceCommand . GatewayPorts . GSSAPIAuthentication . HostbasedAuthentication . KbdInteractiveAuthentication . KerberosAuthentication . KerberosUseKuserok . MaxAuthTries . MaxSessions . PubkeyAuthentication . AuthorizedKeysCommand . AuthorizedKeysCommandRunAs . PasswordAuthentication . PermitEmptyPasswords . PermitOpen . PermitRootLogin . RequiredAuthentications1, RequiredAuthentications2, RhostsRSAAuthentication . RSAAuthentication . X11DisplayOffset . X11Forwarding and X11UseLocalHost . MaxAuthTries Specifies the maximum number of authentication attempts permitted per connection. Once the number of failures reaches half this value, additional failures are logged. The default is 6. MaxSessions Specifies the maximum number of open sessions permitted per network connection. The default is 10. MaxStartups Specifies the maximum number of concurrent unauthenticated connections to the SSH daemon. Additional connections will be dropped until authentication succeeds or the LoginGraceTime expires for a connection. The default is 10. Alternatively, random early drop can be enabled by specifying the three colon separated values start:rate:full (e. g. 10:30:60). sshd (8) will refuse connection attempts with a probability of rate100 (30) if there are currently start (10) unauthenticated connections. The probability increases linearly and all connection attempts are refused if the number of unauthenticated connections reaches full (60). PasswordAuthentication Specifies whether password authentication is allowed. The default is yes. PermitEmptyPasswords When password authentication is allowed, it specifies whether the server allows login to accounts with empty password strings. The default is no. PermitOpen Specifies the destinations to which TCP port forwarding is permitted. The forwarding specification must be one of the following forms: Multiple forwards may be specified by separating them with whitespace. An argument of any can be used to remove all restrictions and permit any forwarding requests. By default all port forwarding requests are permitted. PermitRootLogin Specifies whether root can log in using ssh (1). The argument must be yes, without-password, forced-commands-only, or no. The default is yes. If this option is set to without-password, password authentication is disabled for root. If this option is set to forced-commands-only, root login with public key authentication will be allowed, but only if the command option has been specified (which may be useful for taking remote backups even if root login is normally not allowed). All other authentication methods are disabled for root. If this option is set to no, root is not allowed to log in. PermitTunnel Specifies whether tun (4) device forwarding is allowed. The argument must be yes, point-to-point (layer 3), ethernet (layer 2), or no. Specifying yes permits both point-to-point and ethernet. The default is no. PermitUserEnvironment Specifies whether. sshenvironment and environment options in. sshauthorizedkeys are processed by sshd (8). The default is no. Enabling environment processing may enable users to bypass access restrictions in some configurations using mechanisms such as LDPRELOAD. PidFile Specifies the file that contains the process ID of the SSH daemon. The default is varrunsshd. pid . Port Specifies the port number that sshd (8) listens on. The default is 22. Multiple options of this type are permitted. See also ListenAddress . PrintLastLog Specifies whether sshd (8) should print the date and time of the last user login when a user logs in interactively. The default is yes. PrintMotd Specifies whether sshd (8) should print etcmotd when a user logs in interactively. (On some systems it is also printed by the shell, etcprofile . or equivalent.) The default is yes. Protocol Specifies the protocol versions sshd (8) supports. The possible values are 1 and 2. Multiple versions must be comma-separated. The default is 2,1. Note that the order of the protocol list does not indicate preference, because the client selects among multiple protocol versions offered by the server. Specifying 2,1 is identical to 1,2. PubkeyAuthentication Specifies whether public key authentication is allowed. The default is yes. Note that this option applies to protocol version 2 only. AuthorizedKeysCommand Specifies a program to be used for lookup of the users public keys. The program will be invoked with its first argument the name of the user being authorized, and should produce on standard output AuthorizedKeys lines (see AUTHORIZEDKEYS in sshd (8)). By default (or when set to the empty string) there is no AuthorizedKeysCommand run. If the AuthorizedKeysCommand does not successfully authorize the user, authorization falls through to the AuthorizedKeysFile. Note that this option has an effect only with PubkeyAuthentication turned on. AuthorizedKeysCommandRunAs Specifies the user under whose account the AuthorizedKeysCommand is run. Empty string (the default value) means the user being authorized is used. RequiredAuthentications12 Specifies required methods of authentications that has to succeed before authorizing the connection. (RequiredAuthentication1 for Protocol version 1, and RequiredAuthentication2 for v2) RequiredAuthentications1 method, method. RequiredAuthentications2 method, method. Example 1: Example 2: Available methods: Specifies whether rhosts or etchosts. equiv authentication together with successful RSA host authentication is allowed. The default is no. This option applies to protocol version 1 only. RSAAuthentication Specifies whether pure RSA authentication is allowed. The default is yes. This option applies to protocol version 1 only. ServerKeyBits Defines the number of bits in the ephemeral protocol version 1 server key. The minimum value is 512, and the default is 1024. ShowPatchLevel Specifies whether sshd will display the patch level of the binary in the identification string. The patch level is set at compile-time. The default is no. This option applies to protocol version 1 only. StrictModes Specifies whether sshd (8) should check file modes and ownership of the users files and home directory before accepting login. This is normally desirable because novices sometimes accidentally leave their directory or files world-writable. The default is yes. Subsystem Configures an external subsystem (e. g. file transfer daemon). Arguments should be a subsystem name and a command (with optional arguments) to execute upon subsystem request. The command sftp-server (8) implements the sftp file transfer subsystem. Alternately the name internal-sftp implements an in-process sftp server. This may simplify configurations using ChrootDirectory to force a different filesystem root on clients. By default no subsystems are defined. Note that this option applies to protocol version 2 only. SyslogFacility Gives the facility code that is used when logging messages from sshd (8). The possible values are: DAEMON, USER, AUTH, AUTHPRIV, LOCAL0, LOCAL1, LOCAL2, LOCAL3, LOCAL4, LOCAL5, LOCAL6, LOCAL7. The default is AUTH. TCPKeepAlive Specifies whether the system should send TCP keepalive messages to the other side. If they are sent, death of the connection or crash of one of the machines will be properly noticed. However, this means that connections will die if the route is down temporarily, and some people find it annoying. On the other hand, if TCP keepalives are not sent, sessions may hang indefinitely on the server, leaving ghost users and consuming server resources. The default is yes (to send TCP keepalive messages), and the server will notice if the network goes down or the client host crashes. This avoids infinitely hanging sessions. To disable TCP keepalive messages, the value should be set to no. UseDNS Specifies whether sshd (8) should look up the remote host name and check that the resolved host name for the remote IP address maps back to the very same IP address. The default is yes. UseLogin Specifies whether login (1) is used for interactive login sessions. The default is no. Note that login (1) is never used for remote command execution. Note also, that if this is enabled, X11Forwarding will be disabled because login (1) does not know how to handle xauth (1) cookies. If UsePrivilegeSeparation is specified, it will be disabled after authentication. UsePAM Enables the Pluggable Authentication Module interface. If set to yes this will enable PAM authentication using ChallengeResponseAuthentication and PasswordAuthentication in addition to PAM account and session module processing for all authentication types. Because PAM challenge-response authentication usually serves an equivalent role to password authentication, you should disable either PasswordAuthentication or ChallengeResponseAuthentication. If UsePAM is enabled, you will not be able to run sshd (8) as a non-root user. The default is no. UsePrivilegeSeparation Specifies whether sshd (8) separates privileges by creating an unprivileged child process to deal with incoming network traffic. After successful authentication, another process will be created that has the privilege of the authenticated user. The goal of privilege separation is to prevent privilege escalation by containing any corruption within the unprivileged processes. The default is yes. X11DisplayOffset Specifies the first display number available for sshd (8)s X11 forwarding. This prevents sshd from interfering with real X11 servers. The default is 10. X11Forwarding Specifies whether X11 forwarding is permitted. The argument must be yes or no. The default is no. When X11 forwarding is enabled, there may be additional exposure to the server and to client displays if the sshd (8) proxy display is configured to listen on the wildcard address (see X11UseLocalhost below), though this is not the default. Additionally, the authentication spoofing and authentication data verification and substitution occur on the client side. The security risk of using X11 forwarding is that the clients X11 display server may be exposed to attack when the SSH client requests forwarding (see the warnings for ForwardX11 in sshconfig (5)). A system administrator may have a stance in which they want to protect clients that may expose themselves to attack by unwittingly requesting X11 forwarding, which can warrant a no setting. Note that disabling X11 forwarding does not prevent users from forwarding X11 traffic, as users can always install their own forwarders. X11 forwarding is automatically disabled if UseLogin is enabled. X11UseLocalhost Specifies whether sshd (8) should bind the X11 forwarding server to the loopback address or to the wildcard address. By default, sshd binds the forwarding server to the loopback address and sets the hostname part of the DISPLAY environment variable to localhost. This prevents remote hosts from connecting to the proxy display. However, some older X11 clients may not function with this configuration. X11UseLocalhost may be set to no to specify that the forwarding server should be bound to the wildcard address. The argument must be yes or no. The default is yes. XAuthLocation Specifies the full pathname of the xauth (1) program. The default is usrbinxauth . Time Formats sshd (8) command-line arguments and configuration file options that specify time may be expressed using a sequence of the form: time qualifier , where time is a positive integer value and qualifier is one of the following: seconds s S seconds m M minutes h H hours d D days w W weeks Each member of the sequence is added together to calculate the total time value. Time format examples: 600 600 seconds (10 minutes) 10m 10 minutes 1h30m 1 hour 30 minutes (90 minutes) Contains configuration data for sshd (8). This file should be writable by root only, but it is recommended (though not necessary) that it be world-readable. OpenSSH is a derivative of the original and free ssh 1.2.12 release by Tatu Ylonen. Aaron Campbell, Bob Beck, Markus Friedl, Niels Provos, Theo de Raadt and Dug Song removed many bugs, re-added newer features and created OpenSSH. Markus Friedl contributed the support for SSH protocol versions 1.5 and 2.0. Niels Provos and Markus Friedl contributed support for privilege separation. BSD April 14, 2018 BSD Referenced By

Comments

Popular posts from this blog

अर्द्ध स्वचालित विदेशी मुद्रा व्यापार

ट्रेडिंग सिस्टम सीईओ और एक्स-एसजीएस टीम के मार्केट विश्लेषण विभाग के प्रमुख, फॉरेक्स इंडस्ट्री में सल्वाटोर सिविएरसिकोस का अनुभव 2002 की तारीख में है, जब उन्होंने विश्वविद्यालय अनुसंधान परियोजना के लिए विदेशी मुद्रा में पूर्ण शक्ति का अपना पहला संकेतक विकसित किया था। तब से साल्वाटोर ने विभिन्न देशों में वास्तविक बाजार की प्रवृत्ति के संबंध में विदेशी मुद्रा व्यवहार पर कई अध्ययन और विश्लेषण किए हैं। साल्वाटोर ने 2009 तक स्वतंत्र व्यापारी के रूप में काम किया है, जिस साल वह एक्स-एसजीएस टीम में अपने भावी साझेदारों से मिले थे। इस साक्षात्कार में, साल्वाटोर एफएक्स ट्रेडर्स पत्रिका को अपने अर्द्ध-स्वचालित ट्रेडिंग के सिद्धांत के बारे में बताता है, जो अब पीटीसी ndash पावर ट्रेड कंसोल में लागू है। हमें अपने अनुभव और एक्स-एसजीएस टीम परियोजना के पीछे संस्थापकों को बताएं। एक्स-एसजीएस टीम एक स्विस-आधारित कंपनी है जो युवा पेशेवरों के एक समूह द्वारा सामरिक वित्त और आईटी क्षेत्रों में एक महत्वपूर्ण अनुभव के साथ स्थापित की है, जो अपने कौशल को जोड़ती है और ऑनलाइन ट्रेडिंग बाजार के लिए नए उपकरणों को विकस...

विदेशी मुद्रा व्यापार भविष्यवक्ता समीक्षा

विदेशी मुद्रा संकेतक भविष्य कहनेवाला शेयर बाजार अगर आपको यह उपयोगी लगता है, तो कृपया इस वीडियो को पसंद करें और रेट करें :) धन्यवाद यह एक वीडियो ट्यूटोरियल जो एनएफपी जॉय के संबंध में तैयार है। बेचने वाले पदों को खोलें..यह नीचे जा रहा है पिन बार की स्थापना और बार की स्थापना के अंदर। व्यापार में सबसे शक्तिशाली टूल में से एक यह जानना है कि अन्य व्यापारियों को क्या सोच रहे हैं। सब के बाद, हम ले हर व्यापार के साथ, हम अनिवार्य रूप से एक एक में प्रवेश कर रहे हैं ओ। विदेशी मुद्रा सॉफ्टवेयर सूचक पर ट्रेडिंग विदेशी मुद्रा व्यापारिक पूर्वानुमानक पूर्वानुमान - अपने मेटाट्रेडर को अधिक लाभ बनाने के लिए मजबूर करें विदेशी मुद्रा उद्योग में दुनिया के अग्रणी सॉफ्टवेयर ऑनलाइन व्यापार ऑनलाइन व्यापारिक प्रोफ़ाइल विदेशी मुद्रा ट्रेडिंग प्रीडिक्टर और 10 कूपन कोड को बंद करें विदेशी मुद्रा ट्रेडिंग प्रिडिक्टर 10 कूपन कोड्स से डाउनलोड करें (खरीदें)। व्यापार आइडिया: EURJPY 137.30 विदेशी मुद्रा प्रशिक्षण विदेशी मुद्रा ट्रेडिंग प्रक्षेपक कूपन कोड पर खरीदें। विदेशी मुद्रा ट्रेडिंग प्रीडिक्टर कूपन कोड पर 15 रुकें। वि...

सामान्यीकरण बाइनरी विकल्प

ट्रेडिंग स्ट्रैटेजी - सामान्यीकरण सिद्धांत का प्रयोग करना ईमानदार होने के लिए मुझे नहीं पता कि यह व्यापार का एक बहुत ही प्रसिद्ध तरीका है या नहीं, लेकिन मैं सिर्फ इस सिद्धांत के बारे में सोच रहा हूं और इस पर मेरी बाइनरी विकल्प टेस्ट ट्रेडों का आधार बना रहा है। यह सब ऐसा कर रही है जो किसी तरह से व्यवहार करने के बाद सामान्य रूप से वापस आ रही अंतर्निहित संपत्ति पर बैंकिंग है जो कि फिट नहीं है। यह सामान्य या सामान्यीकरण पर लौटने के आधार पर पूर्वानुमान बनाकर व्यापार करने का एक तरीका है। इस रणनीति में करने वाली पहली चीज डेटा प्राप्त कर लेती है और इसका विश्लेषण करती है। एक बात मैंने पिछले तीन सालों में एसपीएक्स और नास्डैक 100 के अंतर-दिवस के उच्च और निम्न के बीच औसत अंतर को देखे। फिर, मैंने इस चार्ट को मूल्य से शुद्ध परिवर्तन के साथ खुले से बंद करने के लिए ओवरलैप किया। मुझे लगता है कि सामान्य स्थिति दिनों में उच्च अंतराल में सबसे बड़ी भिन्नता थी और उस दिन जब कीमत एक दिशा में बहुत दूर थी। अतः, आप एक दिशा में उच्च अस्थिरता की उम्मीद कर सकते हैं जब कीमत खुली होती है और बढ़ती है या पूरे दिन ऊपर य...