Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Okay, I have converted a netbook into an SSH tunneling box. I setup port forwarding on my router and I have already verified that I can SSH into the netbook/server with another netbook(main) from just about any access point, and the tunneling works great. Now for my question: The netbook/server has built-in speakers and a mic. Is it possible to stream audio in both directions over SSH, so I can talk to people in my house using the encrypted tunnel? If I can't do it in both directions, can I at least turn the netbook/server into a listening device?
Last edited by PhoenixAndThor; 03-30-2012 at 10:37 AM.
You can use pulseaudio for that purpose. You can actually configure pulseaudio in such manner, that you would be able to connect to it remotely from different computer. It is easily achievable by using paprefs.
No luck with pulseaudio, but I did get something out this:
Code:
arecord -f dat | ssh -C user@host aplay -f dat
Doing this "links" my microphone to the speakers on the server, but there's 1 or 2 seconds of lag. I tried to switch arecord and aplay in the above command, thinking it would turn the netbook into a listening device, but the terminal window just freezes and nothing happens. I tried arecord, and then played the file locally from an sshfs mounted directory, but it's choppy. maybe I'm going about it the wrong way. Is there any voice chat program designed to run from the console, like teamspeak? I don't want to load my server up with a whole bunch of stuff.
Maybe try NAS.
ANd just simple switching won't do what you want to achieve. You turn it upside-down: ssh to remote computer, ssh from remote computer to local computer and do exactly same as you stated above, then it work.
P.S. pulseaudio would work, if you would setup ssh-tunnel and use it for communication to-from pulseaudio. You just need make it accessible remotely and allow connecting to streams from remote computer.
Unfortunately, I ran into a bug with SSH on Arch Linux and I have to start from square 1 again with the server project. You guys can go ahead and close this thread (or remove it). The bug I'm talking about is where SSH freezes up for no reason after a few minutes After a lot of testing (and connecting my netbook directly to the server) I have verified that the problem is Arch. My desktop system runs Linux Mint (using the same sshd_config file!), and I can do anything through SSH (scp, tunneling, mounting, etc.) for as long as I want. So until I find another suitable distro, I don't have a server to play with
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.