Name: dasheuck Date: January 24, 2008 at 21:28:44 Pacific Subject: SSH and Samba OS: Mac OS X CPU/Ram: Intel 1GB Model/Manufacturer: Apple
Comment:
I have sort of a weird question. I have a Mac that is behind a NAT server running gentoo linux. NAT is configured with iptables. What I want to do, is to be able to connect via Samba to the Mac through an SSH tunnel. Is this even possible?
Yes that's right, I had forgotten. OSX is BSD (UNIX) based.
How you're going to connect depends on what you want to do. If you're going to transfer files back and forth between machines then sftp is the right way. If you're going to manage, then ssh.
Well I can use SFTP to transfer files, but If there are a lot of files to transfer, that gets a little tedious. Since sftp only allows one connection at a time, you have to transfer the files in a directory tree one at a time.
I wonder, would HTTP work? If I set up an HTTP server on the MAC and forwarded the port through the NAT, then set up an SSH tunnel for HTTP? Is it possible to download a directory with HTTP?
Well I can use SFTP to transfer files, but If there are a lot of files to transfer, that gets a little tedious. Since sftp only allows one connection at a time, you have to transfer the files in a directory tree one at a time.
Well, I'm not sure about Mac's but with UNIX/Linux you could connect via sftp as many times as you'd like just like with ssh.
Here's a tip. First, prepare all the files you wish to transfer by backing them up into a single archived file. Then just transfer the one file...............
The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE