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.
I currently have clients to where I have them reverse ssh into my company ssh server and then I just simply connect to them via a tunnel to my ssh server.
My questions is once I have establish a connection to my remote clients via reverse ssh, how can I transfer data via my already establish tunnel? or better said, how can I transfer files through a reverse ssh session?
You can ssh into computer B and then scp back to computer A. As I understand it, ssh is for command and control, scp is for file transfer.
I just ssh'd into my file server and scp'd a file back to this computer and it arrived safely.
Alternatively, if I understand the rsync man pages correctly, rsync can be used to pull from a remote host as well as to push to a remote host, but I've never tried that.
I've just learned how to use rsync for backups. I shall enjoy the glow from that for a while before moving on.
I have my clients connect to an ssh server in my office and then from whenever I am I just simply ssh(locally port forwarding) and connect to my client.
Client does: ssh -R 1234:localhost:22 my_ssh_server
(maybe with -N if a command prompt isn't needed)
You do on your local machine: ssh -L 4567:localhost:1234 my_ssh_server
(maybe with -N if a command prompt isn't needed)
Then something like this should work on your local machine: scp -P 4567 my_file localhost:
or: scp -P 4567 localhost:my_file .
or: sftp -oPort=4567 localhost
(you can use the same port number, but I used different ones here to make clear they needn't to be the same.)
thanks for the reply, so how would I be able to look at the files on the remote machine before copying? Some of my clients are using windows machines. that is the tricky part! So a typical client connection would be like this:
The my client with a windows machine connects to my ssh server using
One way is to install Cygwin and get an SSH daemon on the Windows machine running.
Another way could be enable File Sharing on the Windows machine and use the necessary port in -R. Then access this Windows Share from your local machine.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.