User Tools

Site Tools


docu:csheet:sysadm:desktop:pulseaudio:forward_pulseaudio_ssh

Forward Audio from a remote server to your host, using PulseAudio


In case you want to reproduce something on a remote host with no sound card, no pci card, no virtual card at all (not even pulseaudio actually running).

REQUISITES:

  • X environment (on both hosts) needs to be using PulseAudio (but not necessarily running on the remote host)
  • A remote server with SSH connection
  • A local host (your PC) with sound support and proper configuration:


On your host:

# edit configuration
vim /etc/pulse/default.pa +78
# include the following line near that line (wherever you want)
load-module module-native-protocol-tcp auth-ip-acl=127.0.0.1
 
# using root, kill pulseaudio to be ran again
killall pulseaudio

On remote host (via SSH, the one you want to reproduce Audio):

vim /etc/pulse/client.conf
# search for "default-server" and uncommend the line
#  set this line to the following:
default-server = 127.0.0.1:4713
 
# (maybe needed?)
# using root, kill pulseaudio to be ran again
killall pulseaudio

On your host (again):

# run an SSH tunnel, to enable the forwarding
#  (needs port forwarding enabled, which by default it usually is)
ssh -R 4713:127.0.0.1:4713 yourserver.com

There you go! Now you can play anything on the remote server, and will be played on Your HOST audio device!

docu/csheet/sysadm/desktop/pulseaudio/forward_pulseaudio_ssh.txt · Last modified: 2021/07/27 11:28 by admin