VMware Cloud Community
edwardol
Contributor
Contributor
Jump to solution

HELP! Copy a file from Debian 8 VM to Windows 7 through Vsphere client 6.0 console

My laptop got stolen 2 days ago. So I can no longer connect to my Debian 8 VM through SSH since the only key was gone with that laptop and I did not have a backup.  Now I can only get connected to this VM by Vsphere client 6.0 console running on my Windows 7 PC.  I can see the public and private key files located in $~/.ssh folder, but how can I copy them to my Windows PC to make the duplication?  I'm deeply thankful if anyone can help me through.

Reply
0 Kudos
1 Solution

Accepted Solutions
edwardol
Contributor
Contributor
Jump to solution

Hi for those have the same problem as I had, I tell you how I got it resolved.  Inside the Vsphere client 6.0 console, I installed a " mail transfer agents (MTA)" called mutt into the Debian 8 VM.

# apt-get install mutt (For Debian / Ubuntu based system)

Then use the link below to configure mutt.

Install and Setup Mutt Email Client on Ubuntu - The Technology Geek

When the mutt is working now.  Send the targeted file by the following command through email attachment.

$mutt -s "Your subject here" recipient-email-here@gmail.com -a ~/.ssh/rsa

Be noted, your rsa should be chmod-ed opened for the operation.  I just got it chmoded to 777 temporarily.

Good luck and fairwell.

View solution in original post

Reply
0 Kudos
1 Reply
edwardol
Contributor
Contributor
Jump to solution

Hi for those have the same problem as I had, I tell you how I got it resolved.  Inside the Vsphere client 6.0 console, I installed a " mail transfer agents (MTA)" called mutt into the Debian 8 VM.

# apt-get install mutt (For Debian / Ubuntu based system)

Then use the link below to configure mutt.

Install and Setup Mutt Email Client on Ubuntu - The Technology Geek

When the mutt is working now.  Send the targeted file by the following command through email attachment.

$mutt -s "Your subject here" recipient-email-here@gmail.com -a ~/.ssh/rsa

Be noted, your rsa should be chmod-ed opened for the operation.  I just got it chmoded to 777 temporarily.

Good luck and fairwell.

Reply
0 Kudos