December 2018
Beginner
826 pages
22h 54m
English
If the user you're connecting to is different to the one you're using locally (in our examples, it's always vagrant and vagrant), then you can manually specify the username on the command line.
The first way to do this is with the following syntax:
[vagrant@centos1 ~]$ ssh vagrant@centos2
The second way is with a flag:
[vagrant@centos1 ~]$ ssh centos2 -l vagrant
Read now
Unlock full access