December 2018
Beginner
826 pages
22h 54m
English
As with the previous section, confirm that both of your Vagrant boxes are enabled, and connect to the first using the vagrant command:
$ vagrant ssh centos1
To configure different options for our user, we're going to create an SSH configuration file in our home directory.
This goes in the same place as most of our SSH files, ~/.ssh/.
Create the file, lock down the permissions, and open it in your editor of choice—I'm going to use vi.
Be sure to call it config:
[vagrant@centos1 ~]$ touch ~/.ssh/config[vagrant@centos1 ~]$ chmod 600 ~/.ssh/config[vagrant@centos1 ~]$ vi ~/.ssh/config
Read now
Unlock full access