-1

I have a server A which ssh-keygen produce a .ssh2 direcotry and id_dsa_2048_a* files and a server B which ssh-keygen produce a .ssh directory and id_rsa* files and a server C like B

How can auto login into B from A, or login into A from B (ssh without password)?

I can setup auto login from B to C.

Sato
  • 449
  • 2
  • 9
  • 17
  • possible duplicate of [How to automate SSH login with password?](http://serverfault.com/questions/241588/how-to-automate-ssh-login-with-password) – neutrinus Oct 16 '14 at 12:07
  • I've never dealt with trying to make ssh and ssh2 talk to each other myself but [I found this which may be helpful](http://burnz.wordpress.com/2007/10/17/how-to-make-ssh2-work-with-openssh/). – Ladadadada Oct 16 '14 at 16:08

1 Answers1

0

Yeah, just define the hosts in your ~.ssh/config file:

Host hostB
    ProxyCommand ssh -q -W %h:%p hostA
neutrinus
  • 1,125
  • 7
  • 18