ssh2fs & passphrase
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 803 from 2007/10/23
    From: Gelsenkirchen,...
    ssh works
    Code:
    Enter passphrase for key '.ssh/id_rsa':
    Welcome to Ubuntu 20.04.2 LTS (GNU/Linux 5.4.0-65-generic x86_64)
    ...

    but ssh2fs (mounting the same connection) still wants a pw (of course I have used the PW option, but a passphrase seems not to be equivalent to a password)
    Code:
    Remote says: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.1
    Enter password:
    Authentication by password failed.
    Authentication failed (username/password)
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »03.02.21 - 06:32
    Profile
  • Order of the Butterfly
    Order of the Butterfly
    sailor
    Posts: 368 from 2019/5/9
    From: Central Bohemi...
    Hi,

    user/password and ssh-key are different authentication methods.
    Ssh-key can be secured by passphrase (but it is not equal to password).

    You can have different authentication methods for ssh and sshfs ( and for every other ssh connection).

    If you want use ssh-key for sshfs, you have to use "pk" parameter - see SShFs and params.

    And if you wand paswordless login, I recommend you made key without passprase.
    I don't know, if in MorphOS are such things like ssh-agent and keychain, which helps you automatically manipulate keys with passphrase. I can check it at home.

    [ Edited by sailor 03.02.2021 - 09:37 ]
    AmigaOS3: Amiga 1200
    AmigaOS4: Micro A1-C, AmigaOne XE, Pegasos II, Sam440ep, Sam440ep-flex, Sam460LE, AmigaOneX1000
    MorphOS: Efika 5200b, Pegasos I, Sam460LE, Pegasos II, Powerbook G4, Mac Mini, iMac G5, Powermac G5 Quad
  • »03.02.21 - 07:25
    Profile
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    polluks
    Posts: 803 from 2007/10/23
    From: Gelsenkirchen,...
    Of course, thank you very much, Sailor.
    But it still does not work:
    Code:
    > ssh2fs root@XXX.XXX.XXX.XXX N: pk verbose
    SSH2FS by Leif Salomonsson 2012-2019. (Compiled Dec 30 2020 04:10:47)
    libssh2 version: 1.9.0
    Connecting to server..
    Remote says: SSH-2.0-OpenSSH_8.2p1 Ubuntu-4ubuntu0.1
    Authentication methods available: publickey,password
    Authentication by public key failed!
    Callback returned error
    Closing down.

    Code:
    ...
    [24] [ssh2fs] [Open] [USE_LIBSSH2_KNOWN_HOSTS] [Lesen] [Fehlgeschlagen]
    [25] [ssh2fs] [Open] [DH3:Gits/.ssh/known_hosts] [Lesen] [OK]
    [26] [ssh2fs] [Open] [DH3:Gits/.ssh/id_dsa] [Lesen] [Fehlgeschlagen]
    [27] [ssh2fs] [Open] [DH3:Gits/.ssh/id_rsa.pub] [Lesen] [OK]
    [28] [ssh2fs] [Open] [DH3:Gits/.ssh/id_rsa] [Lesen] [OK]
    [29] [ssh2fs] [Open] [DH3:Gits/.ssh/id_rsa] [Lesen] [OK]
    [30] [Shell process] [Open] [shellppc.prefs] [Lesen] [Fehlgeschlagen]
    Pegasos II G4: MorphOS 3.9, Zalman M220W · iMac G5 12,1 17", MorphOS 3.18
    Power Mac G3: OSX 10.3 · PowerBook 5,8: OSX 10.5, MorphOS 3.18
  • »03.02.21 - 09:02
    Profile