Skip to content

Commit

Permalink
feat: toml config
Browse files Browse the repository at this point in the history
  • Loading branch information
lpxxn committed May 23, 2021
1 parent d649d71 commit 7a95536
Showing 1 changed file with 43 additions and 1 deletion.
44 changes: 43 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,46 @@
</h1>
</p>

developing...
developing...

## config

config directory `~/.doraemon`,the program will create the config file when first run it.

### publickey

```
[[sshInfo]]
name = "sandbox1"
authMethod = "publickey"
uri = "123.13.63.203:22"
user = "abc"
publicKeyPath = "/Users/abc/.ssh/a.pem"
desc = "my sandbox host1"
```

if your publickey is encrypted
you need `passphrase`
```
[[sshInfo]]
name = "gateway"
authMethod = "publickey"
uri = "123.13.63.203:22"
user = "abc"
passphrase = "dsafDFl209Dfoifqw"
publicKeyPath = "/Users/abc/.ssh/test.pem"
desc = "gateway jumper
```

### password

```
[[sshInfo]]
name = "pwdservr"
authMethod = "password"
uri = "127.0.0.1:222"
user = "testuser"
startCommand = "pwd;"
passphrase = "123"
desc = "sandbox deploy server"
```

0 comments on commit 7a95536

Please sign in to comment.