mirror of
https://github.com/Burnett01/rsync-deployments.git
synced 2024-11-23 16:03:46 +01:00
mention new agent-askpass and agent-add behavior
This commit is contained in:
parent
2b8e763f59
commit
babc7ad0c2
1 changed files with 13 additions and 0 deletions
13
README.md
13
README.md
|
@ -45,6 +45,11 @@ This command adds a key to the currently running SSH agent. The key is taken fro
|
||||||
This command starts the SSH agent and loads the private key from the "SSH_PRIVATE_KEY" environment var. The command takes one optional argument, for the name of the agent to be started. Defaults to "default".
|
This command starts the SSH agent and loads the private key from the "SSH_PRIVATE_KEY" environment var. The command takes one optional argument, for the name of the agent to be started. Defaults to "default".
|
||||||
As with agent-start, this command needs to be sourced.
|
As with agent-start, this command needs to be sourced.
|
||||||
|
|
||||||
|
#### agent-askpass
|
||||||
|
This command is called by ssh-add when the [SSH_ASKPASS](https://man.openbsd.org/ssh-add.1#ENVIRONMENT) variable is set active. The command returns the SSH_PASS to [ssh-askpass(1)](https://man.openbsd.org/ssh-askpass.1).
|
||||||
|
|
||||||
|
This command is ignored by ssh-add if the key does not require a passphrase.
|
||||||
|
|
||||||
### known_hosts management
|
### known_hosts management
|
||||||
#### hosts-clear
|
#### hosts-clear
|
||||||
This command truncates the known_hosts file and sets its permissions.
|
This command truncates the known_hosts file and sets its permissions.
|
||||||
|
@ -78,3 +83,11 @@ deploy:
|
||||||
script:
|
script:
|
||||||
- rsync -zrSlhaO --chmod=D2775,F664 --delete-after . $FTP_USER@$FTP_HOST:/var/www/deployment/
|
- rsync -zrSlhaO --chmod=D2775,F664 --delete-after . $FTP_USER@$FTP_HOST:/var/www/deployment/
|
||||||
```
|
```
|
||||||
|
|
||||||
|
## Using with passphrase protected key
|
||||||
|
|
||||||
|
You can supply a passphrase with ``SSH_PASS`` to ``agent-add``, ``agent-start`` or ``agent-autostart``.
|
||||||
|
|
||||||
|
```
|
||||||
|
SSH_PASS="THE_PASSPHRASE" agent-add
|
||||||
|
```
|
||||||
|
|
Loading…
Reference in a new issue