linux - Using 'expect' to automatically send in password -


इस सवाल का पहले से ही एक उत्तर है: < / P>

  • 8 जवाब

मैं एक कॉपी करने की कोशिश कर रहा हूँ अपने स्थानीय सर्वर से मेरे स्थानीय सर्वर से फ़ाइल स्वचालित रूप से पासवर्ड भेजने के लिए 'उम्मीद' का उपयोग कर इसे चलाने के लिए मेरी स्क्रिप्ट है

  scp user @ host: / folder / myFile ./ उम्मीद है "पासवर्ड:" "mypassword" भेजें  

जब मैं इसे चलाता हूँ, यह अभी भी "पासवर्ड" के लिए संकेत करता है, क्या गलत है?

आप इसे करने की कोशिश कर रहे हैं, ऐसा लगता है जैसे आप सार्वजनिक और निजी कुंजी के साथ ssh का उपयोग कर बेहतर हो सकते हैं आप आरंभ करने के लिए ssh-keygen ट्यूटोरियल के लिए Google कर सकते हैं।


Comments

Popular posts from this blog

SQL/PHP: Table design question -

NHibernate Passing Session to the Repository -

c# - XMLDocument.Validate Error: System.InvalidOperationException : The XmlSchemaSet on the document is either null or has no schemas in it -