[ubuntu-uk] Help needed with ssh

Dave Walker DaveWalker at ubuntu.com
Wed Jul 15 11:53:42 BST 2009

John Matthews wrote:
> Hi Darren,
> Well see I didnt know that, and I am so glad that you have explained it. 
> This is something that I came across last night, whilst trying to upload 
> a file from my Dektop to my website using shell commands, or at least 
> trying to. Something that I found out after a while was that you need a 
> Terminal open for the Desktop and one for the Remote server. I just 
> could not get my Terminal to recognise that there was a file on my 
> desktp that needed to be transfered, kept saying no file found. This is 
> something that is really frustrating me that I couldnt get that to work, 
> which was why I asked about pc to pc help.
I suspect you were doing:
$ scp /Desktop/somefile.tar username at server:~/

The error is that "/Desktop" isn't a valid location.  You either need to
use, /home/john/Desktop/somefile.tar or "~/Desktop/somefile.tar".  The
"~" expands automatically to your "Home", which is normally /home/john/.
> I am sorry about all the questions, I think I already frightened 
> somebody off, which I am really sorry about if I have. :(
> John
I'm sure you haven't!.  :)

Kind Regards,
Dave Walker

More information about the ubuntu-uk mailing list