ssh 免密配置笔记

$ ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair.
Enter file in which to save the key (/home/username/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/username/.ssh/id_rsa.
Your public key has been saved in /home/username/.ssh/id_rsa.pub.


$ ssh-copy-id id@server
id@server's password: 

 

posted @ 2020-01-15 16:31  multitude  阅读(101)  评论(0编辑  收藏  举报