ssh keygen copy between 2 PC where logins are different - does it make sense?
by DeanAnderson from LinuxQuestions.org on (#53H2T)
Hi
I have ssh keygen generated on one PC which looks something like that:
Code:ssh-rsa BDFdasadsdsds
ssadffdsfdsfdssdfds
dsds/sdsdssasaasasa
ssassad my_login1@something.netI have on this PC ./ssh/known_hosts list fulfilled as PC has been used for a few years.
Then I have another second new PC2. Unfortunately I made mistake on another PC2 - when I was installing ubuntu I created another login than on first PC, let's say it is my_login2. However I will try to add second login to PC2 called my_login with root privelages. If I succeed the question is:
Can I copy now keygen and known_hosts from first PC to second PC2 and will it work? The important thing is also that part after @ is different. On PC1 it is something.net and on PC2 it is somethingother.net. Despite this fact will it work?
Another problem is that it is not so easy to create second account on PC2 with root privelages. I created with command:
sudo usermod -aG sudo my_login
and I have many issues, for example:
ls /media/sf_shared
ls: cannot open directory '/media/sf_shared': Permission denied


I have ssh keygen generated on one PC which looks something like that:
Code:ssh-rsa BDFdasadsdsds
ssadffdsfdsfdssdfds
dsds/sdsdssasaasasa
ssassad my_login1@something.netI have on this PC ./ssh/known_hosts list fulfilled as PC has been used for a few years.
Then I have another second new PC2. Unfortunately I made mistake on another PC2 - when I was installing ubuntu I created another login than on first PC, let's say it is my_login2. However I will try to add second login to PC2 called my_login with root privelages. If I succeed the question is:
Can I copy now keygen and known_hosts from first PC to second PC2 and will it work? The important thing is also that part after @ is different. On PC1 it is something.net and on PC2 it is somethingother.net. Despite this fact will it work?
Another problem is that it is not so easy to create second account on PC2 with root privelages. I created with command:
sudo usermod -aG sudo my_login
and I have many issues, for example:
ls /media/sf_shared
ls: cannot open directory '/media/sf_shared': Permission denied