mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-08-03 21:55:46 +02:00
Fixed damage done by formatter some time ago
This commit is contained in:
parent
0956feffcb
commit
b4304e1050
4 changed files with 11 additions and 11 deletions
|
@ -2,18 +2,18 @@
|
|||
|
||||
> Generate ssh keys user for authentication, password-less logins, and other things.
|
||||
|
||||
- Generate a key interactivel:
|
||||
- Generate a key interactively:
|
||||
|
||||
`ssh-keygen`
|
||||
|
||||
- Generate a DSA 2048 bit (default) ke:
|
||||
- Generate a DSA 2048 bit (default) key:
|
||||
|
||||
`ssh-keygen -t dsa`
|
||||
|
||||
- Generate an RSA 4096 bit key with your email as a commen:
|
||||
- Generate an RSA 4096 bit key with your email as a comment:
|
||||
|
||||
`ssh-keygen -t rsa -b 4096 -C "{{email}}"`
|
||||
|
||||
- Retrieve the key fingerprint from a host (useful for confirming the authenticity of the host when first connecting to it via SSH:
|
||||
- Retrieve the key fingerprint from a host (useful for confirming the authenticity of the host when first connecting to it via SSH):
|
||||
|
||||
`ssh-keygen -l -F {{remote_host}}`
|
||||
|
|
|
@ -10,6 +10,6 @@
|
|||
|
||||
`su`
|
||||
|
||||
- Switch to user {{username}} and simulate a full login shel:
|
||||
- Switch to user {{username}} and simulate a full login shell:
|
||||
|
||||
`su - {{username}}`
|
||||
|
|
|
@ -2,18 +2,18 @@
|
|||
|
||||
> Key management utility for the APT Package Manager on Debian and Ubuntu.
|
||||
|
||||
- List trusted key:
|
||||
- List trusted keys:
|
||||
|
||||
`apt-key list`
|
||||
|
||||
- Add a key to the trusted keystor:
|
||||
- Add a key to the trusted keystore:
|
||||
|
||||
`apt-key add {{public_key_file.asc}}`
|
||||
|
||||
- Delete a key from the trusted keystor:
|
||||
- Delete a key from the trusted keystore:
|
||||
|
||||
`apt-key del {{key_id}}`
|
||||
|
||||
- Add a remote key to the trusted keystor:
|
||||
- Add a remote key to the trusted keystore:
|
||||
|
||||
`wget -qO - {{https://host.tld/filename.key}} | apt-key add -`
|
||||
|
|
|
@ -2,10 +2,10 @@
|
|||
|
||||
> Run command or interactive shell with special root directory.
|
||||
|
||||
- Run command as new root director:
|
||||
- Run command as new root directory:
|
||||
|
||||
`chroot {{/path/to/new/root}} {{command}}`
|
||||
|
||||
- Specify user and group (ID or name) to us:
|
||||
- Specify user and group (ID or name) to use:
|
||||
|
||||
`chroot −−userspec={{user:group}}`
|
||||
|
|
Loading…
Add table
Reference in a new issue