$ ssh-keygen -t rsa 再client 端產生密鑰 . 持續enter 一直按就可以產生.
另外 若是打這樣 連後面 enter 都不用按 ssh-keygen -t rsa -P ''
# id_rsa.pub = public key.
# id_rsa = private key.
$ cat .ssh/id_rsa.pub | ssh user@Server "cat - >> .ssh/authorized_keys"
# user= 登入user 帳號
# Server = Domain name or IP address.
參考來源: http://jonny.ubuntu-tw.net/2010/06/ssh-by-rsa.html
沒有留言:
張貼留言