sftp - unable to recognise password in private/accounts #2095
Labels
No Label
0.2.0
0.3.0
0.4.0
0.5.0
0.5.1
0.6.0
0.6.1
0.7.0
0.8.0
0.9.0
1.0.0
1.1.0
1.10.0
1.10.1
1.10.2
1.10a2
1.11.0
1.12.0
1.12.1
1.13.0
1.14.0
1.15.0
1.15.1
1.2.0
1.3.0
1.4.1
1.5.0
1.6.0
1.6.1
1.7.0
1.7.1
1.7β
1.8.0
1.8.1
1.8.2
1.8.3
1.8β
1.9.0
1.9.0-s3branch
1.9.0a1
1.9.0a2
1.9.0b1
1.9.1
1.9.2
1.9.2a1
LeastAuthority.com automation
blocker
cannot reproduce
cloud-branch
code
code-dirnodes
code-encoding
code-frontend
code-frontend-cli
code-frontend-ftp-sftp
code-frontend-magic-folder
code-frontend-web
code-mutable
code-network
code-nodeadmin
code-peerselection
code-storage
contrib
critical
defect
dev-infrastructure
documentation
duplicate
enhancement
fixed
invalid
major
minor
n/a
normal
operational
packaging
somebody else's problem
supercritical
task
trivial
unknown
was already fixed
website
wontfix
worksforme
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Reference: tahoe-lafs/trac-2024-07-25#2095
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 <-x> <-a> <-oClearAllForwardings=yes> <-ologlevel=debug> <-2> alice@127.0.0.1 <-s>
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🆎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:
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.