Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ## Step 1 - Find the private key, ssh port and IP: ##
- ```sh
- root@vivi:/opt/boxes/jessie# vagrant ssh-config
- Host default
- HostName 127.0.0.1
- User vagrant
- Port 2222
- UserKnownHostsFile /dev/null
- StrictHostKeyChecking no
- PasswordAuthentication no
- IdentityFile /root/.vagrant.d/insecure_private_key
- IdentitiesOnly yes
- LogLevel FATAL
- ```
- ## Step 2 - Transfer file using the port and private key as parameters for scp: ##
- ```sh
- scp -P 2222 -i /root/.vagrant.d/insecure_private_key \
- someFileName.txt vagrant@127.0.0.1:~
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement