更新时间:2021-07-02 14:26:35
coverpage
Title Page
Copyright and Credits
Linux Administration Cookbook
About Packt
Why subscribe?
Packt.com
Contributors
About the author
About the reviewer
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Sections
Getting ready
How to do it
How it works
There's more
See also
Get in touch
Reviews
Introduction and Environment Setup
Introduction
Understanding and choosing a distribution
Ubuntu
Debian
CentOS - the one we'll mostly be using
Red Hat Enterprise Linux
Installing VirtualBox
Installing VirtualBox on Ubuntu
Command-line installation
Graphical installation
Installing VirtualBox on macOS
Installing VirtualBox on Windows
Installing our chosen distribution manually
Obtaining our CentOS installation media
Checking the checksum
Setting up our VM
VirtualBox main window
CentOS installation
Accessing and updating our VM
Logging in from the VirtualBox window
Logging in from the host Terminal
Making sure sshd is running
Making sure that VirtualBox lets us through
Updating our VM
Understanding how VMs differ
dmidecode
lshw
Quick sudo explanation
Using Vagrant to automatically provision VMs
Kickstart
Vagrant
Anecdote - try try and try again
Remote Administration with SSH
Technical requirements
Generating and using key pairs with ssh-keygen
How to do it...
RSA example
Ed25519 example
How it works...
The public and private key files
The authorized_keys file
There's more...
To passphrase or not to passphrase
Additional flags
SSH client arguments and options
SSH using hostnames instead of IPs
SSHing to a different user
SSHing to a different port
SSHing to an IPv6 address
SSHing before running a command
SSH and X11 forwarding
Using a client-side SSH configuration file
Modifying the server-side SSH configuration file
Changing the default port
Changing the listen address