diff --git a/pages/common/ssh-keygen.md b/pages/common/ssh-keygen.md index bc0f948c1d..ff9410b0f6 100644 --- a/pages/common/ssh-keygen.md +++ b/pages/common/ssh-keygen.md @@ -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}}` diff --git a/pages/common/su.md b/pages/common/su.md index 2cf2a4dd16..65f167d39c 100644 --- a/pages/common/su.md +++ b/pages/common/su.md @@ -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}}` diff --git a/pages/linux/apt-key.md b/pages/linux/apt-key.md index 5614fc4061..8ef418da03 100644 --- a/pages/linux/apt-key.md +++ b/pages/linux/apt-key.md @@ -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 -` diff --git a/pages/linux/chroot.md b/pages/linux/chroot.md index 00156aa28c..2abe08b232 100644 --- a/pages/linux/chroot.md +++ b/pages/linux/chroot.md @@ -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}}`