How can I copy and paste stuff into Windows command window, which runs Vagrant ssh in it? Right mouse button is then somehow blocked
hit Ctrl + V on the keyboard. use the keyboard to access the context menu's Edit > Paste option: Alt + Space , then E , then P. if the "Use Ctrl+Shift+C/V as Copy/Paste" option is activated, hitting Ctrl + Shift + V on the keyboard.
Command: vagrant ssh [name|id] [-- extra_ssh_args] This will SSH into a running Vagrant machine and give you access to a shell. On a simple vagrant project, the instance created will be named default.
The windows terminal is awful. To paste, what you need to do is right-click the top-left corner of the window (where the icon is), go down to edit, and select "Paste". No keyboard shortcuts for it.
Now, one alternative is to connect to your vagrant VM with something like Putty. Just connect to localhost on port 2222. username is "vagrant" but you will need to take a few steps to convert the SSH key for login. Here is an article explaining what you need to do.
An easiest shortcut would be:
1) Go to your vagrant vm
-> vagrant ssh
2) Set password to your vagrant user
sudo passwd vagrant
Enter new UNIX password: 12345
Retype new UNIX password: 12345 passwd: password updated successfully
3) Login using Putty :
Host name: localhost Port: 2222 (or your vagrant vm mapped ssh port)
username: vagrant
password: 12345
Enjoy!
On Windows 10:
Properties
Options
> Edit Options
> Use Ctrl+Shift+C/V as Copy/Paste
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With