mirror of
https://github.com/upa/mscp.git
synced 2026-02-04 03:24:58 +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
|
||||
|
||||
15
doc/mscp.rst
15
doc/mscp.rst
@@ -2,7 +2,7 @@
|
||||
MSCP
|
||||
====
|
||||
|
||||
:Date: v0.1.3
|
||||
:Date: v0.1.3-15-g9908fb3
|
||||
|
||||
NAME
|
||||
====
|
||||
@@ -147,6 +147,19 @@ EXIT STATUS
|
||||
|
||||
Exit status is 0 on success, and >0 if an error occurs.
|
||||
|
||||
ENVIRONMENT
|
||||
===========
|
||||
|
||||
**mscp** recognizes the following environment variables.
|
||||
|
||||
**MSCP_SSH_AUTH_PASSWORD**
|
||||
This environment variable passes a password for password
|
||||
authentication to establish SSH connections.
|
||||
|
||||
**MSCP_SSH_AUTH_PASSPHRASE**
|
||||
This environment variable passes a passphrase for public-key
|
||||
authentication for establishing SSH connections.
|
||||
|
||||
NOTES
|
||||
=====
|
||||
|
||||
|
||||
Reference in New Issue
Block a user