You have a practical tool called winscp
and you can download from HERE.
If you want to know what winscp
is read this link.
문제
I am using Putty to SSH into a Linux computer from Windows so I can use bash instead of cmd. However, there is a file I need to use that is already on my Windows computer that I want to get. How can I get it?
What I have tried:
I tried wget pathname but I got an error saying "unable to resolve host address 'c' ". That makes sense. So I tried seeing if I could get it through the local host some way, but I really wasn't sure of a clear way to do that, so it didn't work out.
Thanks
다른 팁
If you have putty installed you probably already have pscp. If not just go to the putty download site and download it.
Then assuming you have this configuration:
host: 192.168.1.33
unix username: john
unix password: secret
and on that server you ssh to your home directory and in your home you have a file important.txt, then to download using pscp you would use this command:
pscp john@192.168.1.33:./important.txt .
then you are prompted for your password. This downloads to the current folder on your local machine.
You can also specify the password in the command like this:
pscp -pw secret john@192.168.1.33:./important.txt .
And you can also download to a different local folder as in:
pscp -pw secret john@192.168.1.33:./important.txt c:\backup