Add new comment

Thanks for this article!
How can I modify such a script, in a case, if my server already have some fingerprints(but not all). As I understand, I have to use atribute "if"(if ssh ask me, if I trust to the fingerprint, enter "yes", if it asks me for a password, enter "password".  How would this script looks like in such a way?

By Max (not verified)

Filtered HTML

  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <blockquote> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.
secret-login