linux - SSH免密码可行 SCP不行....怎么解决?

查看:156
本文介绍了linux - SSH免密码可行 SCP不行....怎么解决?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

经过通用的生成密钥保存的步骤,SSH已经实现免密码登陆,但是SCP一直需要输入密码.如何解决?

解决方案

添加-i identity_file选项

-i identity_file
Selects the file from which the identity (private key) for public key authentication is read. This option is directly passed to ssh(1).

这篇关于linux - SSH免密码可行 SCP不行....怎么解决?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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