mention new agent-askpass and agent-add behavior

This commit is contained in:
Steven Agyekum 2021-08-02 19:36:36 +02:00
parent 2b8e763f59
commit babc7ad0c2
1 changed files with 13 additions and 0 deletions

View File

@ -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
```