![]() Another process could attach to your pipe/fd before the password is written. ![]() It is quite cumbersome in bash, arguably easier with programming languages. In all three options, the password is visible or stored in plaintext at some point: Anonymous pipe (recommended by sshpass) # Create a pipe Please pay particular attention to the SECURITY CONSIDERATIONS section of the man page. In situations where password is the only authentication method available, sshpass can be used to automatically enter the password. ![]() Other methods such as gssapi/kerberos exist but are more complex. You could easily add your test VM key to an existing auth agent (see example below). SSH single sign-on is usually achieved with public key authentication and an authentication agent.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |