#2095 assigned defect

sftp - unable to recognise password in private/accounts

Reported by: nrbray Owned by: daira
Priority: normal Milestone: soon
Component: documentation Version: 1.8.3
Keywords: new-user docs sftp config usability Cc: nrbray
Launchpad Bug:

Description

Followed instructions in https://tahoe-lafs.org/trac/tahoe-lafs/browser/docs/frontends/FTP-and-SFTP.rst to the letter.

SFTP server seems not to recognise password: nrb@nrb-ThinkPad?-T61:~/.tahoe$ cat private/accounts # This is a password line, (username, password, cap) alice password URI:DIR2:ddg5n76x6stjb35psrcn7i3ytu:etbtnftlaeylm4gmi7mxzq6pg2ntgra7dyjeronyoo4pvkgtttqa

# end

nrb@nrb-ThinkPad?-T61:~/.tahoe$ cat tahoe.cfg # -*- mode: conf; coding: utf-8 -*-

#....

[sftpd] enabled = true port = tcp:8022:interface=127.0.0.1 host_pubkey_file = private/ssh_host_rsa_key.pub host_privkey_file = private/ssh_host_rsa_key accounts.file = private/accounts

# end

nrb@nrb-ThinkPad?-T61:~/.tahoe$ sshfs -o debug,sshfs_debug,loglevel=debug alice@127.0.0.1: ~/repos/sshfs/tahoe-lafs SSHFS version 2.3 FUSE library version: 2.8.6 nullpath_ok: 0 executing <ssh> <-x> <-a> <-oClearAllForwardings=yes> <-ologlevel=debug> <-2> <alice@127.0.0.1> <-s> <sftp> debug1: Reading configuration data /home/nrb/.ssh/config debug1: Reading configuration data /etc/ssh/ssh_config debug1: /etc/ssh/ssh_config line 19: Applying options for * debug1: Connecting to 127.0.0.1 [127.0.0.1] port 22. debug1: Connection established. debug1: identity file /home/nrb/.ssh/id_rsa type 1 debug1: Checking blacklist file /usr/share/ssh/blacklist.RSA-2048 debug1: Checking blacklist file /etc/ssh/blacklist.RSA-2048 debug1: identity file /home/nrb/.ssh/id_rsa-cert type -1 debug1: identity file /home/nrb/.ssh/id_dsa type -1 debug1: identity file /home/nrb/.ssh/id_dsa-cert type -1 debug1: identity file /home/nrb/.ssh/id_ecdsa type -1 debug1: identity file /home/nrb/.ssh/id_ecdsa-cert type -1 debug1: Remote protocol version 2.0, remote software version OpenSSH_5.9p1 Debian-5ubuntu1.1 debug1: match: OpenSSH_5.9p1 Debian-5ubuntu1.1 pat OpenSSH* debug1: Enabling compatibility mode for protocol 2.0 debug1: Local version string SSH-2.0-OpenSSH_5.9p1 Debian-5ubuntu1.1 debug1: SSH2_MSG_KEXINIT sent debug1: SSH2_MSG_KEXINIT received debug1: kex: server->client aes128-ctr hmac-md5 none debug1: kex: client->server aes128-ctr hmac-md5 none debug1: sending SSH2_MSG_KEX_ECDH_INIT debug1: expecting SSH2_MSG_KEX_ECDH_REPLY debug1: Server host key: ECDSA 45:e2:de:a0:17:35:16:96:43:27:40:ab:81:a9:ce:fb debug1: Host '127.0.0.1' is known and matches the ECDSA host key. debug1: Found key in /home/nrb/.ssh/known_hosts:9 debug1: ssh_ecdsa_verify: signature correct debug1: SSH2_MSG_NEWKEYS sent debug1: expecting SSH2_MSG_NEWKEYS debug1: SSH2_MSG_NEWKEYS received debug1: Roaming not allowed by server debug1: SSH2_MSG_SERVICE_REQUEST sent debug1: SSH2_MSG_SERVICE_ACCEPT received debug1: Authentications that can continue: publickey,password debug1: Next authentication method: publickey debug1: Offering RSA public key: /home/nrb/.ssh/id_rsa debug1: Authentications that can continue: publickey,password debug1: Trying private key: /home/nrb/.ssh/id_dsa debug1: Trying private key: /home/nrb/.ssh/id_ecdsa debug1: Next authentication method: password alice@127.0.0.1's password: debug1: Authentications that can continue: publickey,password Permission denied, please try again. alice@127.0.0.1's password:

Change History (2)

comment:1 Changed at 2013-10-26T20:44:06Z by nrbray

  • Cc nrbray added
  • Keywords new-user added
  • Version changed from 1.10.0 to 1.8.3

I made the mistake of missing '-p 8022' so sshfs command should have:

sshfs -p 8022 alice@127.0.0.1: ~/repos/sshfs/tahoe-lafs

Perhaps the instructions could show the line above as a reminder to new users.

Also, more importantly, there was a need to run:

tahoe stop

and

tahoe start

Again, perhaps that could be added to the instructions for the new user.

Last edited at 2013-10-26T21:42:21Z by nrbray (previous) (diff)

comment:2 Changed at 2014-01-21T20:41:36Z by daira

  • Component changed from unknown to documentation
  • Keywords docs sftp config usability added
  • Milestone changed from undecided to soon
  • Status changed from new to assigned
Note: See TracTickets for help on using tickets.