I am the user of JSCH , and is using it in one of my appliactions in
But before using it ,i want tpo make sure that I can login to the other
server with Key Authentication.So i am using the SSh clints provided by
TO day i faced the following problem:
I have two servers A and B.
From A i want to Login to B as "root" through ssh.
In A i generate keys using ssh-keygen -t dsa.
I put the public keys of A in the authorized-key file of B.
Now when i do ssh B -l root
it gives me following error
Connection closed by 0.0.0.0
But if i remove the authorized files and do the login with password
authentications, it allows me to login. Can any one give a solution for it.