Your browser does not currently recognize any of the video formats available. Digiuiyirytud SCP. NGAN INC is listed as an Optometrist in Houston, TX 77005. Wellness.com provides reviews, contact information, driving directions and a phone number for NGAN INC.
Active5 months ago
I'm trying to test some C code that I'm writing. The only issue is that the code needs to be executed on a remote machine. My laptop is pretty old, and there is no driver for my wireless card available for Ubuntu, so booting into Linux to circumvent this problem isn't an option. Here's my question:
I'm using putty to SSH into the remote machine, and I'm writing my code on Notepad++.The location of my file is:
C:UsersAdminDesktopWMU5260A2.c
My problem is that when I use the command
scp C:UsersAdminDesktopWMU5260A2.c ~
I get the error could not resolve hostname C:. Name or service not known'.
I've also tried
scp UsersAdminDesktopWMU5260A2.c ~
which gives me the error Cannot stat 'UsersAdminDesktopWMU5260A2.c': no such file or directory
What am I doing incorrectly?
kaybee992,99822 gold badges2626 silver badges3131 bronze badges
Chris PhillipsChris Phillips67922 gold badges77 silver badges1919 bronze badges
3 Answers
You need to tell
scp
where to send the file. In your command that is not working:You have not mentioned a remote server.
scp
uses :
to delimit the host and path, so it thinks you have asked it to download a file at the path UsersAdminDesktopWMU5260A2.c
from the host C
to your local home directory.The correct upload command, based on your comments, should be something like:
If you are running the command from your home directory, you can use a relative path:
You can also mention the directory where you want to this folder to be downloaded to at the remote server. i.e by just adding a path to the folder as below:
Andrew MedicoAndrew Medico
18.2k88 gold badges4848 silver badges7070 bronze badges
You can use PSCP to copy files from Windows to Linux.
- Download PSCP from putty.org
- Open cmd in the directory with pscp.exe file
- Type command
pscp source_file user@host:destination_file
- Ex.
pscp sample.txt [email protected]:/mydata/sample.txt
- Ex.
SwapsSwaps
Use
scp priv_key.pem source user@host:target
if you need to connect using a private key.or if using pscp then use
pscp -i priv_key.ppk source user@host:target
s4ndhyacs4ndhyac