bitnami / vms

Bitnami VMs
https://bitnami.com
Other
206 stars 43 forks source link

[Redmine] how to copy key file from Linux VM to windows computer #1499

Closed mwdqaqc closed 3 months ago

mwdqaqc commented 5 months ago

Describe your issue as much as you can

Log in to the server console as the bitnami user.

Create a key pair, consisting of a public and private key, as shown below. Set a long passphrase when prompted.

ssh-keygen Generating public/private rsa key pair. Enter file in which to save the key (/home/bitnami/.ssh/id_rsa): Enter passphrase (empty for no passphrase): Enter same passphrase again: Your identification has been saved in /home/bitnami/.ssh/id_rsa. Your public key has been saved in /home/bitnami/.ssh/id_rsa.pub. The key fingerprint is: XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX bitnami@linux This command should create two files named id_rsa and id_rsa.pub in the /home/bitnami/.ssh directory.

Copy the private key file named id_rsa to a secure location. Do not share this private key file.

==============================================================

How to copy the private key file from Linux VM to windows computer?

================================================================

Need to load this file to Putty key generator in windows OS if I understand it correctly

Please help!

gongomgra commented 5 months ago

Hi @mwdqaqc,

Thanks for using Bitnami. You can configure a shared folder between your host and the virtual machine and use it to download the private key to the Windows host machine. Please refer to the official instructions of your virtual machines hypervisor for further details and how to create a shared folder.

amanda2369weaver commented 5 months ago

_To copy the private key file (idrsa) from your Linux VM to your Windows computer, you can follow these steps:

On the Linux VM:

On your Windows computer:

Import the private key into PuTTY:

Save the private key for use with PuTTY:

After following these steps, you should have the private key imported into PuTTY, and you can use it to authenticate and connect to your Linux VM securely using PuTTY.

Please note that private keys should be treated with utmost care and should never be shared or transmitted over insecure channels. Always keep your private key files in a secure location and accessible only to authorized individuals.

github-actions[bot] commented 4 months ago

This Issue has been automatically marked as "stale" because it has not had recent activity (for 15 days). It will be closed if no further activity occurs. Thanks for the feedback.

github-actions[bot] commented 4 months ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

mwdqaqc commented 3 months ago

MicrosoftTeams-image (2)

host machine is windows 10. Still can't figure out how to share the files between windows host and debian guest.

mwdqaqc commented 3 months ago

I got latest Oracle_VM_VirtualBox_Extension_Pack-7.0.18 and bitnami-redmine-5.1.2-r97-debian-12-amd64.

VM Click insert guest addition CD image => it doesn't do anything. Can't install guest addition. Please advise!

gongomgra commented 3 months ago

Hi @mwdqaqc,

You can find more information about how to install the VirtualBox Guest additions in our guide linked below. Notice you may have to install some additional libraries (see issues/1531)

https://docs.bitnami.com/virtual-machine/faq/configuration/install-virtualbox-guest-additions/

About the shared folder configuration you showed, I think you misconfigured the destination. The at column seems to be pointing to a specific file instead to a folder on the virtual machine. We recommend you to check the official guides on how to add a new shared folder.

github-actions[bot] commented 3 months ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.

mwdqaqc commented 3 months ago

I modified the shared folder and try to follow https://docs.bitnami.com/virtual-machine/faq/configuration/install-virtualbox-guest-additions/.

image

mwdqaqc commented 3 months ago

image

gongomgra commented 3 months ago

@mwdqaqc as mentioned in the other thread I linked, I was able to follow the installation process for the VirtualBox Guest Additions. From the screenshots you shared I think you are not installing the correct system packages. Notice you need to install the linux-headers-<kernel-version> package, not the <kernel-version> package.

github-actions[bot] commented 3 months ago

Due to the lack of activity in the last 5 days since it was marked as "stale", we proceed to close this Issue. Do not hesitate to reopen it later if necessary.