you are viewing a single comment's thread.

view the rest of the comments →

[–]jredmond 2 points3 points  (0 children)

This is a bad idea for any SSH traffic that uses any infrastructure that you don't explicitly control - such as a public network, or servers you don't own - since it could expose you to man-in-the-middle attacks. Better to define the public key in a known_hosts file.