Inorganik, it can go both ways long as you have an SSH server running on both machines. I don't beleive that's the case with Macs, though. I don't beleive that's the case with Macs, though. Otherwise, you'll need to use scp from the machine without the server so that.
Download File From Ssh Connection
- Using the built-in SSH client in Mac OS X. Mac OS X includes a command-line SSH client as part of the operating system. To use it, goto Finder, and selext Go - Utilities from the top menu.
- Download PuTTY for Mac and Installation Guide. PuTTY is a free, highly configurable and open-source SSH client which makes it convenient to connect to a remote server and transfer files over the network.
SSH is the most secure protocol for accessing remote servers. It provides the highest level of end to end data security over communication channels. The SCP (Secure Copy) command uses the SSH protocol for copying files between remote and local servers.
The remote server must have running SSH server. This tutorial will help you to understand download and upload file over SSH protocol.
Download file using SSH
![Mac Mac](/uploads/1/1/8/5/118548604/952149595.jpg)
This will connect to example.com server with user “username” and copy the /backup/file.zip file to local system directory /local/dir. To use theis command replace the values as per your environment.
If the SSH is running on non-standard port, You can specify the port using
-P
option with SCP command.If your remote server required the private key to connect server, You can use
-i
followed by private key file path to connect your server using the SCP command. This can be helpful for AWS servers.Upload file using SSH
You can also upload files to the remote server using SSH protocol using SCP command. Use the following example command for uploading files to SSH server.
Download A File Via Ssh
Similarity you can use -P switch to define port of the SSH server and -i to define private key for the user authentication.