avatar
a question about ssh# Security - 系统安全
a*t
1
Two hosts: A & B
Both are running ssh1, and configurations on both machines are the same.
From A, ssh B does not ask me Passphrase
From B, ssh A asks me Passphrase. It is not convenient.
How can I configurate so that I do not have to type password everytime
I use ssh or scp ?
avatar
t*y
2

To set up ssh/scp connection without password, you usually need to
1. on the server side (say A), edit file ~/.rhosts or ~/.shosts by adding line
B.univ.edu login_name_on_B
make sure .rhosts/.shosts has mode 644 or 600
2. from server(A) ssh to the client B once, using the full name of B:
ssh -l login_name_on_B B.univ.edu
This藈ill let B know the public key of A.
3. now you should be able to login to A from B without password.
Using -v to find out what's wrong if needed.
Note here I assume your

【在 a******t 的大作中提到】
: Two hosts: A & B
: Both are running ssh1, and configurations on both machines are the same.
: From A, ssh B does not ask me Passphrase
: From B, ssh A asks me Passphrase. It is not convenient.
: How can I configurate so that I do not have to type password everytime
: I use ssh or scp ?

相关阅读
logo
联系我们隐私协议©2024 redian.news
Redian新闻
Redian.news刊载任何文章,不代表同意其说法或描述,仅为提供更多信息,也不构成任何建议。文章信息的合法性及真实性由其作者负责,与Redian.news及其运营公司无关。欢迎投稿,如发现稿件侵权,或作者不愿在本网发表文章,请版权拥有者通知本网处理。