mirror of
https://github.com/upa/mscp.git
synced 2026-02-28 03:24:41 +08:00
add two env vars to pass password/keyphrase (#9)
MSCP_SSH_AUTH_PASSWORD passes a password, and MSCP_SSH_AUTH_PASSPHRASE passes a passphrase for publickey auth. They enable avoiding interactive password input. Test cases are also added.
This commit is contained in:
@@ -236,6 +236,24 @@ Prints help.
|
||||
.SH EXIT STATUS
|
||||
Exit status is 0 on success, and >0 if an error occurs.
|
||||
|
||||
.SH ENVIRONMENT
|
||||
|
||||
.PP
|
||||
.B mscp
|
||||
recognizes the following environment variables.
|
||||
|
||||
.TP
|
||||
.B MSCP_SSH_AUTH_PASSWORD
|
||||
This environment variable passes a password for password
|
||||
authentication to establish SSH connections.
|
||||
|
||||
.TP
|
||||
.B MSCP_SSH_AUTH_PASSPHRASE
|
||||
This environment variable passes a passphrase for public-key
|
||||
authentication for establishing SSH connections.
|
||||
|
||||
|
||||
|
||||
.SH NOTES
|
||||
|
||||
.PP
|
||||
|
||||
Reference in New Issue
Block a user