Merge branch 'dev'

This commit is contained in:
Mike 2018-05-27 04:35:36 -07:00
commit 19f3be3c91

View File

@ -40,11 +40,13 @@ You can also try using this script with a different daemon (or your own custom s
6. Create a short bash script inside the dispatcher directory that will launch connection-specific-ssh-config. For instance, you might name this file ```/etc/NetworkManager/dispatcher.d/99-launch-connection-specific-ssh-config``` 6. Create a short bash script inside the dispatcher directory that will launch connection-specific-ssh-config. For instance, you might name this file ```/etc/NetworkManager/dispatcher.d/99-launch-connection-specific-ssh-config```
7. Inside your launcher script, put the following contents: 7. Inside your launcher script, put the following contents:
``` ```
#!/bin/bash #!/bin/bash
/path/to/connection-specific-ssh-config "$1" "$2" "/path/to/connection-specific-ssh-config.ini" /path/to/connection-specific-ssh-config "$1" "$2" "/path/to/connection-specific-ssh-config.ini"
``` ```
This will take the two important variables which NetworkManager has passed along to your launcher script, and pass them along to connection-specific-ssh-config This will take the two important variables which NetworkManager has passed along to your launcher script, and pass them along to connection-specific-ssh-config
8. Repeat steps 2-7 for each additional user who would like connection based ssh configuration files. 8. Repeat steps 2-7 for each additional user who would like connection based ssh configuration files.