当前位置:网站首页>SSH configuration password free login error: /usr/bin/ssh copy ID: error: no identities found solution
SSH configuration password free login error: /usr/bin/ssh copy ID: error: no identities found solution
2022-07-01 02:37:00 【Xiao Yueyue who speaks C language】
One 、ssh Password free login :
1. Create key :
ssh-keygen
Then just go straight back .
After execution ,~/.ssh/ There will be two more files in the directory :
id_rsa: Private key
id_rsa.pub: Public key
2. Add a public key to the server :
Which server do you want to log in without password , Just pass the public key to which server .
Mode one :
for example , Want to log in without secret myserver The server . The contents of the public key , Copied to the myserver Medium ~/.ssh/authorized_keys Just in the file .
Mode two :
You can also use the following command to add a public key with one click :
ssh-copy-id myserver
Two 、 Be careful :
When you use mode 2 ssh-copy-id myserver When the command adds a public key to the server , If the following error occurs ,
/usr/bin/ssh-copy-id: ERROR: No identities found
Check your ssh-copy-id Whether the command is executed under the permission of the local host account , Or log in to the server account to execute , It should be executed under the local host , If you log in to the server account, an error will be reported .
边栏推荐
- The image variables in the Halcon variable window are not displayed, and it is useless to restart the software and the computer
- 零基础自学SQL课程 | 窗口函数
- Lenovo x86 server restart management controller (xclarity controller) or TSM method
- 鼠标悬停效果三
- 小程序自定义顶部导航栏,uni-app微信小程序自定义顶部导航栏
- 鼠标悬停效果二
- Clickhouse eliminates the gap caused by group by
- 视觉特效,图片转成漫画功能
- 查看 jvm 参数
- SAP ALV汇总跟导出Excel 汇总数据不一致
猜你喜欢

手机edge浏览器无法打开三方应用

VirtualBox installation enhancements

Machine learning 9-universal approximator radial basis function neural network, examining PDA and SVM from a new perspective

Restcloud ETl数据通过时间戳实现增量数据同步

halcon变量窗口的图像变量不显示,重启软件和电脑都没用

Ernie gram, an explicit and complete n-gram mask language model, implements explicit n-gram semantic unit knowledge modeling.

Lenovo x86 server restart management controller (xclarity controller) or TSM method

记一次服务部署失败问题排查

Visual effects, picture to cartoon function
![Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]](/img/6e/279dbb7a8d7a5ecd240de464c5b8b2.png)
Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]
随机推荐
Thread Detach
Do you write API documents or code first?
Nacos configuration center tutorial
详解数据治理知识体系
SWT / anr problem - deadlock
【微信小程序开发】样式汇总
JS anti shake and throttling
Leetcode(524)——通过删除字母匹配到字典里最长单词
[2022] Jiangxi postgraduate mathematical modeling scheme and code
Thread Detach
PMP是什么?
Pytorch —— 基礎指北_貳 高中生都能看懂的[反向傳播和梯度下降]
[graduation season · advanced technology Er] - summary from graduation to work
Focusing on green and low carbon, data center cooling has entered a new era of "intelligent cooling"
产业互联网中,「小」程序有「大」作为
Clickhouse eliminates the gap caused by group by
DenseNet网络论文学习笔记
robots. Txt restrict search engine inclusion
pycharm 软件deployment 灰色 无法点
先写API文档还是先写代码?