1

I get the following code to get a fingerprint from private key of OpenSSH.

$ key=`ssh-keygen -yf ~/.ssh/id_rsa`; ssh-keygen -lf /dev/stdin <<<$key

However, I do not know <<< $key syntax. What behavior is this? Is there a web site that explains this syntax?

higr
  • 23
  • 2

1 Answers1

4

From man bash:

Here Strings

A variant of here documents, the format is:

  <<<word

The word is expanded and supplied to the command on its standard input.

Charles Duffy
  • 257,635
  • 38
  • 339
  • 400
MichalH
  • 1,032
  • 9
  • 20
  • thanks, I Although Here-Document knew, I did not know the existence of the Here-String. – higr Jul 16 '15 at 05:43