On kubuntu 22.04 I reinstalled ssh-keygen :
sudo ssh-keygenGenerating public/private rsa key pair.Enter file in which to save the key (/root/.ssh/id_rsa):Created directory '/root/.ssh'.Enter passphrase (empty for no passphrase):Enter same passphrase again:Your identification has been saved in /root/.ssh/id_rsaYour public key has been saved in /root/.ssh/id_rsa.pubThe key fingerprint is:SHA256:Q40/XXXXXXXXXXXXXXXXX/XXXXXXX root@master-at-homeThe key's randomart image is:+---[RSA 3072]----+|... .. ||oo.+o.. o ||.+.o=o+ = . || oo.o.= B || .. .oS B || o=.o. + || .E.+ o || .*+ . . || .o*B*o. |
But files were generated under /root/.ssh/id_rsa.pub
, but not under /home/master/.ssh
, where master
is current user.
Not sure if I can move the files manually or to change my command in the console ?
EDITIVE INFO :
master@master-at-home:/mnt/_work_sdb8/wwwroot/lar/CurrenciesXM$ ls -la ~/.sshtotal 24drwxr-xr-x 2 root root 4096 жов 21 16:17 .drwxr-x--- 31 master master 4096 жов 21 16:51 ..-rwxr-xr-x 1 root root 2610 жов 29 2021 id_rsa-rwxr-xr-x 1 root root 574 жов 29 2021 id_rsa.pub-rwxr-xr-x 1 root root 3556 жов 21 16:17 known_hosts-rwxr-xr-x 1 root root 3998 лис 22 2023 known_hosts.oldmaster@master-at-home:/mnt/_work_sdb8/wwwroot/lar/CurrenciesXM$ iduid=1000(master) gid=1000(master) groups=1000(master),4(adm),24(cdrom),27(sudo),30(dip),46(plugdev),122(lpadmin),133(lxd),134(sambashare)master@master-at-home:/mnt/_work_sdb8/wwwroot/lar/CurrenciesXM$ sudo -s[sudo] password for master: root@master-at-home:/mnt/_work_sdb8/wwwroot/lar/CurrenciesXM# iduid=0(root) gid=0(root) groups=0(root),137(docker)