Advertisement
Guest User

Untitled

a guest
Jul 18th, 2016
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.84 KB | None | 0 0
  1. $ vagrant up
  2. Bringing machine 'default' up with 'virtualbox' provider...
  3. ==> default: Importing base box 'hfm4/centos7'...
  4. ==> default: Matching MAC address for NAT networking...
  5. ==> default: Checking if box 'hfm4/centos7' is up to date...
  6. ==> default: Setting the name of the VM: testV_default_1468827488759_88757
  7. ==> default: Clearing any previously set network interfaces...
  8. ==> default: Preparing network interfaces based on configuration...
  9. default: Adapter 1: nat
  10. ==> default: Forwarding ports...
  11. default: 22 (guest) => 2222 (host) (adapter 1)
  12. ==> default: Booting VM...
  13. ==> default: Waiting for machine to boot. This may take a few minutes...
  14. default: SSH address: 127.0.0.1:2222
  15. default: SSH username: vagrant
  16. default: SSH auth method: private key
  17. default:
  18. default: Vagrant insecure key detected. Vagrant will automatically replace
  19. default: this with a newly generated keypair for better security.
  20. default:
  21. default: Inserting generated public key within guest...
  22. default: Removing insecure key from the guest if it's present...
  23. default: Key inserted! Disconnecting and reconnecting using new SSH key...
  24. ==> default: Machine booted and ready!
  25. ==> default: Checking for guest additions in VM...
  26. ==> default: Mounting shared folders...
  27. default: /vagrant => /home/michael/repos/testV
  28.  
  29. $ vagrant status
  30. Current machine states:
  31.  
  32. default running (virtualbox)
  33.  
  34. The VM is running. To stop this VM, you can run `vagrant halt` to
  35. shut it down forcefully, or you can run `vagrant suspend` to simply
  36. suspend the virtual machine. In either case, to restart it again,
  37. simply run `vagrant up`.
  38.  
  39. $ vagrant ssh
  40. [vagrant@localhost ~]$ cat .ssh/authorized_keys
  41. ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6GteA1xxkIqA/tk4Wb7VOUt+pEqjGGCuXEZIu/M+5l3qxLL7dYF8oVZr6PYH/TXso5NfgucI794vhjIVhlY6HixRrY+2SS/pLav9epsWIfUFyzPfwCUGVBBYmGmTswxUbXyFS9F1Sp/ZzEL0WOjOTxikWCzExxYpF34TVyZJKz3SEYNvTq1trU1XQdbS71EcZ+wHA1nocRxxeK40TWuMaFdd5XkKsFE0emanUCEWbTAPMduFyyUHwK8paaHwsQJB0x291RMY0Sh0ZXN+ZjZ96Fl3V67GUqCPrak/kpTWR6FzW2swSBU+cHqreQPhX5w+b/MeSrV+SsZ2evBd6+SLv vagrant[vagrant@localhost ~]$
  42. [vagrant@localhost ~]$ logout
  43. Connection to 127.0.0.1 closed.
  44.  
  45. $ ssh-copy-id -p 2222 vagrant@127.0.0.1
  46. The authenticity of host '[127.0.0.1]:2222 ([127.0.0.1]:2222)' can't be established.
  47. ECDSA key fingerprint is SHA256:BVjcEV0qPt9KX7UahsxElpDgUtCsou4UXTueY7A/HvI.
  48. Are you sure you want to continue connecting (yes/no)? yes
  49. /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
  50. /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
  51. vagrant@127.0.0.1's password:
  52.  
  53. Number of key(s) added: 1
  54.  
  55. Now try logging into the machine, with: "ssh -p '2222' 'vagrant@127.0.0.1'"
  56. and check to make sure that only the key(s) you wanted were added.
  57.  
  58. $ ssh -p '2222' 'vagrant@127.0.0.1'
  59. vagrant@127.0.0.1's password:
  60.  
  61. $ vagrant ssh
  62. Last login: Mon Jul 18 16:42:44 2016 from 10.0.2.2
  63. [vagrant@localhost ~]$ cat .ssh/authorized_keys
  64. ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC6GteA1xxkIqA/tk4Wb7VOUt+pEqjGGCuXEZIu/M+5l3qxLL7dYF8oVZr6PYH/TXso5NfgucI794vhjIVhlY6HixRrY+2SS/pLav9epsWIfUFyzPfwCUGVBBYmGmTswxUbXyFS9F1Sp/ZzEL0WOjOTxikWCzExxYpF34TVyZJKz3SEYNvTq1trU1XQdbS71EcZ+wHA1nocRxxeK40TWuMaFdd5XkKsFE0emanUCEWbTAPMduFyyUHwK8paaHwsQJB0x291RMY0Sh0ZXN+ZjZ96Fl3V67GUqCPrak/kpTWR6FzW2swSBU+cHqreQPhX5w+b/MeSrV+SsZ2evBd6+SLv vagrantssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC37+K6XT+mcZhDtP4cbIRyxywTTt9R312iAjlaFyxbGj4Po7apaUQm8ayVXtc116UfYk0eJgFB2c/xIfsTtb7W/dpKHBW7YpSQZdMrWrB8pNR1C4q8PQgKorOcXflWFx6XpmQBhO2qWL9phRxYI202MAGGAc8/lTKAC0VhRl/9bMzar/+6on7ALJqEQYdO22Adfz7DyVK8AUfIPTSrBorIbXSKKEhb6JXD4L2C8ubeL8fsTtshpMxiRMNsansCvtUEanTgk4wFN3tECLUKFbY7BgOgaHgTlBMNY7uwdA29VVxkMi9r3oP0LY5eoxakt2oThjYAYgIspXtRioWll0H3 michael@ThinkPad-T520
  65. [vagrant@localhost ~]$ logout
  66. Connection to 127.0.0.1 closed.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement