ssh scp ssh-copy-id把新证书公钥传到 服务器上
升级了电脑。ssh证书也升级了,服务器设置了只能通过证书登录。user@host: Permission denied (publickey).
see man ssh_config. Usually this can be done by adding the following statement to the config file:
see man ssh_config. Usually this can be done by adding the following statement to the config file:
PubkeyAuthentication yes
如何把新证书传到服务器上去。
把新证书公钥传到 服务器file: ~/.ssh/authorized_keys
把新证书公钥传到 服务器file: ~/.ssh/authorized_keys
ssh-copy-id -i "~/.ssh/old/id_rsa" user@host
也可以分几步处理。
scp -i "~/.ssh/bak/id_rsa" -p your_pub_key.pub user@host: ssh user@host host$ cat id_dsa.pub >> ~/.ssh/authorized_keys
阅读量: 845
发布于:
修改于:
发布于:
修改于: