Quote:
Originally Posted by computersavvy
If you are configured to use keys and not passwords, then the host you are sshing from must have the public key for the host you are sshing to (even if it is the same host). The host you are connecting to must have the private key that matches the public key used.
Yes it is quite possible to ssh in an almost infinite link from one host to another and on and on and on......
I have even, repeatedly, sshed to one host then back to the original host instead of logging out and back in later.
|
I need to get the term for ssh client machine term and ssh server machine clear ?
From your post above, "the host" is refering to ssh client or ssh server ? I don't get your answer clear.
Were you saying, you can sshing into an ssh server1, then sshing from the ssh server1 into ssh server2..... and keep sshing from ssh server(n-1) into ssh server(n)... into infinity ?
BUT, i was saying "i was sshing from ssh client computer1 into ssh server computer1" and on the same time "sshing from server computer1 back into ssh client computer1" , but "ssh server computer1" prompted:
Code:
currentUserName@hostIP: Permission denied (publickey).
. is it suppose to be so ?
I think you meant the ssh client machine mush have "public key " ? ?
Isn't public key is only for ssh server ?
The location for "private key" is suppose to be in "$HOME/.ssh/"
Quote:
the host you are sshing from must have the public key
|
I am now confused. You meant the ssh server must have private key ?
Isn't ssh server must have public key only ?
The location for "public key" is suppose to be in "$HOME/.ssh/".
Quote:
The host you are connecting to must have the private key that matches the public key used.
|