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
Copy file name to clipboardExpand all lines: documentation/modules/post/linux/manage/sshkey_persistence.md
+5-3Lines changed: 5 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,5 @@
1
+
This module will add an SSH key to a specified user (or all), to allow remote login on the victim via SSH at any time.
2
+
1
3
### Creating A Testing Environment
2
4
3
5
This module has been tested against:
@@ -22,15 +24,15 @@
22
24
23
25
## Options
24
26
25
-
**sshd_config**
27
+
**SSHD_CONFIG**
26
28
27
29
Location of the sshd_config file on the remote system. We use this to determine if the authorized_keys file location has changed on the system. If it hasn't, we default to .ssh/authorized_keys
28
30
29
-
**username**
31
+
**USERNAME**
30
32
31
33
If set, we only write our key to this user. If not, we'll write to all users
32
34
33
-
**PubKey**
35
+
**PUBKEY**
34
36
35
37
A public key to use. If not provided, a pub/priv key pair is generated automatically
0 commit comments