[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: ssh-keygen as a regular user


On Fri, May 12, 2023 at 12:19 AM Geert Stappers <stappers@stappers.nl> wrote:
> On Fri, May 12, 2023 at 12:07:00AM -0500, Igor Korot wrote:
> > Hi, ALL,
> > Is there a reason I can't run "ssh-keygen" as a regular user?
> Several  :-)
> > I am able to do it as "root" though, but I think it shouldn't happen.
> >
> > Can someone shed some light?
> Find a better way to open a discussion as a closed question[1].
> > Thank you.
> Start with sharing information how to reproduce[2] the issue.

igor@wxTest:~/wxwidgets$ ssh-keygem
bash: ssh-keygem: command not found
igor@wxTest:~/wxwidgets$ su
root@wxTest:/home/igor/wxwidgets# apt-get install openssh-client
Reading package lists... Done
Building dependency tree
Reading state information... Done
openssh-client is already the newest version (1:7.9p1-10+deb10u2).
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
root@wxTest:/home/igor/wxwidgets# ssh-keygen
Generating public/private rsa key pair.
Enter file in which to save the key (/root/.ssh/id_rsa): ^C

igor@wxTest:~/wxwidgets$ ls -la ~/.ssh
ls: cannot access '/home/igor/.ssh': No such file or directory

This is on the brand new install.

And I need that to access Git...

Thank you.

> Groeten
> Geert Stappers
> [1] Avoid questions that can be answered with 'yes' or 'no'.
> [2] Describe what is happening at your side. Tell about
>     commands used and "errors" seen.
> --
> Silence is hard to parse

Reply to: