|
Softpanorama |
May the source be with you, but remember the KISS principle ;-)
Softpanorama Search
|
| News | SSH | Recommended Links | Private and Public key managemen | Mini-tutorial | FAQs |
| ssh-keygen man page | Tips | humor | Etc |
Piping:
Copying files (keeping permissions with tar)
ssh remote_host tar -cf - -C srcdir . | tar xpf - -C destdir
Backing up/compressing mysql db.
mysqldump | bzip2 | ssh remotehost backup.sh -
Or how about this one from freesbsd handbook, remote backups using dump.
/sbin/dump -0uan -f - /usr | gzip -2 | ssh \
targetuser@targetmachine.example.com dd of=/mybigfiles/dump-usr-l0.gz
You could also copy/restore a partition this way through ssh.
Simple tunnel:
ssh -NLf localport:remotehost:remoteport remotehost
ssh is an indispensable unix tool: remote cvs, rsync, remote X forwarding,
scp, sftp just to name a few, can't live without ssh :)
On Fri, Jul 19, 2002 at 11:40:48AM -0700, tedu wrote:
> Generically, here's my question. I'd like to know how to set up some pipe between two networked computers sent via ssh channel. Such that
>
> host1$ echo hi > ssh_pipe_file
> host2$ cat ssh_pipe_file
> hi
>
> would happen.
>
> Specifically, I'm trying to transfer audio data from a host with a player
> to a host with a sound card. Maybe there's a simpler way to do just this?
I have used nc(1) (netcat) to do that exact job. It would be easy to
set up ssh to forward a port and then use netcat to pipe the data over
the encrypted pipe.
Rick
> Hi, > > I am relatively new to ssh and I'd like to know if it is possible to do > the following: > > I want to force the VNC server to only accept connection thru an ssh > secure pipe. [chop] > The right-hand side of the drawing I have sorted out. The server side is > still a mystery. How do I convince VNC to only use and ssh pipe and > refuse connection from any other tcp port? I think you can say "vnc -localhost" so that it only accepts connection from the local host, if the ssh pipe ends at the same machine as the one where the ssh pipe ends. Of course, VNC will still accept unenctypted connections from the localhost, but not from remote hosts. Incompetence disclaimer: I haven't tried, and I don't know much about the gearworks of TCP and tunneling. So I don't know whether my logic is sound, and whether it'll actuelly work.
Copyright © 1996-2009 by Dr. Nikolai Bezroukov. www.softpanorama.org was created as a service to the UN Sustainable Development Networking Programme (SDNP) in the author free time. Submit comments This document is an industrial compilation designed and created exclusively for educational use and is placed under the copyright of the Open Content License(OPL). Site uses AdSense so you need to be aware of Google privacy policy. Original materials copyright belong to respective owners. Quotes are made for educational purposes only in compliance with the fair use doctrine.
Disclaimer:
Last modified: August 12, 2009