In the third component, you are piping the stdout from the echo command to stdin of the sshkeygen. I am trying to call sshkeygen using a variable through bash as an input instead of a file to get a fingerprint of a public key. The sshkeygen utility generates, manages, and converts authentication keys for ssh1. The authentication keys, called ssh keys, are created using the keygen program. Ssh introduced public key authentication as a more secure alternative to the older. Pythons subprocess module makes it easy to invoke external commands on localhost. It improved security by avoiding the need to have password stored in files, and eliminated the possibility of a compromised server stealing the users password. If one or more matching principals are found, they are returned on standard output. In this mode sshkeygen will read candidates from standard input or a file. How to send stdin to ssh command hi masimo, i already tried all options, also the t found it out after the post, but all options result in exactly the same question. If the fingerprint is unknown, an alternative method of verification is available.
Different agents and different keys for different projects, with ssh. Please start posting anonymously your entry will be published after you log in or create a new account. The ssh keygen utility generates, manages, and converts authentication keys for ssh 1. It can also use ssh to invoke commands on remote hosts. If invoked without any arguments, sshkeygen will generate an rsa key for use in ssh protocol 2 connections. Sshkeygen is a tool for creating new authentication key pairs for ssh.