为ssh设置公共私钥
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了为ssh设置公共私钥相关的知识,希望对你有一定的参考价值。
So you don't have to type the password everytime you log in to that remote ssh server. Don't enter a passphrase when prompted, just hit enter. This example is for Mac OS X but is likely to work on *nix plats too.
ssh-keygen -t rsa cat ~/.ssh/id_rsa.pub | ssh username@remoteserver "cat - >> /home/username/authorized_keys"
以上是关于为ssh设置公共私钥的主要内容,如果未能解决你的问题,请参考以下文章
Jenkins进阶系列之——10Publish Over SSH插件