Puttygen - Key acces - Problem creating the .ssh folder in Debian. OMV.

  • Hello,
    I try to use Puttygen for Putty to access more easily to the Linux command.
    I try to create the key in the .ssh folder.
    I can't create the folder, and not have acces :



    root@rock64:~# mkdir .sshmkdir: [b]cannot create directory '.ssh[/b]': File existsroot@rock64:~# cd /.ssh-bash: [b]cd: /.ssh: No such file or directory[/b]root@rock64:~#


    What is the problem ? I'm root user so shoudl be able to create anything ?


    Of course when i try to connect with the key :
    Using username "root".Server refused our keyroot@192.168.0.4's password:


    Tk's in advance.

    ROCK 64 1 Go + Armbian_20.02.1_Rock64_buster_legacy_4.4.213, OMV 5 + Transmission + Double commander + Official POWER SUPPLY 3A/5V + Official ACRYLIC OPEN ENCLOSURE.
    18qm.jpg

  • You have two problems here
    -1- your directory $HOME/.ssh already exists !
    So just put your key after:
    # cd .ssh


    -2- You can't do


    @rock64:~# cd /.ssh
    as there is NOT a .ssh directory right at the root of your filesystem tree


    You probably meant :
    root@rock64:~# cd .ssh

  • Tk's very much dude, it works ++1 !


    Tks

    ROCK 64 1 Go + Armbian_20.02.1_Rock64_buster_legacy_4.4.213, OMV 5 + Transmission + Double commander + Official POWER SUPPLY 3A/5V + Official ACRYLIC OPEN ENCLOSURE.
    18qm.jpg

  • now he says :
    Using username "root/.ssh".Authenticating with public key "rsa-key-20171109"Server refused public-key signature despite accepting key!root/.ssh@192.168.0.4's password:


    do you know why ?

    ROCK 64 1 Go + Armbian_20.02.1_Rock64_buster_legacy_4.4.213, OMV 5 + Transmission + Double commander + Official POWER SUPPLY 3A/5V + Official ACRYLIC OPEN ENCLOSURE.
    18qm.jpg

  • Please do some checks of your configuration:
    #1#
    /etc/ssh/sshd_config file:
    RSAAuthentication yes
    PubkeyAuthentication yes


    #2#
    if you want to specifically use just keys for root login change PermitRootLogin line to:
    PermitRootLogin without-password

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!