There is a person A and person B, other of them has each other ssh public key, so that means they can access each others shell.
now they can access each others private ssh and gpg private keys. and they can easily export and them the private keys to themselves.
is there a way that they can not access these keys or not able to export them.
Is there a way to restrict them from accessing each other ~/.gnugp and ~/.ssh folder
Thanks in Advance
EDIT ok i try with my 2 computers i accessed my system with my laptop
amr@amr-Notebook:~$ ssh firstname.lastname@example.org email@example.com's password: Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic-pae i686) * Documentation: https://help.ubuntu.com/ 11 packages can be updated. 0 updates are security updates. The programs included with the Ubuntu system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. rusty@rusty-MS:~$ exit logout Connection to 192.168.1.8 closed. amr@amr-Notebook:~$ ssh-copy-id -i ~/.ssh/id_rsa.pub firstname.lastname@example.org email@example.com's password: Now try logging into the machine, with "ssh 'firstname.lastname@example.org'", and check in: ~/.ssh/authorized_keys to make sure we haven't added extra keys that you weren't expecting. amr@amr-Notebook:~$ ssh email@example.com Welcome to Ubuntu 12.04.1 LTS (GNU/Linux 3.2.0-29-generic-pae i686) * Documentation: https://help.ubuntu.com/ 11 packages can be updated. 0 updates are security updates. Last login: Sat Sep 8 21:01:06 2012 from amr-notebook.local rusty@rusty-MS:~$ rusty@rusty-MS:~$ cd .ssh/ rusty@rusty-MS:~/.ssh$ ls authorized_keys id_rsa id_rsa.pub rusty@rusty-MS:~/.ssh$
i accessed my desktop from my laptop just my shh and password
then i logedout and then send my public key to desktop system
then i tried again with ssh and this time it just let me in
and as u can see above i can easily access desktop systems ssh folder and see all the keys
now is there a way that i am not able to access my desktop .ssh folder and no access to desktop public and private keys