Loaded: loaded (/etc/systemd/system/rvice enabled vendor preset: enabled)Īctive: active (running) since Mon 03:11:14 CET 2 days agoĬGroup: /system.slice/rvice If tunnel was created successfully output should look something like this: rvice - AutoSSH tunnel service Plex on local port 32400 Check SSH tunnel sudo systemctl status autossh-plex-tunnel Create systemd service file sudo nano /etc/systemd/system/rviceĭescription=AutoSSH tunnel service Plex on local port 32400ĮxecStart=/usr/bin/autossh -M 40584 -o "compression=no" -o -o "ServerAliveInterval 30" -o "ServerAliveCountMax 3" -NR 32400:localhost:32400 Enable and start service sudo systemctl enable autossh-plex-tunnelĤb. Install autossh sudo apt install autosshģb. Install autossh and create systemd service:ģa. Add "Gatewayports yes" to sshd_config nano /etc/ssh/sshd_configĢb. Edit tunnel's SSH server configurationĢa. Last login: Wed Feb 22 03:49:58 should not be promted for a password 2. Now try logging into the machine, with: "ssh check to make sure that only the key(s) you wanted were added.ġc. usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed - if you are prompted now it is to install the new password: Copy SSH key ssh-copy-id INFO: attempting to log in with the new key(s), to filter out any that are already installed Passaphrase must be empy for autossh to work!ġb. Your public key has been saved in /root/.ssh/id_rsa.pub. Your identification has been saved in /root/.ssh/id_rsa. Setup SSH keys (if you already have key based authenthication setup skip to step 2)Įnter file in which to save the key (/root/.ssh/id_rsa):Įnter passphrase (empty for no passphrase): Step 2 is done on the tunnel, all other steps are done on the plex server. This guide creates a reverse SSH tunnel to route all Plex server traffic through it. Routing plex traffic through an SSH tunnel
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |