使用ssh启用无密码身份验证 [英] Enable Passwordless Authentication with ssh

查看:66
本文介绍了使用ssh启用无密码身份验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用SSH启用无密码身份验证.

How can I enable password less authentication with SSH.

这是我在寻找/.ssh 文件夹时所拥有的.

This is what I have when I was looking for /.ssh folder.

bash-3.00$ cd ~/.ssh
bash-3.00$ pwd
/home/uname/.ssh
bash-3.00$ ls -lt
total 2
-rw-r--r--   1 uname   gid-uname     489 Jul 26 18:55 known_hosts

我不知道接下来我要在这里做什么?我需要更改 known_hosts 文件夹的权限吗?还是其他?

And I don't know what next I have to do here? I need to change the permission of known_hosts folder? Or something else?

推荐答案

将公共密钥添加到名为 authorized_keys 的文件中.

Add your public key to a file called authorized_keys.

确保未设置任何 group other 权限.

Make sure that no group and other permissions are not set.

这篇关于使用ssh启用无密码身份验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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