Opened 7 years ago

Closed 4 years ago

#6881 closed defect (worksforme)

Can't connect to sockets with password auth

Reported by: btb@… Owned by: atagar
Priority: Medium Milestone:
Component: Archived/Nyx Version:
Severity: Normal Keywords:
Cc: Actual Points:
Parent ID: Points:
Reviewer: Sponsor:


arm --debug

Unable to use socket '/home/localadmin/.tor/control': Unable to authenticate: no passphrase provided

cat ~/.arm/log

Arm Debug Dump, 22:45:15 09/17/2012 (EDT)
Python Version: 2.7.3
Platform: Linux (Ubuntu 12.04 precise)

9/17/2012 22:45:15 [DEBUG] system call: ps -A co command (runtime: 0.01)

tor --version

Sep 17 22:46:00.606 [notice] Tor v0.2.3.22-rc (git-4a0c70a817797420) running on Linux.
Tor version (git-4a0c70a817797420).

vidalia version 0.2.20

Child Tickets

Change History (3)

comment:1 Changed 7 years ago by atagar

Status: newassigned

Found the issue. The helper method for connecting to a socket does not accept a passphrase (arm only uses a passphrase if you're using a port based connection):

Using a control socket is equivalent to having an authentication cookie (both rely on file permissions for protecting unauthorized connections). That's why I didn't account for passwords with sockets. Definitely a bug, though it should be fine for you to drop password auth until we make a fix (unless your socket has wide open permissions, of course - that would be bad).

Stem does not have this issue, so this will be addressed when we migrate arm over (which should be relatively soon-ish)...

Thanks for the catch!

comment:2 Changed 7 years ago by atagar

Summary: cannot connect to tor socketCan't connect to sockets with password auth

Changing the summary to be more precise, so this is easier for other users to find.

comment:3 Changed 4 years ago by atagar

Resolution: worksforme
Severity: Normal
Status: assignedclosed

Cleaning up old tickets. Nyx is undergoing a rewrite, if this is still relevant then feel free to reopen.

Note: See TracTickets for help on using tickets.