Linux - 无密码访问 linux 服务器

Linux - 无密码访问 linux 服务器

  1. 本地生成 SSKEY

command: ssh-keygen

then:

1
2
3
-rw-------@ 1 harry  staff   1.8K Apr  6 09:38 id_rsa 密钥
-rw-r--r--@ 1 harry staff 399B Apr 6 09:38 id_rsa.pub 公钥
-rw-r--r-- 1 harry staff 4.5K May 28 11:43 known_hosts
  1. 将公钥复制到远程服务器的 ./ssh/authorized_keys
# linux

Comments

Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×