This commit is contained in:
2023-03-24 20:44:26 +02:00
parent 18a0816199
commit f76aeaf4cc
6 changed files with 37 additions and 13 deletions

View File

@@ -18,21 +18,21 @@ For zsh, you could run something like this:
For bash
`alias secdep='python3 /path/to/SecDep/secdep.py' >> ~/.bashrc`
`echo "alias secdep='python3 /path/to/SecDep/secdep.py'" >> ~/.bashrc`
For zsh
`alias secdep='python3 /path/to/SecDep/secdep.py' >> ~/.zshrc`
`echo "alias secdep='python3 /path/to/SecDep/secdep.py'" >> ~/.zshrc`
Or if it is in the path:
For bash
`alias secdep='secdep.py' >> ~/.bashrc`
`echo "alias secdep='secdep.py'" >> ~/.bashrc`
For zsh
`alias secdep='secdep.py' >> ~/.zshrc`
`echo "alias secdep='secdep.py'" >> ~/.zshrc`
## Usage after those steps 📖
@@ -40,6 +40,20 @@ We can now use the tool by running `secdep` in the terminal.
For example `secdep -h` will show the help menu.
## Easier ssh command 💪
If the repository is in the path, you can make a zsh or bash function in your .zshrc or .bashrc respectively as:
```bash
function secdepssh {
ssh -i $(whereis secdep) secdep@$1
}
```
Where $1 will be the instance's ip address.
Then it is only a matter of `secdepssh <ip>`
## Specific aws use case
When using aws as provider value, you can use the `--awsregion` flag to specify the region on which we operate. That decreases the speed of some actions because it no longer needs to go through all of the regions to check if there are any nodes there.