LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   PCLOS 2007 & FC9: can't copyy files from FC9 box to home PCLOS 2k7 via ssh (https://www.linuxquestions.org/questions/linux-newbie-8/pclos-2007-and-fc9-cant-copyy-files-from-fc9-box-to-home-pclos-2k7-via-ssh-731348/)

aaliyah 06-08-2009 01:06 AM

PCLOS 2007 & FC9: can't copyy files from FC9 box to home PCLOS 2k7 via ssh
 
Hello everyone. This is my first post. I am using pclos 2k7 from home. I have files at work on a fc9 box. I am trying to connect to my company's ssh environment from home.

$ ssh name@domain.com <<-- seems to work just fine.


From there I have to ssh user@fc9 to get access to my fc9 box at work.

I tried to copy files from my box directly to my pclos 2k7 box at home, but it looked like I copied it to the shell environment instead. I used the following command :


scp -r user@pcshell:/home/user/folder1 .

I guess the 'ssh environment' is a box that allows the tunnel connection for ssh sessions. So anyways, when I do a 'ls', I see that I have copied the 'folder1' in my home directory of the 'ssh environment' box. But I would like this folder and it's contents to be copied to my home pclos box.


I tried then using this command:

scp -r user@pcshell.domain.com:~/folder1/ redla@192.168.2.104:~/folder1/

It asks for the user's password. I provide it but then it just hangs.


I have a DSL connection going into a linksys router providing dhcp leased ip addresses. My pclos is on a laptop with a wireless connection.

Any ideas would be appreciated.

jamescondron 06-08-2009 11:37 PM

Why not SSH to the machine the files are on, then go backwards to your box

aaliyah 06-15-2009 11:20 PM

Sorry... what do you mean by going backwards?

chrism01 06-16-2009 12:34 AM

Login to the target box and then scp from there, calling your box at work

me@home> scp me@work:/path/ .


All times are GMT -5. The time now is 12:05 PM.