a******t 发帖数: 100 | 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 ? | t*****y 发帖数: 10 | 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 ?
|
|