Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error when using with Transmission that has user authentication setup #2

Open
Baenwort opened this issue Nov 22, 2020 · 5 comments
Open

Comments

@Baenwort
Copy link

Baenwort commented Nov 22, 2020

So I get an error while trying to bind the port forwarding.

I think this is due to using a user and password for authentication on my transmission setup.

With the old port-forward.sh I would add a:
transUser="username" and transPass="password"

as a variable and then append --auth "${transUser}":"${transPass}" after any call of the transmission-remote.

Will this work with your script if I put them in the refresh_pia_port.sh? This seems like the logical place considering how you explain your binding process.

@Baenwort
Copy link
Author

So I did as I mentioned and the transmission GUI is showing the right port in the settings but I get the following error that terminates your script:

image

@Baenwort
Copy link
Author

Found the reason for the bind failing. I had missed converting a /pia/ into a /manual-connections in the refresh_pia_port.sh so if someone else runs into this problem that is the solution.

It might be useful to include in your instructions the changes to be made if one is using password authentication for transmission.

@glorious1
Copy link
Owner

I know it's been a long time, but I didn't get notice of these messages. Could you help me understand what changes had to be made so that password authentication will work?

I only see one reference to /pia/ in refresh_pia_port.sh. I changed the script directory to that name because it's easier.

@Baenwort
Copy link
Author

Baenwort commented Jun 2, 2021

So I added a pair of variables that I hardcoded my transmission local login information. It would likely be better to pass it as a file similar to how the PIA authentication details are passed into the script.

Once I had the Transmission credentials I was able to add --auth "${transUser}":"${transPass}" to any use of transmission-remote in the script and it would enable this script to work with a transmission instance that was password controlled.

When I have time again in September to swing around to this project I'll try developing such a patch if you haven't done so before then.

@glorious1
Copy link
Owner

glorious1 commented Jun 2, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants