怎樣避免重複輸入ssh的passphrase? | how to avoid keep entering ssh passphrase?

如果使用ssh-keygen的時候設置了passphase, 每次ssh的時候都會要求輸入這個passphase. 如果需要頻繁ssh, 比如從github pull change的時候, 每次輸入非常影響效率. 解決方法如下

ssh-add

然後輸入一次passphase. 這樣這個passphase就會被添加到ssh-agent裡面, 就不需要每次輸入了.

Leave a Comment

Your email address will not be published.