You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Add username field to platform config for SSH auth enforcement
- Add Username field to transcript.Platform and fakedevices.FakeDevice
- InitGeneric populates Username from platform config
- PasswordHandler enforces username when set (any username accepted if empty)
- Update Junos platform entry with username: admin
- Add TestGenericListener_UsernameEnforcement
- Document username field in configuration.md and transcripts.md
Closes#89
The hostname displayed in the CLI prompt. Supports Go template variables (see [Transcripts](transcripts.md)).
46
46
47
+
#### username
48
+
49
+
Optional. The SSH username required to authenticate. When set, cisshgo enforces both username and password — connections with a different username are rejected. When omitted, any username is accepted (only the password is checked).
50
+
51
+
```yaml
52
+
junos:
53
+
username: "admin" # only "admin" can connect
54
+
password: "admin"
55
+
```
56
+
57
+
Also available as `{{.Username}}` in transcript templates.
0 commit comments