Differences
This shows you the differences between the selected revisions of the page.
| faq_passphrase 2016-01-19 | faq_passphrase 2026-04-02 (current) | ||
| Line 1: | Line 1: | ||
| ====== How can I connect without entering private key passphrase each time? ====== | ====== How can I connect without entering private key passphrase each time? ====== | ||
| + | |||
| ===== Using Authentication Agent ===== | ===== Using Authentication Agent ===== | ||
| - | The best solution is to use [[ui_pageant|authentication agent (Pageant)]], so that you enter the passphrase only once. | + | The best solution is to use an authentication agent ([[ui_pageant|PuTTY Pageant]] or [[ui_pref_security#authentication|OpenSSH ssh-agent]]), so that you enter the passphrase only once. |
| + | |||
| + | ===== [[automating]] Automating Private Key Authentication ===== | ||
| + | |||
| + | You can specify the passphrase using ''[[scriptcommand_open#passphrase|-passphrase]]'' switch of ''[[scriptcommand_open|open]]'' command in scripting and using ''[[library_sessionoptions#privatekeypassphrase|SessionOptions.PrivateKeyPassphrase]]'' in .NET assembly. | ||
| - | ===== Automating Private Key Authentication ===== | + | ===== [[unprotected]] Unprotected Private Key ===== |
| - | You can specify the passphrase using ''[[scriptcommand_open#passphrase|-passphrase]]'' switch of ''[[scriptcommand_open|open]]'' command in scripting and using ''[[library_sessionoptions#sshprivatekeypassphrase|SessionOptions.SshPrivateKeyPassphrase]]'' in .NET assembly. | + | Alternatively you can store the private key unprotected (without a passphrase). Note that this imposes a security risk, if someone gains access to the key. |
| - | Alternatively you can store the key unprotected (without an passphrase). Note that this imposes security risk, if someone gains access to the key. You should consider restricting access to the unprotected private key file to the local account that runs the script only (using [[http://technet.microsoft.com/en-us/library/cc770962.aspx|Windows file system permissions]]). | + | When using unprotected key with scripting, you should consider restricting access to the unprotected private key file to the local account that runs the script only (using [[https://learn.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2008-R2-and-2008/cc770962(v=ws.11)|Windows file system permissions]]). |