LinuxQuestions.org
Visit Jeremy's Blog.
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 06-08-2009, 02:13 AM   #1
aaliyah
LQ Newbie
 
Registered: Jun 2009
Location: Montreal, QC, Canada
Distribution: PCLinuxOS 2k9
Posts: 4

Rep: Reputation: 0
Cool PCLOS 2007 & FC9: can't copy 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.
 
Old 06-08-2009, 09:39 AM   #2
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,026

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ gotta' say this is kinda' confusing.

if you have ssh access to the server you should be good to go (i recommend using keys to log in).
your scp syntax looks good but this is what it should be in general:
Code:
scp user@remote.com:path/to/file .
mite i suggest sshfs. it makes an nfs-like file browser over an ssh connection seamlessly.

edit: i just read it again... seems like your company's lan is setup such that you have to copy files from the fc-9 machine to the ssh connection domain machine and then from your laptop to the ssh connection domain .

Last edited by schneidz; 06-08-2009 at 09:48 AM.
 
Old 06-17-2009, 09:31 AM   #3
aaliyah
LQ Newbie
 
Registered: Jun 2009
Location: Montreal, QC, Canada
Distribution: PCLinuxOS 2k9
Posts: 4

Original Poster
Rep: Reputation: 0
Hi Schneidz. Yes you are correct. And I agree with you... it is confusing. I also agree with the syntax you suggested. The problem is that
I would like to copy the files from the ssh connection domain machine to my laptop at home. Would you know how to proceed?
 
Old 06-17-2009, 02:12 PM   #4
schneidz
LQ Guru
 
Registered: May 2005
Location: boston, usa
Distribution: fc-15/ fc-20-live-usb/ aix
Posts: 5,026

Rep: Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845Reputation: 845
^ not really, it seems like your corporation is doing something kinda' non-standard.

if you cant ssh directly to your work machine (without going thru your company's firewall) then maybe you can use sshfs (or nfs) to mount your work machine's home directory to it wherever you need to log in first then you can scp from home to that mount-point. (else ssh tunneling mite bring you joy but i never had a need to use it.)

Quote:
Originally Posted by aaliyah View Post
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.
in the router config make sure that the ssh (port 22) traffic is being forwarded to the pclos machine (may need to do static-ip).

to troubleshoot make sure you can ssh back and forth (home <-> intermediate and intermediate <-> work-machine).
then scp should work like this from the middle-man: scp user1@work:file user2@home:file

Last edited by schneidz; 06-17-2009 at 02:24 PM.
 
  


Reply


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
PCLOS 2007 & FC9: can't copyy files from FC9 box to home PCLOS 2k7 via ssh aaliyah Linux - Newbie 3 06-16-2009 01:34 AM
PCLOS Minime the only 2008 PCLOS? newbiesforever Linux - Distributions 1 09-12-2008 01:25 AM
Updated PCLOS 2007 - lost 1440X900 resolution wastingtime Linux - Software 1 05-06-2008 10:35 PM
Can't compile Mobloquer on PCLOS 2007 Gnome Ed. bbjester Linux - Software 0 01-17-2008 08:21 AM
how to configure fail2ban in PCLOS 2007? mexbeachbum Linux - Security 2 09-26-2007 10:19 PM


All times are GMT -5. The time now is 03:46 PM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration