Advertisement
Guest User

Untitled

a guest
Aug 19th, 2019
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. ## Step 1 - Find the private key, ssh port and IP: ##
  2.  
  3. ```sh
  4. root@vivi:/opt/boxes/jessie# vagrant ssh-config
  5. Host default
  6. HostName 127.0.0.1
  7. User vagrant
  8. Port 2222
  9. UserKnownHostsFile /dev/null
  10. StrictHostKeyChecking no
  11. PasswordAuthentication no
  12. IdentityFile /root/.vagrant.d/insecure_private_key
  13. IdentitiesOnly yes
  14. LogLevel FATAL
  15. ```
  16.  
  17. ## Step 2 - Transfer file using the port and private key as parameters for scp: ##
  18.  
  19. ```sh
  20. scp -P 2222 -i /root/.vagrant.d/insecure_private_key \
  21. someFileName.txt vagrant@127.0.0.1:~
  22. ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement