Nick
Nick

Reputation: 9061

How to ssh to xampp-vm on Mac?

I am using XAMPP-VM on Mac, I tried to ssh to the VM using the address shown on the xampp manager:

192.168.65.2

I realized that I don't konw the VM's root password, and any ssh-key info. Is there any way to do this?

I know I can mount the volumn on /opt/lampp, it's ~/.bitnami/stackman/machines/xampp/volumes/root on my machine; but in this way, I don't have permission to write files. If anybody can tell me how to set permission for the mounted file, that will be a great help too.

Upvotes: 4

Views: 3971

Answers (1)

Richard vK
Richard vK

Reputation: 181

I changed directory to:

cd ~/.bitnami/stackman/machines/xampp/ssh

There was already an 'id_rsa' and an 'id_rsa.pub' file there and I managed to ssh, as root user, to the IP shown in the XAMPP manager, using this key to use for it to work:

ssh -i id_rsa [email protected]

This gave me a root login to the Debian VM:

root@debian:~# cat /etc/issue
Debian GNU/Linux 9 \n \l

Hope this helps.

Richard

Upvotes: 16

Related Questions