gurdalal
Cadet
- Joined
- Feb 18, 2018
- Messages
- 3
At the initial Plex Media Server Plugin setup, a valid plex account needs to be associated with server. Otherwise Plex will not let connections to the server. FreeNAS jail is not allowing http://<your plex media server jail IP>/web/index.html# to connect server itself. You need to open a SSH tunel to the server and make initila setup. Pls follow steps below :
1. Enable SSH access to PMS jail :
13.2.1.1. Accessing a Jail Using SSH
ssh can be used to access a jail instead of the jail’s Shell icon. This requires starting the ssh service and creating a user account for ssh access. Start by clicking the Shell icon for the desired jail.
Find the sshd_enable= line in the jail’s /etc/rc.conf and set it to “YES”:
sshd_enable="YES"
Then start the SSH daemon:
service sshd start
The first time the service runs, the jail’s RSA key pair is generated and the key fingerprint and random art image displayed.
Add a user account by typing adduser and following the prompts. If the user needs superuser privileges, they must be added to the wheel group. For those users, enter wheel at this prompt:
Login group is user1. Invite user1 into other groups? []: wheel
After creating the user, set the root password so that the new user will be able to use the su command to gain superuser privilege. To set the password, type passwd then enter and confirm the desired password.
Finally, test from another system that the user can successfully ssh in and become the superuser. In this example, a user named user1 uses ssh to access the jail at 192.168.2.3. The first time the user logs in, they will be asked to verify the fingerprint of the host:
ssh user1@192.168.2.3
The authenticity of host '192.168.2.3 (192.168.2.3)' can't be established.
RSA key fingerprint is 6f:93:e5:36:4f:54:ed:4b:9c:c8:c2:71:89:c1:58:f0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.3' (RSA) to the list of known hosts.
Password: type_password_here
2. Create a SSH tunnel to PMS:
Opening the Plex Web App on a Device Other than the Server Itself
On the Same Local Network
To open the Plex Web App from a different device than the server computer while still on the same network:
If you’re on a different network than the server computer, you’ll first need to set up a SSH tunnel so that you can access things as if they were local. This is only necessary for the initial setup. After initial setup, you should be able to access by using the network IP address as normal.
OS X or Linux
If you’re using Windows on your local system and your server is on Linux or OS X, you’ll need to use an application such as Putty that can create the SSH tunnel for you. You can use instructions like these for setting up the Putty/SSH connection. If following that, you would use this information:
3. Connect to "http://localhost:8888/web" and finish initial server setup.
Once the server is added to your account, it will be activated and will become discover-able.
1. Enable SSH access to PMS jail :
13.2.1.1. Accessing a Jail Using SSH
ssh can be used to access a jail instead of the jail’s Shell icon. This requires starting the ssh service and creating a user account for ssh access. Start by clicking the Shell icon for the desired jail.
Find the sshd_enable= line in the jail’s /etc/rc.conf and set it to “YES”:
sshd_enable="YES"
Then start the SSH daemon:
service sshd start
The first time the service runs, the jail’s RSA key pair is generated and the key fingerprint and random art image displayed.
Add a user account by typing adduser and following the prompts. If the user needs superuser privileges, they must be added to the wheel group. For those users, enter wheel at this prompt:
Login group is user1. Invite user1 into other groups? []: wheel
After creating the user, set the root password so that the new user will be able to use the su command to gain superuser privilege. To set the password, type passwd then enter and confirm the desired password.
Finally, test from another system that the user can successfully ssh in and become the superuser. In this example, a user named user1 uses ssh to access the jail at 192.168.2.3. The first time the user logs in, they will be asked to verify the fingerprint of the host:
ssh user1@192.168.2.3
The authenticity of host '192.168.2.3 (192.168.2.3)' can't be established.
RSA key fingerprint is 6f:93:e5:36:4f:54:ed:4b:9c:c8:c2:71:89:c1:58:f0.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.2.3' (RSA) to the list of known hosts.
Password: type_password_here
2. Create a SSH tunnel to PMS:
Opening the Plex Web App on a Device Other than the Server Itself
On the Same Local Network
To open the Plex Web App from a different device than the server computer while still on the same network:
- Open a browser window
- Type http://server.local.ip.address:32400/web into the address bar (e.g “http://192.168.1.5:32400/web”)
- The browser will connect to the server and load Plex Web App
If you’re on a different network than the server computer, you’ll first need to set up a SSH tunnel so that you can access things as if they were local. This is only necessary for the initial setup. After initial setup, you should be able to access by using the network IP address as normal.
OS X or Linux
- Open a Terminal window or your command prompt
- Enter the following command (substituting the IP address of your server as appropriate):
ssh ip.address.of.server -L 8888:localhost:32400 - Open a browser window
- Type http://localhost:8888/web into the address bar
- The browser will connect to the server as if it were local and load Plex Web App
If you’re using Windows on your local system and your server is on Linux or OS X, you’ll need to use an application such as Putty that can create the SSH tunnel for you. You can use instructions like these for setting up the Putty/SSH connection. If following that, you would use this information:
- Gateway: ip.address.of.server
- Source Port: 8888
- Destination: localhost:32400
- Open a browser window
- Type http://localhost:8888/web into the address bar
- The browser will connect to the Server as if it were local and load Plex Web App
3. Connect to "http://localhost:8888/web" and finish initial server setup.
Once the server is added to your account, it will be activated and will become discover-able.