transmithttp://www.maclife.com/taxonomy/term/14996/all
enHow to Make Your Mac an SFTP Serverhttp://www.maclife.com/article/howtos/how_make_your_mac_sftp_server
<!--paging_filter--><p><strong>How can I set up my Mac as an SFTP server to access my files from any computer? I always seem to forget to bring along presentations! Can it be set up to allow directory browsing through a web browser, and allow web downloads? Also, how can I set up a free DNS name so I don’t have to worry about typing my computer’s IP Address?</strong></p><p>In order to enable SFTP, you must first enable SSH on your Mac. Before we begin, though, you’ll need a Mac running OS X, a router with port-mapping features (we’re using an AirPort Extreme), and an SFTP client (we’re using <a href="https://itunes.apple.com/us/app/transmit/id403388562?mt=12" target="_blank">Transmit</a>, available on the Mac App Store).</p><h3>Step 1: Configure IP Address and Router Settings</h3><p>To begin, you need to set up your Mac to use a static IP address on your local network, and configure your router to forward the SSH port to your Mac. This will allow your router to remap the incoming SSH request to your specific Mac. To do this, open System Preferences and navigate to Network &gt; AirPort (or Ethernet) &gt; Advanced &gt; TCP/IP, and select “Using DHCP with manual address.”&nbsp;</p><p><img src="/files/u330237/2013/08/sftp_1.png" width="620" height="550" /><strong>Configure the IP address of your Mac so that it uses a static address instead of a dynamically allocated one.</strong></p><div>You will now need to enter a static address for your Mac in the IPv4 Address field. This number will typically begin with the first 3 segments of numbers from your Router field, then will have a new number for the last digit. So, if you’re Router address is listed as, say, 192.168.1.1, an address you could type in would be 192.168.1.15. You want to avoid using an address that another system is currently using, as this could cause network connectivity problems on your Mac.&nbsp;</div><p>When you’re done typing in the static address, write it down for later reference, then click the OK button. Back in the Network preferences pane, click Apply to save the changes.</p><p>Next, we’ll need to configure the port forwarding on your router. Port forwarding will tell the router to access your Mac when this port is connected to on your home Internet connection, allowing you to directly send and retrieve data from the SFTP service on your Mac.</p><p>We’ll be using an AirPort Extreme to configure the port forwarding, but you can do this on pretty much any router that you may have. If you’re using a different router, please consult your documentation for more information about port forwarding.</p><p>Open the AirPort Utility, then select your router and click Edit, then the Network tab. Here, you will see the “Port Settings” section. Click the Add button, then fill in the following information: in the description field, select “Remote Login—SSH;” in the private IP address field, enter the IP address of the Mac that you just configured. When you’re done, press the save button.</p><p><img src="/files/u330237/2013/08/sftp_2.png" width="620" /><strong>Port forwarding pokes a hole in your network and allows you to connect through your Internet connection to a local machine on your network.</strong></p><h3>Step 2: Enable SSH</h3><p>Now that we’ve configured the router and IP address on your Mac, let’s turn on the SSH service to begin allowing access to your Mac over the Internet. To do this, navigate to System Preferences &gt; Sharing, and enable the “Remote Login” feature. This will enable users of the system to connect via SSH and SFTP remotely (because we’ve set up the port forwarding feature of your router).&nbsp;</p><h3>Step 3: Connect via SFTP</h3><p>Now you’re ready to connect to your Mac remotely. To do so, you’ll need to get the IP Address of your Internet connection. Visit a site like <a href="http://ipchicken.com" target="_blank">IPChicken</a> from your home Internet connection and make note of the address.&nbsp;</p><p>After opening Transmit (or your SFTP client of choice), navigate to Go &gt; Connect To... &gt; SFTP Server. Fill in the Server, Username, and Password fields. The server should be the IP address that you got from IPChicken on the Mac with SSH enabled, and the username and password will be the OS X account on the Mac you’re connecting to. Click connect, and — voilà! — you will be presented with your user’s directory.&nbsp;</p><p><img src="/files/u330237/2013/08/sftp_4.png.jpg" width="620" height="418" /><strong>Enter your user account credentials (username and password) that are used to log into your Mac’s user account.</strong></p><p>If you wish to use a domain name to connect to your Mac instead of the public IP address (especially helpful if you have an Internet connection where the IP Address changes), then you’ll need to use a service like DynDNS that will automatically track your public IP address and provide access through a hostname. Most of these services are paid, however, and require different setup procedures. Many, however, are easy to set up, and usually include detailed documentation, and an app that you’ll install on the SFTP server.&nbsp;</p><p><img src="/files/u330237/2013/08/sftp_5.png" width="620" height="418" /><strong>Browsing around in Transmit is just like working with files on your local Mac, except it’s remote.</strong></p><p>If this all sounds a little too complicated, then you may wish to go with a paid service that can give you a web browser interface for accessing your files while on the go. Services like <a href="https://pogoplug.com" target="_blank">Pogoplug PC</a> let you install an app on your Mac and give you access to your files through a web browser interface or an iOS application.</p><p><strong>GOT A TECH QUESTION OR A HELPFUL TIP TO SHARE?</strong></p><p><strong>Email&nbsp;<a href="mailto:ask@maclife.com" target="_blank">ask@maclife.com</a>&nbsp;or write to Mac|Life,&nbsp;<br />4000 Shoreline Ct, Suite 400, South San Francisco, CA 94080</strong></p>http://www.maclife.com/article/howtos/how_make_your_mac_sftp_server#commentsIPChickenremote accessSFTPtransmitFeaturesMacHow-TosFri, 09 Aug 2013 19:12:31 +0000Cory Bohon17737 at http://www.maclife.comTerminal 101: Creating Encrypted ZIP Fileshttp://www.maclife.com/article/columns/terminal_101_creating_encrypted_zip_files
<!--paging_filter--><p><em><a href="http://www.maclife.com/tags/Terminal_101"><img src="/files/u12635/terminal_101_teaser_51.png" width="150" height="150" class="graphic-right" /></a>Every Monday, we'll show you how to do something new and simple with Apple's built-in command line application. You don't need any fancy software, or a knowledge of coding to do any of these. All you need is a keyboard to type 'em out!</em><br /><br />Ever wanted to share a group of sensitive files, but didn’t want to trust them to just any sharing service or email provider? While you could certainly hand-deliver the files on physical media to the recipient, sometimes you just have to trust your files to the Internet. For these times, it’s good to encrypt your files, and that’s exactly what we’ll show you how to do in this Terminal 101. We’ll be creating encrypted ZIP files that can be emailed or uploaded securely to an online sharing service. <br /><br />To begin, you need to have a group of files that you wish to add to the encrypted zip file.&nbsp; To do this, you can use either the Finder or the Terminal to put the group of files into a single folder. <br /><br />Once this is done, open the Terminal (located in Applications/Utilities), and type in the following command:</p><pre>zip -er pathToZIPFile pathToFolder</pre><p>The -e means that we’ll be encrypting the resulting zip file, and the -r option means that we’ll be recursing into the subdirectories to include those files as well. Replace pathToZIPFile with the path and name of the ZIP file that you wish to create. You’ll replace “pathToFolder” with the path and name of the folder that you wish to encrypt.&nbsp; After pressing enter, you’ll be asked to specify a password to encrypt the zip file with, and will then be prompted to reenter the password for verification purposes.</p><p><a class="thickbox" href="/files/u12635/encrypt_terminal_1.png"><img src="/files/u12635/encrypt_terminal_1.png" width="620" height="455" class="thickbox" /></a><br />So, for example, if we had a folder to encrypt called “Documents,” then we could easily create a zip file and encrypt the contents using the following command</p><pre>zip -er Documents.zip Documents</pre><p>Once that command is typed, simply specify the encryption password, and then verify. At the working directory path, you’ll find a zip file bearing the name of the file that you entered into the Terminal.</p><p><img src="/files/u12635/encrypt_terminal_2.png" width="492" height="242" /><br />When you try to unzip the file, you’ll be prompted to enter a password in order to extract and view the contents.<br /><br /><em>Cory Bohon is a freelance technology writer, indie Mac and iOS developer, and amateur photographer. <a href="http://twitter.com/coryb" target="_blank">Follow this article's author on Twitter</a>.</em></p>http://www.maclife.com/article/columns/terminal_101_creating_encrypted_zip_files#commentsColumnsencryptedencryptionFilesfolderMacSecurityshareStorageTerminalTerminal 101TransmissiontransmitZipzip fileMacHow-TosMon, 25 Mar 2013 18:06:21 +0000Cory Bohon16563 at http://www.maclife.com