2

I have my working system in a remote location and the os is in unix and i need to get the files from that remote unix system to my local machine using bash commands. I tried

scp ls .txt*  D:\BACKUP

this command by connecting using putty to my remote system. i tried but its not working.

Rui F Ribeiro
  • 56,709
  • 26
  • 150
  • 232

1 Answers1

9

assuming that you have scp installed on your Windows (e.g. using Windows 10 bash)

The proper command is:

scp remote_username@remote_hostname.com:/full/path/to/file local_file_name

If you don't have scp installed on your windows you can install winscp

You can use winscp to download using sftp (see instructions)

Connecting

Start WinSCP. Login Dialog will appear. On the dialog:

  • Select your File protocol. When you are about to use FTPS protocol, select FTP and then choose one of the FTPS invocation methods.
  • Enter your host name to Host name field, username to User name and password to Password
  • Press Login to connect.

enter image description here

Yaron
  • 4,289