Mac Download File From Ssh

Download Termius - SSH client for macOS 10.10.0 or later and enjoy it on your Mac. ‎Termius is more than a mere SSH client – it’s a complete command-line solution that’s redefining remote access for sysadmins and network engineers. This SSH command will copy files and folders. The syntax is: cp options source destination source is the file or folder you want to copy and destination is the duplicate. Let’s say you have myfile.txt in your working directory, and you want to make a copy of it. The syntax would be: cp myfile.txt myfile2.txt.

  1. Download File From Ssh To Local Mac
  2. Download File Ssh To Local

You will use the Terminal application on Mac OS X to generate an SSH key which will allow you to login to your server without manually entering a password, while giving you a higher level of security that comes from using key pairs.

Mac OS X Terminal

The terminal provides you with a text-based command line interface to the Unix shell component of Mac OS X. In order to get started with it, follow these steps:

  1. Open your Finder and select “Utilities” from the “Go” menu bar.
  2. Find the Terminal application in the list of utilities.
  3. Double-click the Terminal application to start it.

Once you’ve launched the terminal, you’ll see a screen with a prompt that contains your username as well as the name of your machine.

Generating an SSH key

An SSH key consists of a pair of files. One is the private key, which you should never give to anyone. The other is the public key. You will need a public key to log into cloud servers you provision. When you generate your keys, you will use ssh-keygen to store the keys in a safe location so you can bypass the login prompt when connecting to your server.


To generate SSH keys in Mac OS X, follow these steps:

  1. Enter the following command in the Terminal window. This starts the key generation process. When you execute this command, the ssh-keygen utility prompts you to indicate where to store the key.
  2. Press the ENTER key to accept the default location. The ssh-keygen utility prompts you for a passphrase.
  3. Type in a passphrase. You can also hit the ENTER key to accept the default (no passphrase). However, this is not recommended.
    Please note that you will need to enter the passphrase a second time to continue.

After you confirm the passphrase, the system generates the key pair.

Your private key is saved to the id_rsa file in the .ssh directory and is used to verify the public key you use belongs to the same cloud server. It's important to never share your private key with anyone, it is equivalent of your password!

Your public key is saved to the file and it is the key you'll upload to our cloud service. You can save this key to the clipboard by running this:

Topics Map > Infrastructure > Virtual Machines
Topics Map > Communication & Collaboration > Website Services >
Topics Map > Communication & Collaboration > Website Services >

Mac OS X/macOS has a built-in SSH client called Terminal, and a popular SFTP client called Fetch is available to the UIC community.

By default, the is located in Applications > Utilities folder. Double-click on the icon to start the client.

Using Terminal for SSH

At the prompt type:

Mac download file from ssh linuxssh [email protected]Mac Download File From Ssh

​where NetID is your UIC NetID and hostname is the hostname of the server you are trying to connect to. For example, if user example1 wants to connect to, she would type:

ssh [email protected]

To save a remote connection (so that you don't have to type in the command every time):

  1. Select Shell then New Remote Connection... from the top menu
  2. Under the Server column, click on the + icon to add a new connection.
  3. Enter the hostname when prompted by the dialog.
  4. Enter your username (usually UIC NetID) in the User field and click Connect.

Download File From Ssh To Local Mac

Using Fetch for Secure FTP

Download File Ssh To Local

Fetch is a popular SFTP application that is compatible with Mac OS X 10.5 or later.

Installing Fetch

  1. Fetch is available for free download from the Webstore.
  2. Save the .dmg file to an easily accessible location, like your desktop
  3. Double-click on the .dmg file.
  4. Drag the dog into your Applications folder.
  5. Then a dialog box will open asking whether you want to install the Fetch Dashboard widget. Click Not Now or Install Widget.
  6. Click OK when the Dashboard widget is installed.

Using Fetch

Mac Download File From Ssh
  1. Double-click on the Fetch dog icon in your Applications folder.
  2. The connection dialog box opens. Fill in the Hostname:, Username:, and Password: boxes with the name of the machine you're connecting to, your login ID on that machine, and your password on that machine.
    In the figure, example1 is logging into and her NetID is example1.
    The Password: is her Technology Solutions common password.
    Select SFTP from the dropdown list, and click Connect.
  3. If this is a connection that you will want to use again, click the heart icon at the end of the Hostname: line before you click Connect, and click Make Shortcut in the small dialog box that opens. This opens another dialog box where you enter the name for the shortcut. The default name for the shortcut will be the host name. If you also click Make this the default shortcut, it will be opened by default for you when you open Fetch. Click OK to create the shortcut. The shortcuts are listed in Fetch's other screen, Fetch Shortcuts, which is at the top left of your desktop, where you can delete or edit them. You can use them from the heart dialog box.
  4. Then example1's home directory on tigger will be displayed in Fetch's screen:
  5. You can highlight a file and click Get to download it, or click Put to open up a Mac file dialog box to select a file to upload. But it's easier to double-click on the name of a directory that you want to open, double-click the name of a file that you want download, and drag and drop a file from your Mac to the Fetch screen to upload it or vice versa.
  6. To change a file on the server's permissions or to delete it, Control-click on its name, and select Get Info or Delete item respectively. To change the permissions, click in the type of permissions you want to give and click Apply.

See Also:

Keywords:secure protocol, shell, fetch, terminal, ftpSuggest keywordsDoc ID:75037
Owner:Radhika R.Group:University of Illinois Chicago Technology Solutions
Created:2017-08-01 15:09 CSTUpdated:2020-10-13 10:32 CST
Sites:University of Illinois Chicago Technology Solutions
Feedback:00CommentSuggest a new documentSubscribe to changes