LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 02-18-2010, 04:45 PM   #1
Katie59
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Rep: Reputation: 0
scp help! It says my file doesn't exist!


I'm trying to use scp to get a file from my desktop onto the server for my school. I'm connected via VPN and using PuTTy to try to do this. I've tried every single combination/permutation/help site on the web that I can think of and I still can't get this thing working. This is what I get:

[palermo@matrix hw2]$ scp synoptic.data palermo@matrix:/rhome/palermo/ats652/hw2
palermo@matrix's password:
synoptic.data: No such file or directory


Yet the file sits, in all it's glory, on my desktop. What have I missed here? This is for a homework due next week, so the urgency is kind of on.

Thanks in advance for helping!

Katie
 
Old 02-18-2010, 04:48 PM   #2
reed9
Member
 
Registered: Jan 2009
Location: Boston, MA
Distribution: Arch Linux
Posts: 653

Rep: Reputation: 141Reputation: 141
Well, I notice you're in a directory called hw2. If synoptic.data is on your desktop, you have the wrong path. Try

Code:
scp ~/Desktop/synoptic.data palermo@matrix:/rhome/palermo/ats652/hw2
 
Old 02-18-2010, 05:09 PM   #3
Katie59
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Okay... I think this is where the problem is.

[palermo@matrix hw2]$ scp ~/Desktop/synoptic.data palermo@matrix:/rhome/palermo/ats652/hw2
palermo@matrix's password:
/rhome/palermo/Desktop/synoptic.data: Not a directory


I'm using the PuTTy on the server for my school so it's looking there for the file. How do I make it look on my C drive?

I'm a little new at this... :-}
 
Old 02-18-2010, 05:13 PM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,261

Rep: Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028Reputation: 2028
Linux doesn't have a C: drive, that's an MS thing.
Which machine are you logged into and which machine and dir is the file in?

If you're on an MS system that has Putty and you want to scp to a remote (school) Linux system, then

cd c:/path_to_file
pscp filename user@remote:/remote_path

note putty has its own scp called 'pscp'
 
Old 02-18-2010, 05:22 PM   #5
Katie59
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
chrism Thanks but that didn't work either. I'm on a MS system, and the server I'm trying to send it to also is MS, but all connected with Linux. I tried using cd c:/ but it didn't like that either:

[palermo@matrix hw2]$ cd c:/
-bash: cd: c:/: No such file or directory
 
Old 02-18-2010, 05:31 PM   #6
Katie59
LQ Newbie
 
Registered: Feb 2010
Posts: 6

Original Poster
Rep: Reputation: 0
Nevermind, I was just told of the amazing WinSCP program. Wonderful lifesaving tool, that is
 
  


Reply

Tags
scp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Need to find if a matching file exist from a list of possible file names wit_273 Linux - General 5 10-25-2007 09:47 AM
trying to redirect text to a file to cat at later point. says file doesn't exist. dr_zayus69 Programming 1 10-02-2005 08:10 AM
The file or directory file:/misc/cdrom does not exist rangerssg Linux - Newbie 5 08-29-2004 05:17 AM
File does not exist/Large file support dreamtheater Linux - General 3 04-19-2004 09:14 AM
SCP ??? where did the file go ?????? lub0 Linux - Security 3 10-07-2003 05:19 PM


All times are GMT -5. The time now is 07:36 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration