Hi guys,
I’ve just done something stupid which locked me out of my PMS and wonder how to regain control
Facts: for any reason, my Android client could not connect to my home server, so I logged in the wep app, and thought that disabling/enabling remote access would help
Well… disabling the remote access worked indeed fine… but when you’re remote, guess what happens…
I would like to avoid a 2 hours drive forth and back (which I believe I deserve, but still…), but as I still can log on the CentOS server, is there any way to change a config parameter and to stop/start the service in order to regain control?
Any clue would be highly appreciated!
read “on a different network”
Hi
Yes, I know that article, but as I mentioned, I have been stupid enough to DISABLE that remote access
I’m looking for a way to enable it from the Linux shell…
@patrick@derwael.be said:
Hi
Yes, I know that article, but as I mentioned, I have been stupid enough to DISABLE that remote access
I’m looking for a way to enable it from the Linux shell…
and that article tells you how to re-enabled it when you are remote from your server - read the section.
Can you use browser with remote access? Accessing server via: 127.0.0.1:32400/web and enabling remote?
Can you use browser with remote access? Accessing server via: 127.0.0.1:32400/web and enabling remote?
The “On a Different Network” section of the article is doing precisely that.
First and foremost, access to the system must be enabled (which is the ssh method)
Took me too log to compose an answer, because I haven’t seen any other.
He said he has access to server, I’ve assumed ssh is on.
Hi Chuck & Bart
Thanks for the answers, but as I’m currently behind firewalls and proxies, the method described is not applicable
This takes me back to my original question about the parameter to change and its location
Thanks
@“patrick@derwael.be”
Are you saying you cannot perform a ssh to the remote system?
If you cannot, then you must resolve that through another means.
If you have ssh access to the remote system’s command line:
ssh ip.address.of.server -L 8888:localhost:32400 does 2 things at once.
- It establishes a ssh session to the remote host.
- In that ssh connection, it creates another ‘channel’ which maps your local port
8888 to localhost:32400 at the other end.
The only option you may want to add to that command is -l username and tell it which username to log in as on the remote end.
Once you have this ssh session established, set it aside and do nothing with it but DO keep it open.
Go to your browser:
Open http://127.0.0.1:8888/web This will be the 127.0.0.1:32400/webaddress on the remote system.
@patrick@derwael.be said:
Hi Chuck & Bart
Thanks for the answers, but as I’m currently behind firewalls and proxies, the method described is not applicable
This takes me back to my original question about the parameter to change and its location
Thanks
if you can ssh to the remote server, then the “on a different network” instructions will work for you 100% - all you need to do is read.
Chuck,
Are you saying you cannot perform a ssh to the remote system?
If you cannot, then you must resolve that through another means.
No, I cannot do this. My PMS is behind 2 security layers (not because of PMS, but because of other professional stuff) which sets ssh under strict restrictions
There is no way I could manage to map ports from PMS through 2 bastion hosts to my browser…
→ Hence the specific question about the parameter and its location
I’m starting to consider “paying the price” and taking the 2 hours drive…
You must ‘pay the price’ and make the drive.
It might indeed be in your better long term interest to reconsider the arrangement you have ?
@patrick@derwael.be said:
Chuck,
Are you saying you cannot perform a ssh to the remote system?
If you cannot, then you must resolve that through another means.
No, I cannot do this. My PMS is behind 2 security layers (not because of PMS, but because of other professional stuff) which sets ssh under strict restrictions
There is no way I could manage to map ports from PMS through 2 bastion hosts to my browser…
→ Hence the specific question about the parameter and its location
I’m starting to consider “paying the price” and taking the 2 hours drive…
- you noted in your first post that it worked before and all your did is disable it?
- you noted that you wanted command line options to re-enabled it remotely?
This implies that you have remote ssh access to your server and all your need to do is re-enable the checkbox you disabled?
The “on a different network” instructions tell you EXACTLY how to re-enable that checkbox with nothing but ssh access.
Hmmm I’m not too sure if I want to make the effort of re-designing the whole infrastructure for a few eventual occasions where I should have activated the brain before the fingers…
Thanks anyway!
@patrick@derwael.be said:
Hmmm I’m not too sure if I want to make the effort of re-designing the whole infrastructure for a few eventual occasions where I should have activated the brain before the fingers…
Thanks anyway!
so you don’t have ssh access to the server?
This whole thread is interesting but I do not yet see a clear answer to the question I have. I run plexmediaserver on CentOS linux and have remote ssh access to the system via port forwarding. I understand how to setup an ssh session to get the local 32400 web but I do not always have a browser environment. What I want is a way to enable / disable remote access from bash (CLI) or by editing a config file and optionally restarting the server. Please - is there ANY way to do this?
There is no option to do it per se, you just need to enable a tunnel and do it via the remote gui - which in itself is pretty trivial and explained in the install instructions linked in the 2nd post.
@jerrylotto said:
This whole thread is interesting but I do not yet see a clear answer to the question I have. I run plexmediaserver on CentOS linux and have remote ssh access to the system via port forwarding. I understand how to setup an ssh session to get the local 32400 web but I do not always have a browser environment. What I want is a way to enable / disable remote access from bash (CLI) or by editing a config file and optionally restarting the server. Please - is there ANY way to do this?
- Stop PMS
- Manually edit
Preferences.xml in an editor which does not inject (carriage returns) like Windows Notepad does to specify the 'Remote Access enabled" configuration you wish to run
- Start PMS and bring ‘Remote Access’ active
To administer, Create a bash script which enables or disables access to port 32400 in IPTABLES.
2 Likes
Thanks for the hint but it is still not obvious to me - maybe I’m just missing the point. Which variables in Preferences.xml are control this feature? Do you mean to change this variable from “0” to “1”?
PublishServerOnPlexOnlineKey
or is it somehow related to
PubSubServerPing or
PubSubServer or
PubSubServerRegion or
WanTotalMaxUploadRate
?
PS - to be perfectly clear, I am trying to get this under procmail control for situations in which I have NO ssh access.