如何将RSA密钥添加到authorized_keys文件? [英] How to add RSA key to authorized_keys file?

查看:1038
本文介绍了如何将RSA密钥添加到authorized_keys文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经创建了一个RSA公钥,我想将其添加到authorized_keys文件中,但是我的Ubuntu 11.10计算机中没有这样的文件.

I've created an RSA public key and I want to add that to authorized_keys file, but there is no such file in my Ubuntu 11.10 machine.

如何将密钥添加到authorized_keys?

推荐答案

在执行Michael Krelin的解决方案时,请确保执行以下操作

Make sure when executing Michael Krelin's solution you do the following

cat <your_public_key_file> >> ~/.ssh/authorized_keys

请注意,双精度>不带双精度>时,authorized_keys的现有内容将被覆盖(不正确!),

Note the double > without the double > the existing contents of authorized_keys will be over-written (nuked!) and that may not be desirable

这篇关于如何将RSA密钥添加到authorized_keys文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆