当前位置: 首页 > Linux > 正文

How to Download file from Server using SSH

SSH is the most secure protocol for accessing servers these days. It provides the highest level of data communication security. The SCP (Secure Copy) command uses the SSH protocol for copying files between remote and local servers.

Download file using SSH

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.

In case SSH is running on different port, You can simply specify the port using -P option with SCP command.

If your remote server required the private key to connect server, You can use -ifollowed 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.

本文固定链接: http://t.yjsec.com/index.php/2017/12/02/16/ | 下一站

该日志由 admin 于2017年12月02日发表在 Linux 分类下, 你可以发表评论,并在保留原文地址及作者的情况下引用到你的网站或博客。
原创文章转载请注明: How to Download file from Server using SSH | 下一站

How to Download file from Server using SSH:等您坐沙发呢!

发表评论

快捷键:Ctrl+Enter