update to add config example for fabric.yml
This commit is contained in:
parent
3fc0ca5cec
commit
16b7e70c33
1 changed files with 7 additions and 0 deletions
|
@ -48,6 +48,10 @@ vi /etc/ssh/sshd_config
|
||||||
PermitRootLogin yes
|
PermitRootLogin yes
|
||||||
PasswordAuthentication yes
|
PasswordAuthentication yes
|
||||||
|
|
||||||
|
# if desired add/modify the following line to allow SSH to
|
||||||
|
# accept all env variables
|
||||||
|
AcceptEnv *
|
||||||
|
|
||||||
# restart sshd
|
# restart sshd
|
||||||
sudo systemctl restart sshd
|
sudo systemctl restart sshd
|
||||||
```
|
```
|
||||||
|
@ -65,6 +69,9 @@ ssh-copy-id -i ~/.ssh/core root@server
|
||||||
|
|
||||||
# configure fabric to use the core ssh key
|
# configure fabric to use the core ssh key
|
||||||
sudo vi /etc/fabric.yml
|
sudo vi /etc/fabric.yml
|
||||||
|
|
||||||
|
# set configuration
|
||||||
|
connect_kwargs: {"key_filename": "/home/user/.ssh/core"}
|
||||||
```
|
```
|
||||||
|
|
||||||
On distributed server:
|
On distributed server:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue