I am currently dealing with several VMs in Linux :-) and Windows :-(
In Windows I use the Git-Bash to do most of my command line work.
To easily hop around the different machines via SSH without requiring a password, you can very easily authenticate the machines to access each other.
Cheers,
Juve
In Windows I use the Git-Bash to do most of my command line work.
To easily hop around the different machines via SSH without requiring a password, you can very easily authenticate the machines to access each other.
- Generate an ssh key (if not done already):
ssh-keygen
- Add current host's public key to remote host's authorized keys:
cat .ssh/id_rsa.pub | ssh user@myvm 'cat >> .ssh/authorized_keys'
- Done! You can now connect to the machine from the current host:
ssh user@myvm
Cheers,
Juve
Comments
ssh-copy-id user@myvm
instead of
cat .ssh/id_rsa.pub | ssh user@myvm 'cat >> .ssh/authorized_keys'