Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


Search this Thread
Old 01-30-2012, 02:08 PM   #1
LQ Newbie
Registered: Jun 2007
Location: Slovakia
Distribution: Ubuntu
Posts: 5

Rep: Reputation: 0
Play audio on linux machine through ssh


I am connecting to linux desktop using SSH from windows notebook and I would like to use some console based player to play music from linux machine.

I have tried several apps (moc, cmus, mp3blaster, mpg123 and couple more), but none of them were able to play music, unless I was logged in directly on linux PC. After I logged in physicaly to desktop, moc was able to play audio even using putty. But as soon as I logged out and left only ssh sesion opened on notebook, moc stopped playing.

Any guidance will be highly appreciated
Old 01-30-2012, 02:17 PM   #2
Senior Member
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 3,453

Rep: Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242Reputation: 1242
If this will be a permanent server-style setup, you could always set up your music directory in a Samba share, then just play them like normal on the windows machine.
Old 01-30-2012, 02:50 PM   #3
LQ Newbie
Registered: Jun 2007
Location: Slovakia
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
By this setup I will be able to play music from my "server" on my laptop speakers. But what I was trying to do was to open ssh connection from my laptop to server, run console based player in putty and play music through speakers connected to "server".

Anyway, suicidaleggroll, thank you for the answer.

And now for others having same problem. Just when I thought I will give up, I found this site:

Apparently, pulseaudio is too user- and session-centric. After performing steps mentioned in this site, my "server" is playing music without any direct user session.


audio, network, network audio, ssh

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to ssh to a windows machine from a linux machine Linux - Networking 4 08-09-2010 05:30 PM
audio cds won't mount/play but dvds in same drives play. Running SW12.2current. lestoil Slackware 6 05-28-2009 08:33 PM
Burnt Audio CD by K3B CANNOT play on external CD playing device, but can play on comp Linux - Software 14 05-27-2007 05:30 AM
SSH forward from a Windows machine to a Linux machine isn't working nickj6282 Linux - Networking 3 08-13-2006 03:47 PM
ssh connection from a Windows machine to a Linux machine pistachio Linux - Networking 1 08-30-2005 11:45 AM

All times are GMT -5. The time now is 03:29 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration